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
fix: add timeout for database query in workflow estimation to prevent blocking
Add timeout control for GetWorkflowForEstimator database query to prevent
workflow execution from being blocked when database is slow or locked.
- Add default 5 second timeout for database queries
- Configurable via WORKFLOW_ESTIMATION_DB_QUERY_TIMEOUT environment variable
- Return default estimator on timeout/error to ensure workflow continues
- Add warning logs for timeout and error cases
- Add documentation for new environment variable
Signed-off-by: shuangkun <[email protected]>
Copy file name to clipboardExpand all lines: docs/environment-variables.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
@@ -58,6 +58,7 @@ This document outlines environment variables that can be used to customize behav
58
58
|`SEMAPHORE_NOTIFY_DELAY`|`time.Duration`|`1s`| Tuning Delay when notifying semaphore waiters about availability in the semaphore |
59
59
|`WATCH_CONTROLLER_SEMAPHORE_CONFIGMAPS`|`bool`|`true`| Whether to watch the Controller's ConfigMap and semaphore ConfigMaps for run-time changes. When disabled, the Controller will only read these ConfigMaps once and will have to be manually restarted to pick up new changes. |
60
60
|`SKIP_WORKFLOW_DURATION_ESTIMATION`|`bool`|`false`| Whether to lookup resource usage from prior workflows to estimate usage for new workflows. |
61
+
|`WORKFLOW_ESTIMATION_DB_QUERY_TIMEOUT`|`time.Duration`|`5s`| Timeout for database queries when estimating workflow duration. Prevents workflow execution from being blocked when database is slow or locked. |
61
62
62
63
CLI parameters of the Controller can be specified as environment variables with the `ARGO_` prefix.
0 commit comments