mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Fix
This commit is contained in:
@@ -42,7 +42,7 @@ async def check_books_page(ctx, page_number: int) -> None:
|
|||||||
await check_book(book, arq_pool)
|
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"]
|
arq_pool: ArqRedis = ctx["arc_pool"]
|
||||||
books_page = await get_books(1, PAGE_SIZE)
|
books_page = await get_books(1, PAGE_SIZE)
|
||||||
|
|
||||||
|
|||||||
@@ -29,5 +29,5 @@ class WorkerSettings:
|
|||||||
max_jobs = 1
|
max_jobs = 1
|
||||||
job_timeout = 3 * 60
|
job_timeout = 3 * 60
|
||||||
cron_jobs = [
|
cron_jobs = [
|
||||||
cron("check_books", hour={7}, minute=0)
|
cron(check_books, hour={7}, minute=0)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user