reduce concurrency when fetching images + add retries
This commit is contained in:
parent
59c33428c2
commit
20ff91d663
3 changed files with 8 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue