From d77a87e06aa6cbbca512fa9fd9fadef072ffa30d Mon Sep 17 00:00:00 2001 From: hyeon Date: Fri, 8 Dec 2023 23:35:24 +0900 Subject: [PATCH] Not begin transaction before create and run query --- worker/worker/status_monitor.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/worker/worker/status_monitor.py b/worker/worker/status_monitor.py index f1dcb7af..3fb8d674 100644 --- a/worker/worker/status_monitor.py +++ b/worker/worker/status_monitor.py @@ -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__":