From c9eccd6de44b905c189009e2e01a57b5fd82333f Mon Sep 17 00:00:00 2001 From: Daryl Lim <5508348+daryllimyt@users.noreply.github.com> Date: Sat, 29 Jun 2024 01:47:17 +0100 Subject: [PATCH] perf(engine): Use eager task factory in worker main event loop --- tracecat/dsl/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tracecat/dsl/worker.py b/tracecat/dsl/worker.py index 7ad64d7f5..524891e18 100644 --- a/tracecat/dsl/worker.py +++ b/tracecat/dsl/worker.py @@ -68,6 +68,7 @@ async def main() -> None: if __name__ == "__main__": loop = asyncio.new_event_loop() + loop.set_task_factory(asyncio.eager_task_factory) try: loop.run_until_complete(main()) except KeyboardInterrupt: