Temporal Standalone Activities as a job queue

Standalone Activities give single-step background jobs durability, retries, timeouts and visibility without a Workflow. This page covers when they fit, how to configure them and what to confirm before moving off Celery, Sidekiq or a homegrown queue.

On this page

Temporal Standalone Activities as a job queue: when one step is enough

Teams running emails, webhooks or syncs on a queue often reach a point where the queue itself becomes the risk. Retries are hand-coded, failures disappear into logs, and nobody can answer quickly whether a given webhook was delivered. A Standalone Activity addresses that gap for single-step work. It is a top-level Activity Execution started by a Client without a Workflow, so one unit of work gets Temporal's durability, retries, timeouts and visibility without the overhead of writing a Workflow around it. Standalone Activities are Generally Available, and Temporal's own guidance points teams moving off Celery, Sidekiq or homegrown queues toward them, so this is a supported path rather than an experiment. Before adopting it, confirm the Temporal Server version and SDK version your environment runs, since the feature depends on both.

The decision turns on what the job needs. Choose a Standalone Activity when the work is one side-effecting call, such as sending a message through an email provider or posting a payload to a partner endpoint, and nothing needs to coordinate across several steps. Choose a Workflow when the job has ordering, branching, waiting for human approval or compensating actions if a later step fails. The practical check is to list each job type and count its steps. An illustrative example: a password reset email is one call and fits a Standalone Activity, while an onboarding flow that sends an email, waits three days, then checks account state needs a Workflow. Define the retry policy and timeout per job type, because those settings decide how long a stuck webhook can keep retrying and when it is surfaced for review.

Standalone Activities are addressed by ID, which lets your application start, look up and manage a job by a business key such as an order or message identifier. Plan those IDs before the first job ships, and make them unique for the work they represent so duplicate submissions can be detected rather than silently doubled. A single application can mix both models: keep Standalone Activities for the high-volume single steps and Workflows for the multi-step processes, with shared task queue and worker conventions so operations teams do not run two unrelated systems. Ask your engineering team to confirm the exact start, retrieval and cancellation calls in the SDK they use, and review the Temporal Standalone Activities documentation for current behavior before finalizing the design.

When a Standalone Activity beats a Workflow

Standalone Activities suit work that is one step, has no branching state to remember, and must be found by a business key. Each card below is a test you can run against a job type before choosing between a Standalone Activity and a Workflow, and each names what you give up when the answer is yes.

Single-step jobs

A job that makes one call, such as sending an email or posting a webhook, maps directly to one Activity execution. If the job needs a second step that depends on the first result, you are describing a Workflow. List the steps for each job type and count them. Be honest about steps that look single but really fan out, for example an email that must also write an audit record.

Standalone Activities docs

No multi-step orchestration state

A Workflow keeps its own state across steps, so a crash resumes at the right point. A Standalone Activity keeps no such state, so any progress you need must live in your own data store. Check whether any job needs to remember a partial result, wait for a human, or react to a signal midway. If so, that job belongs in a Workflow.

Job-level retries and timeouts

Retry policy and timeouts are set on the Activity itself, so a failed email can be retried with backoff without restarting anything else. Confirm for each job type how many attempts are acceptable, how long one attempt may run, and which errors are non-retryable, such as a permanently rejected address. Writing those values down is usually the most useful design exercise.

Addressing jobs by ID

A Standalone Activity is started with its own ID, so you can look it up, check its status and avoid duplicate starts for a given business key. Choose IDs that map to the real object, such as an invoice or webhook delivery number, rather than generated values. Decide the reuse behavior before go-live, because a reused ID can block a legitimate retry.

The cost of losing workflow history

A Workflow records every step in its event history, which helps when a multi-step process must be audited or debugged. A Standalone Activity gives you the execution record for one unit of work only. Before you move a process out of a Workflow, confirm that your audit and support teams can reconstruct what happened from the Activity record and your own logs.

Mixing both in one application

