Esempio n. 1
0
def flask_query():
    job_status = 2
    _sql = "select *  from master_job_list j  where j.job_status  !=%s "
    _args = (job_status, )
    task = query(db_config['local'], _sql, _args)
    logging.info(
        "query_npool method query_npool result is %s ,input _data is %s ",
        task, _args)
Esempio n. 2
0
def query_pool_size():
    job_status = 2
    _sql = "select *  from master_job_list j  where j.job_status  in (%s) "
    _args = (job_status, )
    task = query(mysql_config['remote'], _sql, _args)
    logging.info(
        "query_npool method query_npool result is %s ,input _data is %s ",
        task, _args)
    return
Esempio n. 3
0
def query_pool_in():
    job_status = 2
    _sql = "select *  from master_job_list j  where j.job_status  in (%s) "
    _args = (job_status, )
    task = query('local', _sql, _args)
    logging.info(
        "query_npool method query_npool result is %s ,input _data is %s ",
        task, _args)
    return