Skip to content

Commit

Permalink
perf(engine): Use eager task factory in worker main event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed Jun 29, 2024
1 parent 2914984 commit c9eccd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tracecat/dsl/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c9eccd6

Please sign in to comment.