Many applications need both. An order Workflow can start a Standalone Activity for a receipt email and keep waiting for payment. Decide which worker pool and task queue serves each kind of work, and keep the same retry and logging conventions across both so operators read one picture. Test the handoff between a Workflow and a standalone job as carefully as either side alone.

Use cases and patterns

Retry, timeout and ID options and when each fits

This table compares the options a client sets when starting a Standalone Activity: retry policy, start-to-close and schedule-to-close timeouts, Activity ID and task queue. Read each row as a question to answer for a specific job type, such as an email, a webhook call or a data sync. Confirm the exact option names and default values in the current SDK reference for your language before you set them.

OptionWhat it controlsWhen it fits a jobWhat to confirm
Retry policyHow often and how quickly a failed attempt is retried, and which errors stop retries earlyUse for transient failures such as a mail provider timeout or a webhook receiver returning a server error; set a non-retryable error list for errors like invalid recipientsDefault retry behavior and the exact policy fields in your SDK
Start-to-close timeoutThe maximum time a single attempt may run once a worker starts itSet it to a bound slightly above the normal duration of one send or sync call so a hung HTTP request is cut off and retriedWhether your SDK requires this timeout or a schedule-to-close timeout to be set
Schedule-to-close timeoutThe total time allowed from scheduling until completion, including queue wait and all retriesUse when a job has a business deadline, such as a webhook that is useless after a set window, so retries stop once the window passesInteraction with retry attempts and whether it is mandatory for your job type
Activity IDA unique identifier for the Standalone Activity within its namespace, used to address it laterUse a stable key such as an order or message identifier so a duplicate start with the same ID is rejected instead of sending a second emailID reuse rules and how a duplicate start is reported by your SDK
Task queueThe queue that workers poll for this activity typeGive email, webhook and sync jobs separate queues when they need different worker pools, rate limits or scalingWorker registration on each queue and how queues are named per environment
Idempotency in the activity codeWhether a retried attempt produces the same external effect as the firstRequired for any job that calls an external service, because a retry can run after the first call already succeededWhether the downstream API accepts an idempotency key and how it expires

How retries, timeouts and job IDs behave

A Client starts a Standalone Activity directly, without a Workflow around it. The Client names the Activity type, the task queue that workers poll, and an Activity ID, then sends the start request to the Temporal Service. A worker that registers the Activity type on that task queue picks it up, runs the function once per attempt, and reports the result back. Because the Activity is the top-level execution, it has its own history, retry state and timeouts, and you read its outcome by addressing it with its ID. Confirm the exact start options and client methods for your SDK and server version in the Temporal Standalone Activities documentation before writing the submission code.

Retries and timeouts apply to that one unit of work. The retry policy controls how many attempts the service makes and how long it waits between them, and the timeout settings bound how long a single attempt may run and how long the whole execution may last. Your handler must still be safe to run more than once, because a retry after a worker crash or a slow response repeats side effects such as sending an email or posting a webhook. Decide which timeouts are the job's real deadline, decide which error types should never be retried, and test a forced failure in a non-production namespace to confirm the observed attempt count matches your policy. Treat the default values as something to review, not to accept.

The Activity ID is the handle for both lookup and idempotent submission. If a Client retries the start call after a network error, a second start with the same ID is rejected while the first execution is still open or within its ID reuse rules, which prevents duplicate jobs. Choose IDs from a stable business key, such as an order or message identifier plus the job type, rather than a random value generated per request. Confirm how the server applies its ID reuse policy and what error the SDK returns on a duplicate start, since your submission code must treat that response as success rather than as a failure to retry.

Mixing Standalone Activities and Workflows in one app

A job that stays one step, such as sending a receipt email or posting a payload to a webhook, fits a Standalone Activity well. A Standalone Activity is a top-level Activity Execution started by a Client without a Workflow, so it gives one unit of work durability, retries, timeouts and visibility without a Workflow history around it. In this situation the app usually keeps one Client per process that submits jobs, and a dedicated task queue for each class of job so that slow syncs do not hold up emails.

  • Start from the Client: the application calls the Client to start the Activity by ID, and no Workflow code is written for the job.
  • Separate queues by behavior: give jobs with very different latency or rate limits their own task queues and worker pools.
  • Keep activity code idempotent: retries can run the same work again, so writes to external systems need deduplication keys.
  • Set timeouts per job type: a webhook and a bulk sync need different start-to-close limits and retry policies.
  • Confirm visibility needs: ask whether operators must find these executions by business identifier, which affects how IDs are chosen.

