These samples demonstrate the experimental Workflow Pause feature. Pausing a Workflow Execution tells the Temporal Service to stop dispatching workflow tasks for it — the workflow makes no forward progress (timers don't advance, signals buffer, queries and updates are rejected) until it is unpaused. See the Temporal CLI docs.
First see the main README.md for general prerequisites. Then note:
-
Requires Temporal Server 1.31.0+ / CLI 1.7.1+. The feature is experimental.
-
Pause must be enabled server-side. Start your dev server with the pause dynamic-config flag:
temporal server start-dev --dynamic-config-value frontend.WorkflowPauseEnabled=true
Without it,
temporal workflow pausereturnsError: workflow pause is not enabled for namespace: default.
- basic — Dead-simple pause / unpause of a workflow waiting on a timer.
- activities — How pause interacts with in-flight activities, plus activity-level
pause (
temporal activity pause) to halt retries. - signals — Signals sent while paused are buffered and processed on unpause.
- queries — Queries are rejected while paused.
- updates — Updates are rejected while paused.
- cancel_terminate — Terminate is immediate; cancel is deferred until unpause.