INNER CODE UNIT · Python
remaining
lij768423-svg/grok-register-panel · batch_supervisor.py:350
remaining = max(0, target - read_completed(progress_path))
print(
f"[supervisor] {restart_reason}; restarting remaining={remaining} attempt={restarts}/{max_restarts}",
flush=True,
)
time.sleep(min(1.0 * restarts, 5.0))
continue
try:
active_process.stdout.close()
except OSError:
pass
reader.join(timeout=2)
completed = read_completed(progress_path)
if return_code in {int(code) for code in non_retryable_exit_codes}:
print(
f"[supervisor] child exited with non-retryable rc={return_code} "