Before you commit, check which SDK versions in your stack expose the Standalone Activity API and confirm the feature set against the current documentation.

Setting up a Standalone Activity job queue

This sequence takes a self-hosted Temporal service from a version and storage check to a verified job queue where single-step Standalone Activities run on a dedicated worker, with retries, timeouts and stable IDs in place before any production traffic arrives.

  1. Confirm server version and stores

    Your platform or Temporal owner records the self-hosted Temporal Server version, the persistence store (Cassandra, PostgreSQL or MySQL within the versions Temporal documents) and the advanced visibility store (Elasticsearch, OpenSearch, MySQL, PostgreSQL or SQLite, depending on version). Check the server version against the latest release notes and confirm that Standalone Activities are available on that line, since the feature is Generally Available. Confirm that the Helm chart version matches the server image if you deploy on Kubernetes. Done means you have a written version record and a visibility store that can show Activity executions, so you can verify the job queue later in the Web UI.

  2. Restrict access before enabling jobs

    Before any job is started, confirm that the Temporal frontend is not reachable from the public internet and that an Authorizer and ClaimMapper are configured, because a self-hosted service with no Authorizer uses a default that allows every API request without authentication. Your security team reviews namespace roles for the worker identity and the client identity that will start jobs. Done means a test call from outside the trusted network fails and the worker and client each hold only the namespace role they need.

  3. Create a dedicated namespace and task queue

    Your platform engineer creates a namespace for background jobs, separate from workflow namespaces where practical, and chooses a task queue name for Activity work such as one named for the job family. Keeping job traffic on its own task queue lets you scale and monitor it separately from workflow tasks. Done means the namespace exists, the task queue name is written in your configuration, and no other worker polls it by accident.

  4. Register the Activity worker

    Your application team builds an Activity worker that registers the functions for each job type on the dedicated task queue, using the SDK for the language your team uses. Keep each function to one unit of work (for example, sending one email or posting one webhook) so retries apply to the whole job. Run the worker in a test environment and confirm it connects and reports as polling the queue. Done means the worker shows as active on the task queue and a test Activity can complete end to end.

  5. Define retry and timeout policy per job type

    For each job type, your team sets the start-to-close timeout, the retry policy (initial interval, backoff, maximum attempts and non-retryable error types) and any schedule-to-close limit, based on how long the external system takes and which errors are permanent. Email and webhook jobs usually need different policies from syncs. Have the owner of each downstream system review the non-retryable list, so bad input does not retry forever. Done means each job type has a written policy and a unit test or test run shows a transient failure retrying and a permanent failure stopping.

  6. Start jobs from a client with stable IDs

    Your application code starts each Standalone Activity from a Temporal Client, passing the task queue, the job type and a stable Activity ID derived from the business key, such as the email message ID or the webhook event ID. Stable IDs let you look up a job later and avoid starting the same job twice when a caller retries. Decide how the caller handles an ID that already exists and document the response. Done means starting the same job twice with the same ID is handled as your design intends, and the job can be found by its ID.

  7. Verify executions in the Web UI and visibility

    Your operations team opens the Web UI and the visibility search for the job namespace, filters by Activity ID and status, and checks that a completed job, a retried job and a failed job appear with their attempts and errors. Confirm that the search returns results in your visibility store within the time your team accepts for operations. Done means an operator can locate any job by its ID, see its attempt history and tell whether it succeeded, and this check is recorded in your runbook.

  8. Mix jobs and workflows in one application

    Where some work needs multiple steps or waits, your team keeps those parts in Workflows and calls the same Activity functions from them, so both models share one worker codebase. Confirm that a Workflow and a Standalone Activity can use the same task queue or separate ones as your design requires, and that changes to Activity code are tested against both paths. Done means one Workflow that calls an Activity and one standalone job both run to completion on the same worker, and you have documented which work belongs in each model.

