Exemplo n.º 1
0
def start_logic_services():
    for service in SERVICE_TYPE:
        if service == ST_SERVICE_MGR:
            continue

        path = os.path.join(cur_file_path, "workspace", "_".join(service.split("_")[1:]), "start.py")
        start_process(path, args=SERVICE_ARGS_DIC[service])
        logger.warn("sleep %ss for %s heartbeat:%s!!!" % (BEAT_INTERVAL, service, path))
        time.sleep(BEAT_INTERVAL * 2)
Exemplo n.º 2
0
def start_logic_services():
    # start_process(mmm_da_start_path, "--apply_req second_1 --match second_11 --apply_pay second_21 --accept_req second_31 --day_seconds 1 --force_mtype user --enable_active False --enable_seal False --enable_pay_check False  --use_system_balance False")
    start_process(
        mmm_da_start_path,
        "--apply_req second_1 --match second_11 --apply_pay second_21 --accept_req second_31 --day_seconds 1 --force_mtype user --enable_active False --enable_pay_check False  --use_system_balance False"
    )
    logger.warn("sleep %ss for service_mgr heartbeat:%s!!!" %
                (BEAT_INTERVAL, mmm_da_start_path))
    time.sleep(BEAT_INTERVAL)
Exemplo n.º 3
0
def start_logic_services():
    for service in SERVICE_TYPE:
        if service == ST_SERVICE_MGR:
            continue

        path = os.path.join(cur_file_path, "workspace",
                            "_".join(service.split("_")[1:]), "start.py")
        start_process(path, args=SERVICE_ARGS_DIC[service])
        logger.warn("sleep %ss for %s heartbeat:%s!!!" %
                    (BEAT_INTERVAL, service, path))
        time.sleep(BEAT_INTERVAL * 2)
Exemplo n.º 4
0
def start_service_mgr():
    args = "--db_host %s --db_port %s --db_user %s --db_password %s" % (MYSQL_IP, MYSQL_PORT, MYSQL_USER, MYSQL_PASS)
    start_process(service_mgr_path, args)
Exemplo n.º 5
0
def start_service_mgr():
    start_process(service_mgr_path,
                  "--db_host 10.24.6.7 --db_password !System")
Exemplo n.º 6
0
def start_service_mgr():
    args = "--db_host %s --db_port %s --db_user %s --db_password %s" % (
        MYSQL_IP, MYSQL_PORT, MYSQL_USER, MYSQL_PASS)
    start_process(service_mgr_path, args)