From c1102905fa90d6d53cf754c769b23495f24b9c0a Mon Sep 17 00:00:00 2001 From: Everaldo Date: Tue, 1 Dec 2026 09:59:37 -0800 Subject: [PATCH] Fix crontab event loop on py314. --- src/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)