This commit is contained in:
yumoqing 2025-11-05 18:19:47 +08:00
parent f6a629bf60
commit a068932515

View File

@ -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)