Compare commits

..

No commits in common. "954bed9e56c1be3c43e7037decfffbf7d5f23dab" and "6b3dee9864dd6481995a5315fe917a96bfe8bfdc" have entirely different histories.

View File

@ -201,15 +201,15 @@ def main():
print("Running in test mode.") print("Running in test mode.")
worker(None, test_mode=True) worker(None, test_mode=True)
return return
while True:
try: try:
queue_id = msgget(MSG_QUEUE_KEY, 0) queue_id = msgget(MSG_QUEUE_KEY, 0)
if queue_id == -1: if queue_id == -1:
raise RuntimeError("Failed to connect to the existing message queue.") raise RuntimeError("Failed to connect to the existing message queue.")
worker(queue_id)
except Exception as e: worker(queue_id)
print(f"Main process encountered an error: {e}") except Exception as e:
time.sleep(30) print(f"Main process encountered an error: {e}")
if __name__ == "__main__": if __name__ == "__main__":