Pausing Temporal activities and workflows during incidents

When a downstream system is down, pausing Temporal work stops new attempts from piling up and failing, but only if you know exactly what the pause holds, what keeps running and how to resume without a retry storm.

On this page

When to pause Temporal activities during a downstream outage

When a downstream API, database or vendor starts failing, Temporal activities that call it will keep retrying according to their retry policy, and workflows that depend on those activities will sit waiting. Pausing is a deliberate way to hold that work during an incident so it stops hammering a service that cannot answer. This page covers Activity Pause and Workflow Pause: what each one stops, what keeps running, how availability differs by deployment, and how to unpause safely once the dependency recovers.

Teams reach for a pause instead of letting retries run because retry policies are designed for transient faults, not for a multi-hour outage. Without intervention, retries with backoff still consume attempts, still generate load on a struggling dependency during recovery, and can exhaust a retry budget so that activities fail permanently and need manual repair. A pause lets an operator decide the moment work resumes, which matters when the fix is a vendor status change or a database failover rather than time. The reasoning is general, but the exact behavior depends on the Temporal Server version and the SDK in use, so confirm pause semantics for your versions before writing a runbook.

How a pause holds work between the workflow and its activities

The diagram starts with an operator who issues a pause through the Temporal frontend, which the operator's identity must be allowed to reach. The Temporal Service records the pause against the workflow or activity, so the matching task queue stops handing new attempts to workers. A worker that tries to run an activity against the failing downstream system is held back once the pause is recorded, and the resume path shows an operator unpausing once the downstream system recovers. Check that the identity crossing the trust boundary is authorized before you rely on the pause.

Operator pause flows through the service and holds activity dispatch until unpaused.

Activity Pause, Workflow Pause and other holding options compared

This table compares Activity Pause, Workflow Pause, stopping a worker or its task queue, and changing retry policy or disabling the calling path. Read each row against the scope of what is held, what keeps running and how the hold is reversed. Confirm exact behavior and command names against the server and SDK release your team runs before relying on any option in an incident.

OptionWhat is held and what keeps runningEffect on in-flight work and reversalWhen it fits
Activity PausePauses specific activity executions so the server stops dispatching them to workers. Workflow code and other activities keep running.Activities already executing on a worker may finish or time out depending on their timeouts. Reversed by unpausing, after which retries resume.A single downstream dependency fails and only certain activities call it.
Workflow PausePauses the workflow execution so no new workflow tasks or activity dispatches are scheduled for it. Other workflows keep running.In-flight activities are not cancelled by the pause itself. Confirm how activities that finish during the pause report results. Reversed by unpausing the workflow.A whole workflow type must stop, for example while a shared dependency is down and state must not advance.
Stopping the worker processStops the workers that poll a task queue. Workflows and activities on other queues keep running and tasks queue up on the stopped queue.Tasks wait in the queue and start when workers return. Activities mid-execution are interrupted and retried according to their policy. Reversed by restarting workers.The fault sits inside your worker code or host, and no server-side hold is needed.
Stopping or draining a task queueStops polling on a named task queue, so every workflow and activity routed to it waits. Other queues are unaffected.Scheduled tasks accumulate as backlog and are dispatched once polling resumes. Confirm how backlog age and timeouts behave on your server version.A queue serves one dependency or one workload and you want to isolate it.
Changing the retry policyChanges the retry behavior of activities or workflows going forward. Nothing is held, so work keeps flowing and failing faster or slower.Applies to new attempts in the new configuration. Changing it in code is a workflow change and needs versioning if running workflows replay it.Retries are amplifying load on a struggling dependency and you need to back off the attempt rate.
Disabling the calling pathStops new workflows from being started through an API gateway, scheduler, or application feature that calls Temporal. Running workflows are unaffected.Running executions continue as normal. New starts are rejected or deferred at the caller. Reversed by re-enabling the caller.The trigger is in your own system and you can stop new work before it reaches Temporal.
Terminating or cancelling executionsEnds executions outright (terminate) or asks them to clean up (cancel). This is not a hold.Termination stops work immediately and records it in history. Cancellation lets workflow code run compensation. Neither is reversible in place.Work is no longer wanted at all. Use only after you have confirmed the business decision.

