예제 #1
0
def main_loop():
    while 1:
        process_utils.set_instance_status()
        actions.check_for_tasks()
        app()
        print('... running')
        time.sleep(int(app_config['process_sleep_seconds']))
예제 #2
0
def main_loop():
    while 1:
        try:
            process_utils.set_instance_status()
            app()
            print('... running')
        except psycopg2.OperationalError as e:
            print(e)
        time.sleep(int(process_sleep_seconds))
예제 #3
0
def main_loop():
    while 1:
        process_utils.set_instance_status()
        app()
        print('... running')
        time.sleep(int(process_sleep_seconds))