You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa7da2b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(engine): make fallback task poll interval configurable (default 20s)
The fallback task-polling interval (used when an SSE stream ends before
a terminal state) was hardcoded at 250ms, causing ~1000 getTask polls
and log spam during a 138-second task execution observed in field logs.
Add taskPollIntervalMillis to WorkflowEngineClientConfig (default 20000ms
= 20 seconds). Polling only triggers when a streaming response is
interrupted before the task reaches a terminal state (e.g. a gateway
closes the SSE channel mid-stream); while SSE is alive (heartbeats still
arriving), polling does not start. Tests that exercise the polling path
use 100ms for fast feedback.
Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/en/API_REFERENCE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ Builder-based configuration for the workflow engine client.
150
150
|`crlPath`|`String`| null | X.509 CRL for HTTP/JSON-RPC; the default gRPC runtime rejects this unsupported combination |
151
151
|`sendTimeoutSeconds`|`long`|`600`| SSE stream timeout (10 min default) |
152
152
|`notificationAckTimeoutSeconds`|`long`|`300`| Wait for the first Notification-T ACK/event (five minutes by default) |
153
+
|`taskPollIntervalMillis`|`long`|`20000`| Fallback task polling interval when an SSE stream ends before a terminal state (e.g. a gateway closes the channel mid-stream); 20 seconds by default. While SSE is alive (heartbeats still arriving), polling does not start |
0 commit comments