Skip to content

Commit

Permalink
update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed May 15, 2024
1 parent 175c6ca commit ed3f9be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def start_process():
if process is None or not process.is_alive():

if process is not None:
process.join()
logging.warning("SystemController process terminated. Restarting...")
process.join()
logging.warning("Join done")

process = start_process()

time.sleep(30) # Check every 30 seconds
except KeyboardInterrupt:
if process is not None:
process.terminate()
process.join()
except:
logging.error("Supervisor failed")


if __name__ == "__main__":
Expand Down

0 comments on commit ed3f9be

Please sign in to comment.