What stops and what keeps running during a pause

A pause does not stop everything in a Temporal namespace, so the first job during an incident is to separate three categories: new activity attempts, workflow progress, and work that keeps going. Activity Pause holds new attempts of matching activities, so the server stops handing those tasks to workers. Workflow Pause holds the workflow's own progress, so its workflow tasks wait instead of advancing. Work that was already running, such as an activity attempt a worker has started, is not the same thing as a new attempt, and the two can end in different states. Timers, schedules, signals, queries and connected workers each follow their own rules, and none of them are covered by the pause alone. Confirm the exact behavior of each category against the documentation for the server version you run before you rely on it during an outage.

Operators should check each category separately instead of assuming work has stopped. Use temporal workflow describe on a sample of executions to see whether a workflow is marked as paused, which activities are pending, and how many attempts remain. Check whether activities show a paused state, and whether scheduled retries are still queued. Look at the schedules that start these workflows, because a schedule can keep creating executions even when the workflows it starts are paused, and those new executions can pile up behind the pause. Confirm that signals are being recorded in history and that queries still return answers. On the worker side, check that workers stay connected and polling their task queues, since a worker that disconnects during an incident adds a second problem. If your visibility store is not configured for the searches you need, you may not be able to list every paused execution quickly. Review the visibility documentation to confirm which search attributes your deployment supports.

Test these behaviors in a non-production namespace before you need them in production. A useful test plan covers whether an in-flight activity attempt completes, whether retries stop at the expected point, and what happens to the attempt count and retry state after unpausing. Measure whether activity timeouts continue to run during the pause and whether they expire, because an expired timeout can change the outcome of work that looked paused. Send signals and queries to a paused workflow, and verify which ones are buffered, which are rejected, and how they appear in history. Confirm what a paused schedule does compared with a schedule whose workflows are paused. Finally, unpause in a controlled order, starting with one workflow and one activity type, and watch for a burst of queued work reaching downstream systems that have only just recovered. Write down the results so the runbook reflects what your version actually does.

Pause availability for self-hosted Temporal and Temporal Cloud

Docker Compose runs the Temporal Server services from pinned container images, so the server version in your environment is the image tag in your Compose file. Confirm pause support against that exact tag before you write pause steps into an incident runbook.

  • Server image tag: Read the tag in your Compose file, then check the matching entry in the Temporal GitHub releases for pause behavior and known issues.
  • Web UI version: Confirm that the Web UI image in your stack exposes pause controls for that server version, because the UI and server can be pinned separately.
  • CLI version: Install a temporal CLI build that documents pause commands, then test them against a non-production namespace.
  • Upgrade path: If the tag predates the version you need, move one minor version at a time before relying on pause, following the upgrade guide.

Record the server tag, Web UI tag and CLI version together in the runbook so the operator knows exactly which pause procedure applies.

Setting up a pause runbook before the next incident

