This commit is contained in:
2022-03-12 21:48:42 +03:00
parent 74d90bb896
commit 8705be1f6f
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ async def check_books_page(ctx, page_number: int) -> None:
await check_book(book, arq_pool)
async def check_books(ctx) -> None:
async def check_books(ctx: dict, *args, **kwargs) -> None:
arq_pool: ArqRedis = ctx["arc_pool"]
books_page = await get_books(1, PAGE_SIZE)

View File

@@ -29,5 +29,5 @@ class WorkerSettings:
max_jobs = 1
job_timeout = 3 * 60
cron_jobs = [
cron("check_books", hour={7}, minute=0)
cron(check_books, hour={7}, minute=0)
]