From 1f01b1b655d87b80a2f56949696995586d68ca28 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 30 Apr 2026 19:20:31 +0000 Subject: [PATCH] Keep orchestrator alive without stdin --- orchestrator/main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/orchestrator/main.py b/orchestrator/main.py index a22ef50..9bb6cac 100644 --- a/orchestrator/main.py +++ b/orchestrator/main.py @@ -1,5 +1,6 @@ import json import threading +import time from redis_client import get_redis_client from result_listener import listen_for_results @@ -34,13 +35,17 @@ def main(): ) listener.start() - print("orchestrator ready") + print("[orchestrator] ready") while True: try: command = input("> ").strip() - except (EOFError, KeyboardInterrupt): + except EOFError: + print("[orchestrator] stdin closed, waiting...") + time.sleep(2) + continue + except KeyboardInterrupt: print() - break + continue if not command: continue