Example #1
0
def main(debug_flag=True):
    set_store(ConfigStore())
    set_config_func(config_process)
    set_init_task([{
        TaskKey.mongodb_async: MongodbConfig()
    }, {
        TaskKey.sds: SdsConfig()
    }])
    app_start(debug_flag)
Example #2
0
def main(debug_flag=True):
    set_store(ConfigStore())
    set_config_func(config_process)
    set_context('pipeline_process', {})
    set_context('pipeline_device', {})
    set_data_func(data_process)
    set_init_task([{TaskKey.mongodb: MongodbConfig()}, {TaskKey.sds: SdsConfig()},{TaskKey.idi:IdiConfig()}])

    app_start(debug_flag)
Example #3
0
def main(debug_flag=True):
    set_store(ConfigStore())
    set_config_func(config_process)
    set_context('person_code_name_mapper', {})
    set_context('materiel_group_info', [])
    set_context('process_info', [])
    set_context('group_info', [])
    set_context('timely_wage_info', {})
    set_init_task([{
        TaskKey.mongodb: MongoConfigStore()
    }, {
        TaskKey.sds: SdsConfig()
    }])

    app_start(debug_flag)
Example #4
0
def main(debug_flag=True):
    set_store(ConfigStore())
    set_config_func(config_process)
    # attendance_info用于在内存中保存产线出勤信息
    set_context('attendance_info', {})
    set_context('mdm_group_info', {})
    set_context('process_threshold', {})
    set_context('person_info', [])
    set_init_task([{
        TaskKey.mongodb: MongoConfigStore()
    }, {
        TaskKey.sds: SdsConfig()
    }])

    app_start(debug_flag)
Example #5
0
def main(debug_flag=True):
    set_store(ConfigStore())
    set_config_func(config_process)
    set_data_func(data_process)
    set_context('pipeline_process', {})
    set_context('pipeline_device', {})
    set_context('all_data', all_data)
    set_context("websocket_list", [])
    set_context("idi_data_dict", {})
    set_context("plan_list", [])
    set_init_task([{
        TaskKey.mongodb: MongodbConfig()
    }, {
        TaskKey.sds: SdsConfig()
    }])
    app_start(debug_flag)
Example #6
0
def main(debug_flag=True):
    set_store(ConfigStore())
    set_config_func(config_process)
    set_init_task([])

    app_start(debug_flag)