bugfix
This commit is contained in:
parent
f6a629bf60
commit
a068932515
@ -74,7 +74,7 @@ class LongTasks:
|
||||
async def start_redis(self):
|
||||
self.redis = await aioredis.from_url(self.redis_url, decode_responses=True)
|
||||
|
||||
async def run(self):
|
||||
async def run(self, *args, **kw):
|
||||
await self.start_redis()
|
||||
await self.cleanup_expired_tasks()
|
||||
schedule_interval(3600, self.cleanup_expired_tasks)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user