Skip to content

Commit 45ee41f

Browse files
authored
APP-5362 : feat: integrate uvloop for improved asyncio performance (#179)
* feat: integrate uvloop for improved asyncio performance * feat: add uvloop integration for improved asyncio performance across the application * refactor: remove uvloop integration from various files * test: add unit tests for event loop implementations and performance comparison * refactor: clean up whitespace and formatting in event loop tests * test: simplify event loop tests by removing unnecessary assertions and imports * refactor: add whitespace for improved readability in decorators module * refactor: remove obsolete event loop tests and related imports
1 parent cf70201 commit 45ee41f

File tree

3 files changed

+88
-90
lines changed

3 files changed

+88
-90
lines changed

application_sdk/worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
import threading
99
from typing import Any, List, Optional, Sequence
1010

11+
import uvloop
1112
from temporalio.types import CallableType
1213

1314
from application_sdk.clients.temporal import TemporalClient
1415
from application_sdk.common.logger_adaptors import get_logger
1516

1617
logger = get_logger(__name__)
18+
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
1719

1820

1921
class Worker:

0 commit comments

Comments
 (0)