cache top shouts
This commit is contained in:
4
main.py
4
main.py
@@ -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
|
||||
from resolvers.zine import GitTask, TopShouts
|
||||
|
||||
import asyncio
|
||||
|
||||
@@ -28,7 +28,7 @@ middleware = [
|
||||
async def start_up():
|
||||
await redis.connect()
|
||||
git_task = asyncio.create_task(GitTask.git_task_worker())
|
||||
|
||||
top_shouts_task = asyncio.create_task(TopShouts.worker())
|
||||
|
||||
async def shutdown():
|
||||
await redis.disconnect()
|
||||
|
Reference in New Issue
Block a user