예제 #1
0
파일: api.py 프로젝트: kchenweijie/taskflow
def configure(pivot='mem_backend'):
    IMPL.set_pivot(pivot)

    if pivot == 'db_backend':
        global SQL_CONNECTION
        global SQL_IDLE_TIMEOUT
        config.register_db_opts()
        SQL_CONNECTION = cfg.CONF.sql_connection
        SQL_IDLE_TIMEOUT = cfg.CONF.sql_idle_timeout
예제 #2
0
파일: api.py 프로젝트: timjr/taskflow
def configure(pivot='mem_backend'):
    IMPL.set_pivot(pivot)

    if pivot == 'db_backend':
        global SQL_CONNECTION
        global SQL_IDLE_TIMEOUT
        config.register_db_opts()
        SQL_CONNECTION = cfg.CONF.sql_connection
        SQL_IDLE_TIMEOUT = cfg.CONF.sql_idle_timeout
예제 #3
0
def configure():
    global SQL_CONNECTION
    global SQL_IDLE_TIMEOUT
    config.register_db_opts()
    SQL_CONNECTION = cfg.CONF.sql_connection
    SQL_IDLE_TIMEOUT = cfg.CONF.sql_idle_timeout