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 43c0a3e commit 7c3e5e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gamewide/war/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ async def store(scheduler: AsyncIOScheduler):
msg = ujson.loads(msg.value)
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=100, coalesce=True)
scheduler.add_job(store_war, 'date', run_date=run_time, args=[msg.get("tag"), msg.get("opponent_tag"), msg.get("prep_time")], misfire_grace_time=None, max_instances=1)
except Exception:
pass

Expand Down

0 comments on commit 7c3e5e7

Please sign in to comment.