Esempio n. 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']))
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))
Esempio n. 3
0
def main_loop():
    while 1:
        process_utils.set_instance_status()
        app()
        print('... running')
        time.sleep(int(process_sleep_seconds))