This commit is contained in:
2025-04-22 01:32:12 +02:00
parent 12dd0f9af7
commit 586359f8ce
3 changed files with 9 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ dependencies = [
"httpx-oauth>=0.16.1,<0.17",
"uvicorn[standard]>=0.34.0,<0.35",
"temporalio>=1.10.0",
"uvloop>=0.21.0",
]
[tool.hatch.build.targets.sdist]

View File

@@ -1,4 +1,6 @@
from asyncio import run
from asyncio import run, set_event_loop_policy
import uvloop
from core.temporal import get_client
@@ -53,4 +55,7 @@ async def main():
await worker.run()
set_event_loop_policy(uvloop.EventLoopPolicy())
run(main())

2
uv.lock generated
View File

@@ -254,6 +254,7 @@ dependencies = [
{ name = "temporalio" },
{ name = "twitchapi" },
{ name = "uvicorn", extra = ["standard"] },
{ name = "uvloop" },
]
[package.metadata]
@@ -274,6 +275,7 @@ requires-dist = [
{ name = "temporalio", specifier = ">=1.10.0" },
{ name = "twitchapi", specifier = ">=4.4.0,<5" },
{ name = "uvicorn", extras = ["standard"], specifier = ">=0.34.0,<0.35" },
{ name = "uvloop", specifier = ">=0.21.0" },
]
[[package]]