This sequence gives the team a tested, owned and documented way to hold Temporal work during a downstream outage, so the pause and unpause happen in a controlled way when an incident is already under way.

  1. Confirm the server release line and upgrade path

    Record the Temporal Server minor version and the deployment method in use, then confirm whether the team is on the current patch of that minor line. Check the release notes for the version you run before assuming a pause feature is available or behaves as described in the documentation. Upgrades move one minor version at a time, so note the next step on your path. Done when the runbook states the exact server version, the deployment type (self-hosted or Temporal Cloud), and the source you checked for pause availability.

  2. Map activities that call the failing dependency

    Work with the owners of each worker service to list every Activity that calls a downstream system such as a payment API, a database or a third-party service. For each one, record the task queue, the workflow types that invoke it, and the retry policy. Note which workflows also perform work outside Activities, because a Workflow Pause affects those differently. Done when the team has a table linking each dependency to its Activity types, task queues and workflow types, reviewed by the service owners.

  3. Define who may pause and unpause

    Agree in writing which roles can run pause and unpause commands in each namespace, who approves a pause during an incident, and who is the single decision owner for unpausing. Record how those roles authenticate and how the access is granted. If the self-hosted deployment has no Authorizer configured, the default noopAuthorizer allows every API request, so confirm that access control exists before relying on these roles. Done when the named roles, approvers and access method are in the runbook and someone has checked the access in the deployment.

  4. Rehearse pause and unpause in a non-production namespace

    Create a test namespace that mirrors the production workflow and Activity types, run sample workflows against a stub dependency, then pause and unpause the Activities and the workflows separately. Observe what stops, what continues, and how queued work resumes. Repeat the exercise with the team members named in the runbook so they can run the commands from memory under pressure. Done when the rehearsal notes record each command used, the observed behavior, and any gaps found in the runbook.

  5. Document the checks that confirm a pause took effect

    Write the specific checks that show a pause is in effect and that no new Activity attempts reach the failing dependency. Include the description or list output for the paused Activities and workflows, the worker logs and metrics that should go quiet, and the dependency's own request count. Name the person who runs each check and the signal that counts as confirmed. Done when every pause action in the runbook has a matching verification step that the rehearsal confirmed.

  6. Rehearse unpausing with a controlled number of workflows

    Choose a small, defined set of workflows in the test namespace, unpause them in a batch you can count, and confirm they resume and complete as expected before resuming the rest. Check the dependency's health signal and the error rate between each step. Record the batch size the team used, because the production unpause should follow the same staged pattern. Done when the rehearsal shows the batch resuming cleanly and the runbook lists the staged unpause order and the stop condition that halts the process.

  7. Record the pause in the incident timeline

    Specify the fields the incident commander must log whenever a pause or unpause happens: time, namespace, scope (Activity types, task queues, or workflow IDs), the approving role, the verification check result, and the reason. Add the entry template to the incident tooling so it is ready before an outage. Done when a sample timeline entry from the rehearsal has been reviewed and the template is linked from the runbook.

Security and audit risks of pausing work

A pause stops work that other teams depend on, so the people who can issue one need the same scrutiny as any production change. The cards below cover who can pause, how access is granted, what gets recorded, and where the controls sit in your environment.

Open API access by default

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Anyone who can reach the frontend could pause or unpause Activities and Workflows during an incident, or do far worse. Before relying on pause during an outage, confirm that an Authorizer is set in the server configuration and test that an unauthorized caller is refused.

Self-hosted security docs

Pause rights mapped to roles

Pausing is a namespace-scoped operation, so it should be granted only to the on-call and incident roles that need it. A ClaimMapper maps JWT or certificate claims to namespace roles, and the Authorizer uses those roles to decide each request. Check that read-only operators and general developers cannot pause or unpause production namespaces, and that the mapping is reviewed when team membership changes.

Audit trail of pause actions

A pause is an operational change that can delay customer-facing work, so you need to answer who paused which Activity or Workflow, when, and why. Decide where API and Web UI actions are logged, how long those logs are kept, and who can read them. Test the trail by pausing a non-production Workflow and confirming that the record names the caller and the time.

Web UI and CLI as access paths

Pauses can be issued from the Web UI and from the Temporal CLI, and both reach the same API. Each path needs the same authentication, so an OIDC single sign-on setup for the Web UI does not protect a CLI session using a shared credential. Inventory every route to the frontend and confirm each one passes through the same role checks.

Frontend network exposure

Temporal services should run on hosts not reachable from the public internet, with network access restricted to trusted internal networks. Confirm that the frontend port is not published beyond your internal networks or bastion paths, and that mTLS is enabled for internode and frontend traffic. An exposed frontend turns every access control gap into an external risk during the incident.

Deployment docs

Sensitive payloads in incident notes

Incident channels, tickets and runbooks often collect workflow IDs, inputs and error output, and these can contain personal or confidential data. Record workflow and run IDs and the pause reason, but keep payload contents out of shared notes. If payloads are encrypted with a custom codec, confirm that responders who need decoded data go through the codec server under their own access rights.

Unpausing without creating a retry storm

Releasing a large backlog of paused work all at once can overload the dependency that just recovered. Paused activities and workflows have been waiting, so when they resume, workers may send many queued attempts to the same database, API or queue within a short window. A dependency that accepts traffic again can fail under that burst, which restarts the incident. Before unpausing, confirm the dependency is healthy using its own signals, such as error rate, latency and saturation, and do not treat a quiet Web UI as proof of recovery. Then resume a small group first, chosen by task queue or workflow type so that the group maps to one dependency. Watch that dependency's error rate and latency, along with worker load and activity retry counts in your metrics.

