forked from MarseyWorld/MarseyWorld
cron: commit roulette txn early for long tasks.
parent
6b0c734254
commit
e52fc4eb9e
|
@ -202,6 +202,9 @@ def spin_roulette_wheel():
|
|||
game.active = False
|
||||
g.db.add(game)
|
||||
|
||||
# Commit early when dirty because of long-running tasks after roulette
|
||||
g.db.commit()
|
||||
|
||||
|
||||
def determine_roulette_winners(number, bets):
|
||||
winners = []
|
||||
|
|
Loading…
Reference in New Issue