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
Make workflow deadlock detection timeout configurable
The workflow-task deadlock detector timeout was hardcoded to 2 seconds,
with `debug_mode` / `TEMPORAL_DEBUG` as the only escape hatch — and that
disables detection entirely (and may relax the sandbox). There was no way
to keep detection on but grant more headroom to workflows that legitimately
do heavy CPU-bound work on the workflow thread before yielding.
Add a `deadlock_detection_timeout: timedelta = timedelta(seconds=2)` option
to `Worker` and `Replayer`, plumbed through to `_WorkflowWorker`. The default
preserves the current 2s behavior; `debug_mode` still disables detection.
This matches the Go SDK's `WorkerOptions.DeadlockDetectionTimeout`.
0 commit comments