Fix check_books job starting

This commit is contained in:
2023-03-05 16:47:27 +01:00
parent e581958838
commit 5d0fcc98c4

View File

@@ -119,7 +119,7 @@ async def create_or_update_cached_file(data: CreateCachedFile):
@router.post("/update_cache") @router.post("/update_cache")
async def update_cache(request: Request): async def update_cache(request: Request):
arq_pool: ArqRedis = request.app.state.arq_pool arq_pool: ArqRedis = request.app.state.arq_pool
await arq_pool.enqueue_job("check_books", _job_id="check_books") await arq_pool.enqueue_job("check_books")
return "Ok!" return "Ok!"