def check_v2_config_job(): global __v2_config_changed if __v2_config_changed: # with __lock: v2_config = v2_util.gen_v2_config_from_db() v2_util.write_v2_config(v2_config) __v2_config_changed = False
def check_v2_config_job(): with __lock: v2_config = v2_util.gen_v2_config_from_db() v2_util.write_v2_config(v2_config)
def conf_change(): v2_config = v2_util.gen_v2_config_from_db() v2_util.write_v2_config(v2_config) return 'v2 config has changed'