Skip to content

Commit

Permalink
try new
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed May 23, 2024
1 parent c1e5cce commit 43c0a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gamewide/war/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def store(scheduler: AsyncIOScheduler):
run_time = pend.from_timestamp(timestamp=msg.get("run_time"), tz=pend.UTC)
try:
scheduler.add_job(store_war, 'date', run_date=run_time, args=[msg.get("tag"), msg.get("opponent_tag"), msg.get("prep_time")],
id=f'war_end_{msg.get("tag")}_{msg.get("opponent_tag")}', misfire_grace_time=1200, max_instances=1)
id=f'war_end_{msg.get("tag")}_{msg.get("opponent_tag")}', misfire_grace_time=1200, max_instances=100, coalesce=True)
except Exception:
pass

Expand Down Expand Up @@ -84,7 +84,7 @@ async def get_war(clan_tag: str):
else:
return None # Both tags checked, no access to either

await asyncio.sleep(war._response_retry) # Wait before retry based on response retry attribute
await asyncio.sleep(min(war._response_retry, 120)) # Wait before retry based on response retry attribute
tries += 1
if tries == 10:
break
Expand Down

0 comments on commit 43c0a3e

Please sign in to comment.