stream logs in case of timeout

This commit is contained in:
Adil Hafeez 2025-05-22 16:13:23 -07:00
parent adda6aaa57
commit cd85e857aa
No known key found for this signature in database
GPG key ID: 9B18EF7691369645

View file

@ -103,6 +103,7 @@ def start_arch(arch_config_file, env, log_timeout=120, foreground=False):
# Check if timeout is reached
if elapsed_time > log_timeout:
log.info(f"stopping log monitoring after {log_timeout} seconds.")
stream_gateway_logs(follow=False)
sys.exit(1)
if prompt_gateway_health_check_status or llm_gateway_health_check_status: