mirror of
https://github.com/flibusta-apps/meilie_updater.git
synced 2025-12-06 07:05:37 +01:00
Fix
This commit is contained in:
@@ -145,7 +145,7 @@ async def update_sequences(ctx) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
async def update(ctx) -> bool:
|
||||
async def update(ctx: dict, *args, **kwargs) -> bool:
|
||||
arq_pool: ArqRedis = ctx["arc_pool"]
|
||||
|
||||
await arq_pool.enqueue_job("update_books")
|
||||
|
||||
@@ -14,6 +14,4 @@ class WorkerSettings:
|
||||
redis_settings = get_redis_settings()
|
||||
max_jobs = 3
|
||||
job_timeout = 15 * 60
|
||||
cron_jobs = [
|
||||
cron("update", hour={6}, minute=0)
|
||||
]
|
||||
cron_jobs = [cron(update, hour={6}, minute=0)]
|
||||
|
||||
Reference in New Issue
Block a user