Skip to content

Commit 816f53c

Browse files
committed
clarify relationship between TCP and app-level timeouts
1 parent abb4ba3 commit 816f53c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/seclab_taskflow_agent/runner.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
MAX_API_RETRY = 5 # Maximum number of consecutive API error retries
5252
TASK_RETRY_LIMIT = 3 # Maximum retry attempts for a failed task
5353
TASK_RETRY_BACKOFF = 10 # Initial backoff in seconds between task retries
54-
STREAM_IDLE_TIMEOUT = 1800 # Kill a streaming run if no events received for this long (seconds)
54+
# Application-level backstop: kill a streaming run if no events yielded for 30 min.
55+
# Complements the TCP-level httpx.Timeout(read=300s) in agent.py which catches
56+
# dead sockets; this catches subtler hangs where the connection stays open but
57+
# the server (or async generator) stops producing events.
58+
STREAM_IDLE_TIMEOUT = 1800
5559

5660

5761
def _resolve_model_config(

0 commit comments

Comments
 (0)