Security and operational considerations

A Standalone Activity job queue is only as safe as the Temporal service behind it. The cards below cover who can submit jobs, how job data is protected, where the services sit on the network, and how failed jobs get noticed. Each one is a decision to make before the first job reaches production.

Authorization on job submission

Self-hosted Temporal uses the noopAuthorizer when no Authorizer is configured, and that default allows every API request with no authentication or access control. Any client that can reach the frontend could start, cancel or read Standalone Activities in any namespace. Before jobs carry customer data, confirm that an Authorizer and a ClaimMapper are configured so that namespace roles govern who can submit and inspect jobs.

Temporal security docs

Mutual TLS between services and clients

Self-hosted Temporal supports mTLS with separate settings for internode traffic and frontend traffic. Frontend settings govern the connection from the email, webhook and sync services that submit Standalone Activities and the workers that run them. Plan certificate issuance, rotation and revocation for each client identity, and test that a client without a valid certificate is refused before go-live.

Payload encryption for job data

Email bodies, webhook signing secrets and sync credentials travel as Activity inputs and can be stored in workflow history. Route them through a custom payload codec so they are encrypted before they reach the server, and run a codec server so operators can still read histories in the Web UI. Decide the key management owner and rotation process before jobs are written, because re-encrypting history later is costly.

Keep services off the public internet

Temporal's deployment guidance says its services should run on hosts that are not reachable from the public internet, with network access limited to trusted internal networks. For a job queue this means the frontend, history and matching services, and the database behind them, stay private, while only the application services that enqueue jobs and the workers that execute them can reach the frontend. Verify this with an external scan after each network change.

Self-hosted deployment docs

Alerting on failed and stuck jobs

Retries can hide failures until a job exhausts its retry policy, so alert on the terminal failures and on jobs that stay open longer than their timeout allows. Use a visibility store that supports querying by status, and define which Standalone Activity types page an on-call engineer and which only log. Test the alert by forcing a failing webhook in a non-production namespace and confirming the notification arrives.

How a job flows from a client to a worker

The flow starts in the producer application, which acts as the Client and starts a Standalone Activity through the Temporal frontend without creating a Workflow. The frontend places the Activity on a task queue, and a worker polling that queue runs the Activity code. If the Activity fails, Temporal retries it under the retry policy, and the outcome appears in the Web UI. Check that the frontend and persistence sit inside the trust boundary, because a self-hosted service without an Authorizer accepts any API request.

Standalone Activity path from a client, through the task queue, to a worker and back to the Web UI.

Questions buyers ask before moving off Celery or Sidekiq

What does moving off Celery or Sidekiq cost in effort, and what drives it?

The effort is driven mostly by how many job types you run, how much business logic sits inside each task, and how many places enqueue work. Each job type must be mapped to a Standalone Activity with its own retry policy, timeouts and idempotency rules, and the code that starts jobs must change from queue-specific calls to Client calls. Costs have three parts: your engineers' time to refactor and test, the Temporal Service you run or buy, and the worker fleet that executes activities. Ask any partner for a quote that lists job types, enqueue call sites, worker deployment and cutover steps separately, so you can see which parts are one-time and which recur.

How long does a queue migration take, and what sets the duration?

Duration depends on the number of job types, the count of enqueue points in the codebase, how many jobs are in flight during cutover, and how much of your current behavior must be matched exactly. Teams usually move one job family at a time and run old and new queues side by side until the old one drains, so the drain period and the number of cutover waves set the calendar. Infrastructure approval, network access to the Temporal Service and the review cycle for code changes can also dominate. Ask for a written plan that names the waves, the drain criteria and the rollback point for each wave.

What must our team provide before a Standalone Activity migration starts?