Widen the released group in steps, and only while the signals stay within the limits you set before the incident. Wait between steps long enough for retries from the previous step to drain, because activity retries continue on their configured backoff and can arrive later than the first attempts. Agree the thresholds in advance with the dependency owners and the on-call engineers: the error rate and latency you will accept, the worker CPU and memory headroom you require, and who can halt the release. If a threshold is crossed, pause the group again and let the dependency recover before continuing. Ask your team to set the group sizes and wait times for your own environment, since these depend on your capacity. Record each step so the next responder can see where the release stopped.

Before the final group is released, check for workflows that failed or timed out while they were paused. A pause holds work, but it does not guarantee that timeouts stop counting, so confirm in your Temporal version and configuration whether workflow or activity timeouts keep running during a pause. Use a visibility query on the affected workflow types and time range to list executions in failed, timed out and still running states, then group them by failure cause. For each group, decide whether to retry the work, reset it to an earlier point after a code fix using the resetting workflows runbook, or repair its state using the troubleshooting failed executions page. Use the batch operations page for larger groups, and record the decision for each group so the incident review can trace it.

Limits to confirm in your Temporal environment

Pause is a control you test before an incident, not during one. The cards below cover the release, SDK, retry, restart, hosting and visibility questions that decide whether a pause holds work the way your runbook assumes. Items marked as needing a non-production test should be checked in a namespace that carries no live traffic.

Pause availability in your release line

Confirm that the Temporal Server release line you run includes Activity Pause and Workflow Pause before you write them into a runbook. The published releases include v1.32.1, released on October 8, 2026, and patch releases v1.31.4 and v1.30.8 for earlier minor lines, so check the release notes for the exact minor version in production. Record the server version in the runbook. Test this in a non-production namespace on the same version.

Temporal releases

SDK behavior for paused activities

Each official SDK and version can handle a paused activity differently in its worker, including how it reports the pause and whether a heartbeat or cancellation path still runs. Confirm the behavior for each language your workers use. Run a test in a non-production namespace with the exact SDK version you deploy, because a pause that works in one SDK may not surface the same way in another.

Interaction with retries and timeouts

A paused activity can still run into its schedule-to-start or start-to-close timeouts, and retry policies can count attempts during a long pause. Check whether an activity that is paused and then unpaused starts a new attempt, resumes its existing one, or fails on timeout. Set retry and timeout values with the outage length in mind. Verify these settings in a non-production namespace using a forced pause longer than your timeouts.

Paused work across restarts and deployments

Pause state is recorded on the Temporal service, so it should survive worker restarts, but your own deployment tooling may not. Confirm that a rolling worker deployment, a scale-to-zero event or a worker crash does not clear or silently resume paused work, and that the new workers pick up tasks the same way. Include a worker rollout in your test plan. Test a worker restart during a pause in a non-production namespace.

Temporal Cloud handling

If you plan to use Temporal Cloud, confirm with Temporal how Activity Pause and Workflow Pause are offered on the service, which namespace features apply, and whether the behavior matches your self-hosted tests. Ask for written confirmation of the feature's availability and any operational limits. Do not assume a self-hosted result carries over to a managed namespace.

Temporal pricing

Visibility queries for paused work

During an incident you need a query that lists paused workflows and activities, along with their counts and task queues, so the on-call team can confirm what is held. Check that your visibility store supports the search attributes and query syntax you need, and that results appear within the time your runbook expects. Build and save the query before an incident. Validate it in a non-production namespace against a seeded set of paused executions.

Visibility docs

Questions teams ask before pausing Temporal work

How much effort does a Temporal pause runbook take to write?

Effort depends mostly on how many downstream dependencies your workflows call, how many task queues and namespaces they run on, and how many teams own those dependencies. A runbook for one dependency with a single owner is a small document. A runbook covering several dependencies needs a decision for each: which activities pause, which workflows pause, what happens to in-flight work, and who authorizes the pause and the unpause. Your team will also need to confirm which Temporal features your version and deployment support, because pause behavior differs by deployment. Ask any partner for a written scope that lists each dependency, the affected workflow types and the rehearsal steps, since those items set the work.

Can our own team build a pause runbook without outside help?

