reduce concurrency when fetching images + add retries

This commit is contained in:
Viktor Barzin 2025-07-01 16:12:06 +00:00
parent 59c33428c2
commit 20ff91d663
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
3 changed files with 8 additions and 7 deletions

View file

@ -103,12 +103,12 @@ async def get_task_status(
return {
"task_id": task_id,
"status": task_result.status,
"result": json.dumps(result),
"result": result,
}
@app.get("/api/get_districts")
async def get_task_status(
async def get_districts(
user: Annotated[User, Depends(get_current_user)],
) -> dict[str, str]:
return districts.get_districts()