Skip to main content

113 docs tagged with "Activities"

View all tags

Activities - .NET SDK

Activity Definitions, Activity Execution, Timeouts, Standalone Activities, Dynamic Activities, and benign exceptions in the Temporal .NET SDK.

Activities - Go SDK

Activity Definitions, Activity Execution, Timeouts, Standalone Activities, Dynamic Activities, and benign exceptions in the Temporal Go SDK.

Activities - Java SDK

Activity Definitions, Activity Execution, Timeouts, Standalone Activities, and benign exceptions in the Temporal Java SDK.

Activities - PHP SDK

Activity Definitions, Activity Execution, Activity Timeouts, and Asynchronous Activity Completion in the Temporal PHP SDK.

Activities - Python SDK

Activity Definitions, Activity Execution, Timeouts, Standalone Activities, and benign exceptions in the Temporal Python SDK.

Activities - Ruby SDK

Activity Definitions, Activity Execution, Timeouts, Standalone Activities, Dynamic Activities, and benign exceptions in the Temporal Ruby SDK.

Activities - Rust SDK

Activity Definitions, Activity Execution, and Activity Timeouts in the Temporal Rust SDK, including Retry Policies and Heartbeats.

Activities - TypeScript SDK

Activity Definitions, Activity Execution, Timeouts, Standalone Activities, and benign exceptions in the Temporal TypeScript SDK.

Activity basics - .NET SDK

Define an Activity as a .NET method with the Activity attribute, give it a custom name, and keep argument Payloads inside the 2 MB and 4 MB gRPC limits.

Activity basics - Go SDK

An Activity Definition in Go is an exportable function or struct method. Set its parameters, return values, and a custom Activity Type name.

Activity basics - Java SDK

Implement an Activity behind an annotated Java interface, define its parameters and return values, and control Activity Type names with prefixes.

Activity basics - PHP SDK

Implement an Activity behind a PHP interface, define its parameters and return values, and set a custom name for the Activity Type.

Activity basics - Python SDK

Define an Activity with the activity.defn decorator, pass a single dataclass parameter, return serializable data, and set a custom Activity Type.

Activity basics - Ruby SDK

Define an Activity as a class that extends Temporalio::Activity::Definition, name it, and pick the executor that controls Activity concurrency.

Activity basics - Rust SDK

Define an Activity as a Rust function, set its parameters and serializable return values, and give its Activity Type a custom name.

Activity basics - TypeScript SDK

Export an Activity as an async TypeScript function, type its parameters and return value, and share dependencies through dependency injection.

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 Execution - .NET SDK

Call an Activity from a .NET Workflow with ExecuteActivityAsync, set the required Schedule-To-Close or Start-To-Close Timeout, and await the result.

Activity Execution - Go SDK

Call an Activity from a Go Workflow with workflow.ExecuteActivity, set the required Timeout, and look up every ActivityOptions field in one table.

Activity Execution - Java SDK

Invoke Activities synchronously or asynchronously from a Java Workflow, set ActivityOptions and Timeouts, and read the ActivityExecutionContext.

Activity Execution - PHP SDK

Call an Activity from a PHP Workflow through a stub created with newActivityStub, set the required Timeout, and get the Activity result.

Activity Execution - Python SDK

Call an Activity from a Python Workflow with workflow.execute_activity, set the required Timeout, and await the Activity result.

Activity Execution - Ruby SDK

Call an Activity from a Ruby Workflow with Temporalio::Workflow.execute_activity and set the required Schedule-To-Close or Start-To-Close Timeout.

Activity Execution - Rust SDK

Call an Activity from a Rust Workflow with ctx.execute_activity, set the required Timeout, and await the Future it returns.

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 - .NET SDK

Set Activity Timeouts and a Retry Policy with the Temporal .NET SDK, override the next retry delay, and Heartbeat long-running Activities.

Activity Timeouts - Go SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a Go Activity, tune its Retry Policy, and override the next retry delay.

Activity Timeouts - Java SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a Java Activity, tune its Retry Policy, and override the next retry delay.

Activity Timeouts - PHP SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a PHP Activity, tune its Retry Policy, and override the next retry delay.

Activity Timeouts - Python SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a Python Activity, tune its Retry Policy, and override the next retry delay.

Activity Timeouts - Ruby SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a Ruby Activity, tune its Retry Policy, and override the next retry delay.

Activity Timeouts - Rust SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a Rust Activity, tune its Retry Policy, and override the next retry delay.

Activity Timeouts - TypeScript SDK

Set the Schedule-To-Close, Start-To-Close, and Heartbeat Timeouts on a TypeScript Activity, tune its Retry Policy, and override the next retry delay.

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 in .NET to reduce noise in logs, metrics, and OpenTelemetry traces.

Benign exceptions - Go SDK

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

Benign exceptions - Java SDK

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

Benign exceptions - Python SDK

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

Benign exceptions - Ruby SDK

Mark expected or non-severe Activity errors as benign in Ruby 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.

Dynamic Activities - Ruby SDK

Register one Dynamic Activity per Worker with activity_dynamic to handle Activity Types that match no other registered Activity.

Dynamic Activity - .NET SDK

Register one Dynamic Activity per Worker with Activity(Dynamic = true) to handle Activity Types that match no other registered Activity.

Dynamic Activity - Go SDK

Register one Dynamic Activity per Worker with RegisterDynamicActivity to handle Activity Types that match no other registered Activity.

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.