Example #1
0
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
Example #2
0
def check_v2_config_job():
    with __lock:
        v2_config = v2_util.gen_v2_config_from_db()
        v2_util.write_v2_config(v2_config)
Example #3
0
def conf_change():
    v2_config = v2_util.gen_v2_config_from_db()
    v2_util.write_v2_config(v2_config)
    return 'v2 config has changed'