add getTopicAuthors

This commit is contained in:
knst-kotov
2021-12-13 21:05:00 +03:00
parent ab9990a616
commit 64a728de41
4 changed files with 59 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ from redis import redis
from resolvers.base import resolvers
from resolvers.zine import GitTask, ShoutsCache
from orm.shout import ShoutViewStorage, TopicStat
from orm.shout import ShoutViewStorage, TopicStat, ShoutAuthorStorage
import asyncio
@@ -33,6 +33,7 @@ async def start_up():
shouts_cache_task = asyncio.create_task(ShoutsCache.worker())
view_storage_task = asyncio.create_task(ShoutViewStorage.worker())
topic_stat_task = asyncio.create_task(TopicStat.worker())
shout_author_task = asyncio.create_task(ShoutAuthorStorage.worker())
async def shutdown():
await redis.disconnect()