"""Main app""" import time import sys from app import SCHEDULER, LOGGER, jobs if __name__ == '__main__': LOGGER.info('Starting application') # jobs.sync_deep_exploration(4002) # jobs.start_deep_exploration_order(2) # sys.exit() jobs.schedule_orders() # backup job to reschedule orders SCHEDULER.add_job( jobs.schedule_orders, 'cron', id='schedule_orders', hour='3' ) try: while True: time.sleep(100) except KeyboardInterrupt: LOGGER.info('Exiting application') SCHEDULER.shutdown() sys.exit()