save user queries in redis so that user can refresh the page and still come back to their latest task
This commit is contained in:
parent
a055c92dea
commit
d4b22deda0
7 changed files with 114 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ async def detail_query(detail_id: int) -> dict[str, Any]:
|
|||
return await response.json()
|
||||
|
||||
|
||||
@retry(wait=wait_random(min=1, max=2), stop=stop_after_attempt(3))
|
||||
@retry(wait=wait_random(min=1, max=60), stop=stop_after_attempt(3))
|
||||
async def listing_query(
|
||||
*,
|
||||
page: int,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue