Controlling Running Workflows
Every Config Manager workflow runs as a sequence of stages. While a workflow is running, four controls let you act on it from the Config Manager UI: Approve, Reject, Retry, and Terminate. This guide covers what each one does, when to use it, and — for terminate in particular — what state the device is left in.
For per-workflow specifics, follow the link in each workflow’s guide; this page is the cross-cutting reference for the lifecycle itself.
At a glance
The Approve / Reject / Retry buttons live on the stage details panel for the selected stage. The Terminate button lives at the top of the workflow details panel, next to the workflow status badge.

Approve
Use when a PENDING_APPROVAL stage is showing you the right diff or the right plan and you want the workflow to continue. Approve sends a signal to that specific stage; the workflow records the approver in its audit log and the next stage starts.
If a workflow has multiple approval stages (Multi-Deploy fans out one per batch), each child’s approval is independent.
Reject
Use when a PENDING_APPROVAL stage shows a diff or plan that should not be applied. Reject marks every downstream stage as UNREACHABLE and the workflow exits cleanly. The device is not touched.
Common reasons to reject:
- The diff includes unintended changes (typically the upstream Nautobot data or templates need to be fixed first).
- The maintenance window has closed.
- The proposed upgrade target or password rotation is wrong.
After fixing the upstream cause, start a new workflow — there is no way to “un-reject” an existing one.
Retry
Use when a single stage failed in a way you believe is transient (network blip, momentary device unreachability) and you want to re-run just that stage rather than starting the whole workflow over. The stage’s state must be FAILED, the stage itself must be marked retryable, and the workflow must still be RUNNING.
After an activity or child workflow exhausts its automatic retries and the stage
enters FAILED, you have three hours by default to send a manual Retry. If no retry arrives,
the workflow closes as Failed, with a StageRetryTimeout cause identifying the
stage. This is a durable workflow timer, so worker restarts do not reset the window.
The deadline is processed when a worker can run the workflow task.
The clock starts when the stage enters its failure wait, not when the workflow starts. Healthy work and approval waits do not start this clock. A manual retry before the deadline resumes the stage; a subsequent failure starts a new retry window. Non-retryable failures and workflows configured to terminate on failure still fail immediately. Existing shorter workflow deadlines also continue to apply.
The window is configurable through the installer’s
temporal.failed_stage_retry_timeout_seconds or the Helm value
temporal.configManagerWorker.failedStageRetryTimeoutSeconds.
Changes apply to new workflow starts and newly created schedules. Running workflows
and existing schedules keep the window they started with; already-running timers
are not shortened or extended by a Helm update.
The bounded wait is versioned for Temporal history compatibility. Workflows already parked on the earlier indefinite failure wait keep it; the deadline is not added to them retroactively.
On workflows that back up a single device (for example Configuration Deploy and Switch OS Upgrade), the backup stage fails when its backup child workflow fails or times out; retry the stage to start a new backup. Backup stages that were already running when you upgraded keep the earlier behavior and may report the stage as complete even when the child failed. For those runs, check the backup workflow named in the stage output and, if the backup failed, run Configuration Backup against the device; do not start a new run of the original workflow. Batch Deploy and Site Backup record each device’s backup result in the stage output instead of failing the stage.
Retry is not appropriate when:
- The stage failed because of a non-retryable error class (for example
ConfigSyntaxException,DiffChangedException,FirmwareUpgradeException). These are deliberate fail-closed conditions — fix the underlying cause and run a new workflow. - The stage isn’t marked retryable (the Retry button is not shown).
- The whole workflow already terminated. Retry signals only land on stages of a still-running workflow; for a terminated or failed-out workflow, start a new run. The UI hides Retry once the workflow is no longer running, and the API returns
409 Conflictif the workflow closed before the retry arrived.
Terminate
Terminate stops the entire workflow at the Temporal layer. The button is at the top of the workflow details panel and is only enabled while the workflow’s status is RUNNING.
What termination actually does:
- Sends
terminateto the Temporal workflow handle. Temporal moves the workflow to a terminalTERMINATEDstatus. - In-flight activities are canceled. There is no graceful unwind, no automatic rollback, and no automatic backup.
- The device is left in whatever state the in-flight activity had reached when it was canceled. Some activities (a config push partway through, an image install mid-reboot) leave the device in a partial state that needs hands-on recovery.
When termination is the right move:
- A workflow is genuinely stuck (an indefinite wait on a condition that will never clear) and the alternative is leaving it hanging.
- An operator made a serious mistake on input and the workflow is past the approval gate but still on a stage that hasn’t yet altered the device.
- The site is being taken down for unrelated emergency work and any in-flight orchestration needs to stop.
When it’s not: if the workflow is still at an approval stage, reject instead — rejection exits cleanly and leaves nothing for you to clean up.
Recovering after a terminate
What you need to do post-terminate depends on which stage was in flight at the moment of termination. The pattern below applies to the major workflows:
If you’re not sure what stage was running at the time of termination, open the workflow’s stage list in the UI — every stage shows its state at the moment the workflow stopped. The last stage in IN_PROGRESS (or the one most recently transitioned to FAILED) is what was active when terminate landed.
Audit and history
Every Approve / Reject / Retry / Terminate is logged in the workflow’s history. Open the workflow detail page to see who did what and when. For deeper investigation, the underlying Temporal history is accessible via the Temporal API or Temporal CLI.
Related guides
- Configuration Deploy — the canonical workflow with an approval gate.
- Multi-Deploy and Batch Deploy — fanned-out approvals across many devices.
- Switch OS Upgrade, NVLink Switch Firmware Upgrade — workflows where mid-flight terminate has the largest device-state impact.
- Device Reprovision — the standard recovery path when a device is left in an unrecoverable state.