0.0.2
All checks were successful
deploy / deploy (push) Successful in 1m21s

This commit is contained in:
2023-11-26 14:54:07 +03:00
parent 6e6de3818b
commit f4d4fd26d4
5 changed files with 25 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ from strawberry.asgi import GraphQL
from starlette.applications import Starlette
from services.rediscache import redis
from resolvers.listener import start as listener_start, stop as listener_stop
from resolvers.listener import reactions_worker
from resolvers.schema import schema
from settings import DEV_SERVER_PID_FILE_NAME, SENTRY_DSN, MODE
@@ -22,7 +22,7 @@ async def start_up():
f.write(str(os.getpid()))
else:
await redis.connect()
notification_service_task = asyncio.create_task(listener_start())
notification_service_task = asyncio.create_task(reactions_worker())
print(f"[main] {notification_service_task}")
try:
@@ -45,7 +45,6 @@ async def start_up():
async def shutdown():
listener_stop()
await redis.disconnect()