diff --git a/src/index.py b/src/index.py index 34b83e1..c60ff16 100644 --- a/src/index.py +++ b/src/index.py @@ -32,7 +32,7 @@ def get(self): logger = logging.getLogger("routine") options.parse_command_line() if not options.debug and options.prod: - crontab("0 0 * * *", func=run_routine, start=True) + crontab("0 0 * * *", func=run_routine, start=True, loop=IOLoop.current().asyncio_loop) logger.info("Crontab configured successfully.") IOLoop.current().add_callback(setup)