add viewShout

This commit is contained in:
knst-kotov
2021-09-27 17:59:44 +03:00
parent f23d375b4d
commit 6e451c8095
4 changed files with 47 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ from auth.oauth import oauth_login, oauth_authorize
from auth.email import email_authorize
from redis import redis
from resolvers.base import resolvers
from resolvers.zine import GitTask, TopShouts
from resolvers.zine import GitTask, TopShouts, db_flush_worker
import asyncio
@@ -29,6 +29,7 @@ async def start_up():
await redis.connect()
git_task = asyncio.create_task(GitTask.git_task_worker())
top_shouts_task = asyncio.create_task(TopShouts.worker())
db_flush_task = asyncio.create_task(db_flush_worker())
async def shutdown():
await redis.disconnect()