Yes, many teams do, provided they have engineers who know their workflow code and at least one person who can operate the Temporal Service. The work is mainly design and rehearsal: mapping dependencies to workflow types, writing the pause and unpause commands, and testing them in a non-production environment. The harder parts are usually organizational, such as getting dependency owners to agree on alert thresholds and escalation. An outside partner can help by running the rehearsal, reviewing the runbook against your actual code, and checking that the controls hold under a realistic failure. Whichever route you choose, confirm the commands against the Temporal CLI version you run, since behavior can change between releases.

What access and inputs does a pause project need from us?

The project needs a few things in writing before work starts. Engineers need read access to the workflow and activity code, the deployment configuration for your Temporal Service, and the list of task queues and namespaces in use. They need a non-production namespace where pause and unpause can be rehearsed without touching live executions. Each downstream dependency needs a named owner who can confirm its failure modes and recovery signals. Security teams should confirm which identities are allowed to issue pause commands, because a self-hosted service with no configured Authorizer accepts every API request, so access rules must be set before the runbook relies on them. Ask for this list in the scope document so gaps are visible early.

How long do rehearsal and rollout usually take, and what sets that duration?

No duration figure has been established for this work, so ask for one in a written scope rather than relying on a general estimate. The main drivers are the number of dependencies and workflow types, whether a non-production namespace with realistic load already exists, how many teams must sign off on the runbook, and whether your deployment already runs the Temporal version you expect. Rehearsal time grows when a pause affects workflows with long histories or many child workflows, because each needs checking. Rollout time grows with the number of environments you promote the runbook through. Ask the provider to break the schedule into design, rehearsal, review and handover so you can see which parts depend on your teams.

Does pausing Temporal work change our infrastructure cost?

Pausing itself does not add a separate infrastructure charge on a self-hosted service, because it is a control you operate on work that already exists. The cost comes from the people and environments needed to build and test the runbook, and from the operational time spent during incidents. On Temporal Cloud, pricing is metered by actions and storage, and the published pay-as-you-go rate starts at 50 US dollars per million actions, with active storage at 0.042 dollars per GB-hour and retained storage at 0.00105 dollars per GB-hour, according to the Temporal pricing page. Confirm with Temporal how paused workflows and retained histories are metered for your plan, because stalled work can keep storage in use longer than expected. Include the non-production namespace in your cost model.

When should we bring in a partner for Temporal pause work?

Bring in a partner when the pause decision affects several teams, when your workflows are business-critical enough that an untested pause could cause damage, or when your internal team lacks someone who has operated the Temporal Service in production. A partner is also useful for independent review of the runbook before an auditor or risk committee asks for evidence. DeployOpen plans, implements and documents self-hosted open-source platforms in infrastructure you control, and can run rehearsals and security testing of the controls around the service. It does not issue audit reports or certifications. Ask for a fixed-scope proposal with written deliverables and a retest step, so the outcome is clear before work starts.

How DeployOpen works on this

DeployOpen scopes Temporal incident controls before any change is made, so pause and unpause steps match your workflows, workers and runbooks. The work is delivered inside infrastructure you control, with a written scope, tested procedures and documentation your operators can follow during an outage.

How we scope

  • Inventory which activities and workflows call the failing downstream service and which can safely hold.
  • Confirm the Temporal deployment model and server version, since pause behavior depends on the release in use.
  • Agree in writing which namespaces, task queues and workflow types are in scope and who may pause or unpause them.

How we build

  • Define pause and unpause runbooks with named commands, approvals and checks on the state of held work.
  • Configure worker and retry settings so paused work resumes predictably once the downstream service recovers.
  • Test pause and unpause in a non-production namespace against simulated downstream outages before go-live.

How we hand over

  • Deliver the written runbook, decision table and unpause checklist, with ownership and escalation contacts named.
  • Walk operators through a drill that pauses and resumes a sample workflow type in your own environment.
  • Document the limits of each control so teams know what keeps running during a pause.

How we support

  • Offer ongoing support, upgrades and continuous testing of incident controls as a retainer after handover.
  • Retest the runbook after Temporal server upgrades, worker changes or new workflow types are added.
  • Confirm support terms and response expectations in the quote, since they are set per engagement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.