__main__.py 423 B

123456789101112131415161718192021
  1. """Main app"""
  2. import time
  3. import sys
  4. from app import SCHEDULER, LOGGER, jobs
  5. if __name__ == '__main__':
  6. LOGGER.info('Starting application')
  7. jobs.sync_deep_exploration(4002)
  8. # jobs.start_deep_exploration_order(2)
  9. sys.exit()
  10. try:
  11. while True:
  12. time.sleep(100)
  13. except KeyboardInterrupt:
  14. LOGGER.info('Exiting application')
  15. SCHEDULER.shutdown()
  16. sys.exit()