Skip to content

Commit

Permalink
Fix sys.exit being called inside the database context
Browse files Browse the repository at this point in the history
  • Loading branch information
kiudee committed Jun 27, 2021
1 parent 68f7cfb commit 13e24b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tune/db_workers/tuning_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,6 @@ def run(self):
q.update({"ll_count": SqlResult.ll_count + 1})
self.logger.info("Uploaded match result to database.\n")

if self.only_run_once:
self.logger.info("Shutting down after completing one job.")
sys.exit(0)
if self.only_run_once:
self.logger.info("Shutting down after completing one job.")
sys.exit(0)

0 comments on commit 13e24b9

Please sign in to comment.