Skip to content

Commit

Permalink
perf(engine): Use asyncio eager task factory for worker event loop (#218
Browse files Browse the repository at this point in the history
)

perf(engine): Use eager task factory in worker main event loop
  • Loading branch information
daryllimyt authored Jul 1, 2024
1 parent a87a211 commit 643ecb6
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 643ecb6

Please sign in to comment.