Skip to main content

94 docs tagged with "Activities"

View all tags

Activity Definition

Learn how to define a Temporal Activity; Activity Types, parameters, constraints, idempotency, and retry behavior for the function your Worker runs.

Activity Execution

Learn how to start an Activity as a durable Activity Execution with built-in retries, timeouts, and failure handling.

Activity Operations

Learn how to manage a running Activity Execution with commands to Pause, Unpause, Reset, Update Options, Request Cancel, Terminate, and Delete.

Activity Timeouts - Go SDK

Optimize Workflow Execution with Temporal Go SDK - Set Activity Timeouts and Retry Policies efficiently.

Activity Timeouts - Rust SDK

Optimize Workflow Execution with the Temporal Rust SDK by configuring Activity Timeouts, Retry Policies, and Heartbeats.

Asynchronous Activity - TypeScript SDK

Asynchronously complete an Activity in Temporal by enabling the Activity Function to return before the Activity Execution finishes, using AsyncCompletionClient.

Asynchronous Activity completion - Go SDK

Asynchronous Activity Completion lets the Activity Function return without finishing Activity Execution. Use Task Tokens and Temporal Client to complete the Activity externally.

Benign exceptions - .NET SDK

Mark expected or non-severe Activity errors as benign to reduce noise in logs, metrics, and OpenTelemetry traces.

Benign exceptions - Go SDK

Mark expected or non-severe Activity errors as benign to reduce noise in logs, metrics, and OpenTelemetry traces.

Benign exceptions - Java SDK

Mark expected or non-severe Activity errors as benign to reduce noise in logs, metrics, and OpenTelemetry traces.

Benign exceptions - Ruby SDK

Mark expected or non-severe Activity errors as benign to reduce noise in logs, metrics, and OpenTelemetry traces.

Cancellation and termination

Stop a Workflow already in progress, either by asking it to unwind the work it has done or by closing it outright when it can't respond.

Cancellation and Termination

Cancellation asks a Workflow to stop and run cleanup. Termination stops it immediately without cleanup. Compare the two and what each records.

Core primitives

Discover Temporal's Workflow, Activity, and Worker framework; orchestrate steps, encapsulate business logic, and execute code efficiently using the Temporal SDK in your favorite language.

Delete an Activity

Terminate a Standalone Activity Execution if it's still running, then remove its record from the Temporal Service asynchronously.

Detecting Activity failures

Understand Activity Execution timeouts in Temporal; Schedule-To-Start, Start-To-Close, Schedule-To-Close, and Activity Heartbeats, for effective Workflow management.

Early Return + Local Activities

Extends Early Return by running Phase 1 as Local Activities, so the client's first response comes from in-process work, not a server call.

Error handling - Java SDK

Catch the right exception types, wrap checked exceptions, and inspect failures correctly in Temporal Java Workflows and Activities.

Error handling - Python SDK

Learn how to handle errors in Temporal Python applications with retry policies, idempotent Activities, and recovery patterns.

Event History

Discover how Temporal uses the Event History to recreate a Workflow's state in the case of failure, such as a Worker crash, and how it uses replay to restore the Workflow's state to the point of failure.

Event History walkthrough with the .NET SDK

Discover how Temporal uses the Event History to recreate a Workflow's state in the case of failure, such as a Worker crash, and how it uses replay to restore the Workflow's state to the point of failure.

Event History walkthrough with the Go SDK

Discover how Temporal uses the Event History to recreate a Workflow's state in the case of failure, such as a Worker crash, and how it uses replay to restore the Workflow's state to the point of failure.

Event History walkthrough with the Java SDK

Discover how Temporal uses the Event History to recreate a Workflow's state in the case of failure, such as a Worker crash, and how it uses replay to restore the Workflow's state to the point of failure.

Event History walkthrough with the Python SDK

Discover how Temporal uses the Event History to recreate a Workflow's state in the case of failure, such as a Worker crash, and how it uses replay to restore the Workflow's state to the point of failure.

Event History walkthrough with the TypeScript SDK

Discover how Temporal uses the Event History to recreate a Workflow's state in the case of failure, such as a Worker crash, and how it uses replay to restore the Workflow's state to the point of failure.

Job queues

Run background jobs as Standalone Activities with durable retries, timeouts, priority and fairness dispatch, and per-job visibility without a Workflow.

Local Activities

Local Activities run inside the Worker process, skipping server round-trips for short, idempotent Activities on a latency-sensitive path.

Local Activity

Learn about Local Activities that run in the same Worker process as the Workflow that schedules it, trading full durability for lower latency and a smaller Event History.

Parallel Execution

Executes multiple Activities concurrently for maximum throughput with error handling and controlled parallelism.

Pause an Activity

Stop an Activity's retries without closing the Execution, detect a Pause from Activity code, and resume it later with Unpause.

Pick First Pattern

Races multiple Activities in parallel, returns the first completed result, and cancels the remaining Activities using SDK cancellation scopes.

Polling External Services

Strategies for polling external resources with varying frequencies: frequent, infrequent, and periodic patterns.

Request Cancel for an Activity

Ask an Activity Execution to close gracefully so your code can clean up, and what to expect when an attempt is already running.

Reset an Activity

Clear an Activity's retry state and schedule a fresh attempt, including what happens when an attempt is already running.

Saga Pattern

Manages distributed transactions with compensating actions. Each step has a compensation that undoes its effects if subsequent steps fail.

Standalone Activity

Learn about durable job processing with Standalone Activities that run independently from a Workflow.

Terminate an Activity

Forcefully close a Standalone Activity Execution immediately, with no opportunity for your Activity code to clean up first.

Timeouts and Retry Policies

Detect Workflow and Activity failures with timeouts, then mitigate them with automatic retries. Configuration guides for every Temporal SDK.

Unpause an Activity

Resume a Paused Activity Execution so its next attempt starts immediately, with options to reset retry state as it resumes.

Update Activity Options

Change an Activity's timeouts, Retry Policy, or Task Queue while it runs, without restarting the Execution or losing retry state.

What is a Temporal Activity?

Learn how Temporal turns a plain function you write into a Temporal Activity and durably executes it as a Workflow step or background job.

What is a Temporal Retry Policy?

Optimize your Workflow and Activity Task Executions with a custom Retry Policy on Temporal. Understand default retries, intervals, backoff, and maximum attempts for error handling.

Workflow Activity

Learn about Activities started as a step in a Workflow, scoped to that Workflow's lifetime and recorded in Workflow Event History.

Workflow Timeouts - Go SDK

Optimize Workflow Execution with Temporal Go SDK - Set Workflow Timeouts and Retry Policies efficiently.