Skip to main content

118 docs tagged with "Activities"

View all tags

Activities

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

Activities

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

Activities

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

Activities

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

Activities

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

Activities

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

Activities

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

Activities

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

Activity basics

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

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

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

Activity basics

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

Activity basics

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

Activity basics

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

Activity basics

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

Activity basics

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

Activity Definition

Write the function a Worker runs for an Activity, including its Activity Type, parameters, idempotency, retry policy, and Worker registration.

Activity Execution

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

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

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

Activity Execution

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

Activity Execution

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

Activity Execution

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

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

Activity Execution

Call an Activity from a TypeScript Workflow through proxyActivities, set the required Timeout, and keep Activity inputs and results small.

Activity Execution

How Workflow, Standalone, and Local Activity Executions run, from lifecycle and cancellation to Activity IDs and Asynchronous Activity Completion.

Activity Operations

Pause, Unpause, Reset, Update Options, Request Cancel, Terminate, or Delete an Activity Execution, and what each operation guarantees.

Activity Timeouts

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

Activity Timeouts

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

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

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

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

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

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

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.

Agent memory and state

Kill a refund agent mid-task, once without Temporal and once with it, to see where context, memory, and state live and which survive a crash.

AI agent gateway with Temporal Nexus

Route every agent tool call through one gateway with policy checks, human approval, and crash recovery, with each team's tools shared over Nexus.

Asynchronous Activity Completion

Asynchronously complete an Activity in Temporal. Follow simple steps to allow an Activity Function to return without the Activity Execution completing.

Asynchronous Activity Completion

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

Asynchronous Activity Completion

Asynchronously complete an Activity in a Workflow with Temporal. Follow steps to provide identifying information, use Temporal Client, and set the complete() method.

Asynchronous Activity Completion

Perform Asynchronous Activity Completion in Temporal, enabling Activities to return without execution completion and facilitating parallel operations in Workflows.

Asynchronous Activity Completion

Asynchronously complete an Activity using the Temporal Python SDK. Follow three steps for Activity completion and use the Temporal Client for Heartbeat and updates.

Asynchronous Activity Completion

Asynchronously complete an Activity in Temporal using the Ruby SDK. Follow simple steps to allow an Activity Function to return without the Activity Execution completing.

Asynchronous Activity Completion

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

Benign exceptions

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

Benign exceptions

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

Benign exceptions

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

Benign exceptions

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

Benign exceptions

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

Benign exceptions

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

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

Dynamic Activity

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

Dynamic Activity

Register one Dynamic Activity per Worker with activity_dynamic 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

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

Error handling

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 a Standalone Activity to stop at a safe point. Cancellation reaches a running attempt through Heartbeats, so your code can clean up.

Reset an Activity

Reset returns an Activity to attempt 1, keeps Heartbeat details, discards retry backoff, and Unpauses it unless you pass --keep-paused.

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

Terminate closes a Standalone Activity at once with no cleanup, and its record stays queryable until the Namespace Retention Period ends.

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

Unpausing reschedules an Activity immediately and discards retry backoff, but keeps its attempt count, Heartbeat details, and timeouts.

Update Activity Options

Adjust the timeouts, Retry Policy, or Task Queue of a Paused or running Activity, such as extending a Schedule-To-Close Timeout before Unpausing.

What is a Temporal Activity?

An Activity is a function a Worker runs, started from a Workflow or on its own as a background job, with retries and a durable Activity Execution.

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

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

Workflow Timeouts

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

Workflow Timeouts

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

Workflow Timeouts

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

Workflow Timeouts

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

Workflow Timeouts

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

Workflow Timeouts

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

Workflow Timeouts

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