Skip to content

Commit

Permalink
Merge pull request #196 from planetarium/feature/google-refund
Browse files Browse the repository at this point in the history
Not begin transaction before create and run query
  • Loading branch information
U-lis authored Dec 8, 2023
2 parents b1061f0 + 717cb42 commit d20c557
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions worker/worker/status_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ def handle(event, context):
if datetime.utcnow().hour == 3 and datetime.now().minute == 0: # 12:00 KST
check_garage()

with session.begin() as sess:
check_invalid_receipt(sess)
check_halt_tx(sess)
check_tx_failure(sess)
check_invalid_receipt(sess)
check_halt_tx(sess)
check_tx_failure(sess)


if __name__ == "__main__":
Expand Down

0 comments on commit d20c557

Please sign in to comment.