You need to provide the infrastructure, the namespaces and the people who own the code. Infrastructure means a self-hosted Temporal Service or a Temporal Cloud account, plus worker hosts that can reach it, placed on networks that are not exposed to the public internet, as the self-hosted deployment docs advise. Namespaces should be planned per environment and per team or data boundary before workers connect. Code owners must decide the idempotency rules, retry limits and timeouts for each job type, because Temporal cannot infer what is safe to repeat. Name a technical owner for each job family and a reviewer for every change to enqueue logic.

Can our own engineers migrate off Celery or Sidekiq without outside help?

Yes, a team with Temporal SDK experience and operational capacity can do the migration in-house, and many do. The work is well-bounded when the job inventory is small and the team owns both the producers and the consumers. Outside help is most useful when you lack SDK experience, need a documented cutover with rollback, must run the service inside a regulated boundary, or cannot spare engineers for upkeep during the switch. Whichever route you choose, write down the scope, deliverables and acceptance tests before work starts, since fixed-scope engagements are agreed in writing in advance.

Do Standalone Activities replace Workflows in our application?

No. A Standalone Activity is a top-level Activity Execution started by a Client without a Workflow, giving a single unit of work durability, retries, timeouts and visibility. Use it for one-step background jobs such as sending an email, calling a webhook or running a sync. Keep Workflows for multi-step processes that need coordination, branching, waiting on signals or compensating actions across several steps. Many applications run both in the same codebase, with simple jobs as Standalone Activities and longer processes as Workflows. Review each job type against that line before you commit to a design.

What recurring operating work remains after a Celery or Sidekiq migration?

Recurring work shifts from broker and queue care to running the Temporal Service and workers. For a self-hosted service, plan for upgrades one minor version at a time, with schema upgrades run before server upgrades when release notes call for them, and for persistence and visibility store maintenance. Worker fleets need scaling, shutdown handling and alerting on task latency and failures. Security reviews of namespaces, authorization settings and secrets also recur. If you use Temporal Cloud, the recurring cost is usage-based plus any support tier you buy, so confirm the pricing model and support terms with the provider before you size the budget.

What should we check first in our current queue before we quote a migration?

Start with an inventory of every job type, its average and peak volume, its runtime, the retries and timeouts it uses today, and whether it is safe to run twice. Then list every enqueue call site, scheduled or periodic job, and any job that depends on ordering or uniqueness, since those behave differently under Temporal. Record where jobs are inspected or retried by hand, because those operator habits must be replaced. This inventory turns a vague estimate into a scope a partner or your team can price and sequence.

How DeployOpen works on this

DeployOpen plans, builds, documents and supports Temporal Standalone Activities as a job queue inside infrastructure you control, with the job inventory, retry and timeout policies, and worker deployment agreed before any code is written. Engagements are fixed-scope, so the deliverables and the boundary between standalone jobs and Workflows are settled in writing first.

How we scope

  • Inventory every background job to sort single-step work from multi-step Workflows before choosing Standalone Activities.
  • Record retry policy, timeout, and job ID rules for each job type in the written scope.
  • Agree which worker task queues, namespaces and Temporal deployment (self-hosted or Temporal Cloud) the jobs will run on.

How we build

  • Implement Standalone Activity starters and activity workers in your chosen Temporal SDK with idempotent handlers.
  • Set job ID conventions so duplicate submissions and lookups by ID behave the way your application expects.
  • Test retries, timeouts and worker shutdown against your real downstream systems such as mail, webhook and sync targets.

How we hand over

  • Deliver the job catalog with retry, timeout and ID policies, plus the rules for when a job should become a Workflow.
  • Document the worker deployment, configuration and alerting so your platform team can run it without us.
  • Walk your engineers through the runbook for failed, stuck and re-submitted jobs before the handover closes.

How we support

  • Offer ongoing support, Temporal Server upgrades and continuous testing as a retainer after handover.
  • Review new job types against the same ID, retry and idempotency rules before they reach production.
  • Keep the SDK, server and worker versions in your written support plan current with the release notes you approve.

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.