This commit is contained in:
5
main.py
5
main.py
@@ -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()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user