Skip to main content

Temporal Events reference

View Markdown

An Event is a record in the Event History of a Workflow Execution. The Temporal Service records Events in response to Commands from a Worker and to requests from outside the Workflow, such as a Signal or a cancellation request. The SDK replays the Event History to recreate Workflow state.

Events are defined in the EventType enum and history messages of the Temporal gRPC API. Each table on this page lists the attributes you're most likely to need when reading an Event History. For the complete set of attributes, see the history messages.

When an Event comes from a Command, its entry lists the Command. The Event's workflow_task_completed_event_id attribute points to the WorkflowTaskCompleted Event of the Workflow Task that sent the Command.

Common Event fields​

Every Event has these fields, in addition to the attributes for its type.

FieldDescription
event_idThe position of the Event in the Event History, starting at 1.
event_timeThe time the Temporal Service recorded the Event.
event_typeThe type of the Event, such as EVENT_TYPE_WORKFLOW_EXECUTION_STARTED.
user_metadataA summary and details for the Event, carried over from the Command or Client call, such as a Timer summary.
linksLinks to related entities, such as the Workflow Execution or Nexus Operation that started this Workflow Execution.

Workflow Execution Events​

These Events record the lifecycle of the Workflow Execution. WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionTimedOut, WorkflowExecutionCanceled, WorkflowExecutionTerminated, and WorkflowExecutionContinuedAsNew close the Workflow Execution. Each of them is the last Event in the Event History.

WorkflowExecutionStarted​

The first Event in every Event History. The Temporal Service records it when it accepts a request to start the Workflow Execution.

FieldDescription
workflow_typeThe Workflow Type.
workflow_idThe Workflow ID.
parent_workflow_namespaceThe Namespace of the parent Workflow Execution, if this is a Child Workflow.
parent_workflow_executionThe Workflow ID and Run ID of the parent Workflow Execution, if this is a Child Workflow.
parent_initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event in the parent's Event History.
task_queueThe Task Queue the Workflow Tasks are sent to.
inputThe Workflow arguments. The SDK deserializes them and passes them to the Workflow Function.
workflow_execution_timeoutThe Workflow Execution Timeout, which covers retries and Continue-As-New.
workflow_run_timeoutThe Workflow Run Timeout for a single run.
workflow_task_timeoutThe Workflow Task Timeout for a single Workflow Task.
continued_execution_run_idThe Run ID of the previous run, if this run started from Continue-As-New, a retry, or a Cron Schedule.
initiatorWhat started this run from a previous one: the Workflow (Continue-As-New), a Retry Policy, or a Cron Schedule.
continued_failureThe failure of the previous run, if this run is a retry.
last_completion_resultThe result of the most recent completed run, for Cron and retried Workflow Executions.
original_execution_run_idThe Run ID when this Event was recorded. A Reset changes the Run ID but keeps this value.
identityThe identity of the Client that requested the start.
first_execution_run_idThe first Run ID in the chain of Continue-As-New, retry, Cron, and Reset runs.
retry_policyThe Retry Policy of the Workflow Execution, if one was set.
attemptThe attempt number of this run, starting at 1.
workflow_execution_expiration_timeThe time at which the Workflow Execution times out. Passed unchanged to later runs.
cron_scheduleThe Cron Schedule, if one was set.
first_workflow_task_backoffFor a Cron Workflow, the time between when this run was scheduled and when its first Workflow Task runs.
memoThe Memo: non-indexed information about the Workflow Execution.
search_attributesThe Search Attributes set at start.
prev_auto_reset_pointsThe Reset points carried over from the previous run.
headerHeaders the Client set, such as context propagation data.
completion_callbacksCallbacks the Temporal Service calls when the Workflow Execution closes, such as for a Nexus Operation backed by this Workflow.
versioning_overrideThe Versioning Override applied at start, if any.
priorityThe Priority metadata of the Workflow Execution.

WorkflowExecutionCompleted​

The Workflow Execution completed successfully.

FieldDescription
resultThe serialized return value of the Workflow Function.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
new_execution_run_idThe Run ID of the next run, if a Cron Schedule started one.

WorkflowExecutionFailed​

The Workflow Execution failed because the Workflow returned an error or threw an exception.

FieldDescription
failureThe serialized Workflow failure.
retry_stateWhether the Temporal Service retries the Workflow Execution and, if not, why.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
new_execution_run_idThe Run ID of the next run, if a Cron Schedule or a Retry Policy started one.

WorkflowExecutionTimedOut​

The Workflow Execution didn't complete within its Workflow Execution Timeout or Workflow Run Timeout.

FieldDescription
retry_stateWhether the Temporal Service retries the Workflow Execution and, if not, why.
new_execution_run_idThe Run ID of the next run, if a Cron Schedule or a Retry Policy started one.

WorkflowExecutionCancelRequested​

A Client or another Workflow requested cancellation of the Workflow Execution. The Workflow can handle the request and clean up before it completes as canceled.

FieldDescription
causeThe reason given for the cancellation request.
external_initiated_event_idThe Event ID of the RequestCancelExternalWorkflowExecutionInitiated Event, if another Workflow sent the request.
external_workflow_executionThe Workflow ID and Run ID of the Workflow Execution that sent the request, if any.
identityThe identity of the Client or Worker that requested cancellation.

WorkflowExecutionCanceled​

The Workflow finished cleaning up after a cancellation request, and the Workflow Execution closed as canceled.

FieldDescription
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
detailsAdditional information the Workflow reported on cancellation.

WorkflowExecutionSignaled​

The Workflow Execution received a Signal.

FieldDescription
signal_nameThe name of the Signal.
inputThe Signal arguments. The SDK deserializes them and passes them to the Signal handler.
identityThe identity of the Client or Worker that sent the Signal.
headerHeaders the sender set, copied into the Workflow Task.
external_workflow_executionThe Workflow ID and Run ID of the Workflow Execution that sent the Signal, if any.

WorkflowExecutionTerminated​

The Workflow Execution was forcefully terminated, usually through a call to the terminate Workflow Execution API. The Workflow code doesn't run again, and no cleanup happens.

FieldDescription
reasonThe reason the Client gave for termination.
detailsAdditional information provided with the termination.
identityThe identity of the Client that requested termination.

WorkflowExecutionContinuedAsNew​

The Workflow called Continue-As-New. The Temporal Service closes this run and starts a new run with the same Workflow ID in the same transaction.

FieldDescription
new_execution_run_idThe Run ID of the new run.
workflow_typeThe Workflow Type of the new run.
task_queueThe Task Queue of the new run.
inputThe arguments for the new run.
workflow_run_timeoutThe Workflow Run Timeout of the new run.
workflow_task_timeoutThe Workflow Task Timeout of the new run.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
backoff_start_intervalHow long the Temporal Service waits before it schedules the first Workflow Task of the new run.
initiatorWhat started the new run: the Workflow (Continue-As-New), a Retry Policy, or a Cron Schedule.
last_completion_resultThe result of the most recent completed run, which the SDK makes available to the new run.
headerHeaders passed to the new run.
memoThe Memo of the new run.
search_attributesThe Search Attributes of the new run.

WorkflowExecutionOptionsUpdated​

A Client updated the options of the running Workflow Execution, such as a Versioning Override or Priority. The Temporal Service also records this Event when it attaches a request ID or completion callbacks to a running Workflow Execution.

FieldDescription
versioning_overrideThe Versioning Override set by this update. Ignored if empty or if unset_versioning_override is true.
unset_versioning_overrideWhether this update removed the Versioning Override.
attached_request_idA request ID attached to the Workflow Execution. Later requests with the same request ID are deduplicated.
attached_completion_callbacksCompletion callbacks attached to the Workflow Execution.
identityThe identity of the Client that requested the update.
priorityThe full Priority set by this update. Ignored if empty.

WorkflowExecutionPaused​

A Client paused the Workflow Execution. Workflow Execution pause is experimental.

FieldDescription
identityThe identity of the Client that paused the Workflow Execution.
reasonThe reason given for the pause.
request_idThe request ID of the pause request.

WorkflowExecutionUnpaused​

A Client unpaused a paused Workflow Execution. Workflow Execution pause is experimental.

FieldDescription
identityThe identity of the Client that unpaused the Workflow Execution.
reasonThe reason given for unpausing.
request_idThe request ID of the unpause request.

Workflow Task Events​

These Events record each Workflow Task: scheduling it, a Worker picking it up, and how it ended.

WorkflowTaskScheduled​

The Temporal Service scheduled a Workflow Task because the Workflow has new Events to process.

FieldDescription
task_queueThe Task Queue the Workflow Task was sent to. This can be a Sticky Task Queue.
start_to_close_timeoutHow long the Worker has to process the Workflow Task after it picks it up.
attemptThe attempt number of this Workflow Task, starting at 1.

WorkflowTaskStarted​

A Worker picked up the Workflow Task and is processing the new Events.

FieldDescription
scheduled_event_idThe Event ID of the WorkflowTaskScheduled Event for this Workflow Task.
identityThe identity of the Worker that picked up the Workflow Task.
request_idThe identifier of the request that started the Workflow Task.
suggest_continue_as_newWhether the Temporal Service suggests that the Workflow call Continue-As-New soon.
history_size_bytesThe size of the Event History in bytes. The Workflow can use it to decide when to call Continue-As-New.

WorkflowTaskCompleted​

The Worker finished the Workflow Task and sent its Commands to the Temporal Service. The Events for those Commands follow this Event, such as:

FieldDescription
scheduled_event_idThe Event ID of the WorkflowTaskScheduled Event for this Workflow Task.
started_event_idThe Event ID of the WorkflowTaskStarted Event for this Workflow Task.
identityThe identity of the Worker that completed the Workflow Task.
sdk_metadataData the SDK records for its own use, such as the SDK flags it used. The Temporal Service doesn't read it.
versioning_behaviorThe versioning behavior the Worker sent. Unspecified if the Worker isn't versioned.
worker_deployment_nameThe name of the Worker Deployment that completed the Workflow Task.
deployment_versionThe Worker Deployment Version that completed the Workflow Task.

WorkflowTaskTimedOut​

The Workflow Task hit a Workflow Task Timeout. Either no Worker with the Workflow in its cache was available to pick up the Workflow Task, or the Worker took too long to process it.

FieldDescription
scheduled_event_idThe Event ID of the WorkflowTaskScheduled Event for this Workflow Task.
started_event_idThe Event ID of the WorkflowTaskStarted Event for this Workflow Task.
timeout_typeThe type of timeout, such as Start-To-Close or Schedule-To-Start.

WorkflowTaskFailed​

The Workflow Task failed, and the Temporal Service retries it. A common cause is a non-deterministic change to the Workflow code. A Workflow Reset also records this Event. For each cause and how to resolve it, see the Workflow Task errors reference.

FieldDescription
scheduled_event_idThe Event ID of the WorkflowTaskScheduled Event for this Workflow Task.
started_event_idThe Event ID of the WorkflowTaskStarted Event for this Workflow Task.
causeThe Workflow Task failure cause.
failureThe details of the failure.
identityThe identity of the Worker that failed the Workflow Task. Set to history-service when the Temporal Service generated the failure.
base_run_idFor a Reset, the Run ID of the original Workflow Execution.
new_run_idFor a Reset, the Run ID of the new Workflow Execution.
fork_event_versionFor a Reset, the version of the Event where the history branch was forked. Used by Multi-Cluster Replication.

Activity Events​

These Events record each Activity Execution the Workflow schedules.

ActivityTaskScheduled​

The Workflow scheduled an Activity Task. A Worker polling the Task Queue picks it up and runs the Activity.

FieldDescription
activity_idThe Activity ID, assigned by the Worker or set in the Workflow code.
activity_typeThe Activity Type.
task_queueThe Task Queue the Activity Task was sent to.
headerHeaders the Workflow set, such as context propagation data.
inputThe Activity arguments. The SDK deserializes them and passes them to the Activity Function.
schedule_to_close_timeoutThe Schedule-To-Close Timeout: how long the Workflow waits for the Activity, including retries.
schedule_to_start_timeoutThe Schedule-To-Start Timeout: how long the Activity Task can wait in the Task Queue. Not retried.
start_to_close_timeoutThe Start-To-Close Timeout: the maximum time for one attempt after a Worker picks it up. Retried.
heartbeat_timeoutThe Heartbeat Timeout: the maximum time between Activity Heartbeats.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
retry_policyThe Retry Policy of the Activity. Retries stop when the Schedule-To-Close Timeout is reached.
priorityThe Priority metadata of the Activity. Unset values are inherited from the Workflow.

ActivityTaskStarted​

A Worker picked up the Activity Task. The Temporal Service records this Event when it dispatches the Activity Task to the Worker, not when the Worker starts running it.

The Temporal Service doesn't write this Event to the Event History until the Activity Execution closes, for example with ActivityTaskCompleted or ActivityTaskFailed. If the Activity is retried, the Event reflects the last attempt.

FieldDescription
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
identityThe identity of the Worker that picked up the Activity Task.
request_idThe identifier of the request that started the Activity Task.
attemptThe attempt number, starting at 1.
last_failureThe failure of the previous attempt, if the Activity was retried.

ActivityTaskCompleted​

The Activity Execution completed successfully.

FieldDescription
resultThe serialized return value of the Activity Function.
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
started_event_idThe Event ID of the ActivityTaskStarted Event for this Activity.
identityThe identity of the Worker that completed the Activity Task.

ActivityTaskFailed​

The Activity Execution failed, and the Temporal Service won't retry it.

FieldDescription
failureThe serialized Activity failure.
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
started_event_idThe Event ID of the ActivityTaskStarted Event for this Activity.
identityThe identity of the Worker that failed the Activity Task.
retry_stateWhy the Temporal Service won't retry the Activity, such as reaching the maximum attempts.

ActivityTaskTimedOut​

The Activity Execution hit an Activity timeout, and the Temporal Service won't retry it.

FieldDescription
failureA Timeout Failure that holds the timeout type, such as Start-To-Close or Schedule-To-Close. If an earlier attempt failed, that failure is set as its cause.
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
started_event_idThe Event ID of the ActivityTaskStarted Event for this Activity.
retry_stateWhy the Temporal Service won't retry the Activity, such as the timeout being reached.

ActivityTaskCancelRequested​

The Workflow requested cancellation of the Activity. The Activity learns about the request the next time it Heartbeats.

FieldDescription
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.

ActivityTaskCanceled​

The Activity Execution was canceled.

FieldDescription
detailsAdditional information the Activity reported when it confirmed cancellation.
latest_cancel_requested_event_idThe Event ID of the most recent ActivityTaskCancelRequested Event for this Activity.
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
started_event_idThe Event ID of the ActivityTaskStarted Event for this Activity.
identityThe identity of the Worker that canceled the Activity.

ActivityPropertiesModifiedExternally​

Code outside the Workflow changed a property of an Activity that was already scheduled, such as its Retry Policy.

FieldDescription
scheduled_event_idThe Event ID of the ActivityTaskScheduled Event for this Activity.
new_retry_policyThe Retry Policy that replaces the Activity's Retry Policy. The attempt count is kept.

Timer Events​

TimerStarted​

The Workflow started a Timer, such as with a call to sleep.

FieldDescription
timer_idThe Timer ID, assigned by the Worker or set in the Workflow code.
start_to_fire_timeoutHow long until the Timer fires.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.

TimerFired​

The Timer fired.

FieldDescription
timer_idThe Timer ID from the TimerStarted Event.
started_event_idThe Event ID of the TimerStarted Event.

TimerCanceled​

The Workflow canceled the Timer before it fired.

FieldDescription
timer_idThe Timer ID from the TimerStarted Event.
started_event_idThe Event ID of the TimerStarted Event.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
identityThe identity of the Worker that canceled the Timer.

Child Workflow Events​

These Events appear in the parent Workflow's Event History. The Child Workflow Execution has its own Event History, which starts with WorkflowExecutionStarted.

StartChildWorkflowExecutionInitiated​

The parent Workflow requested that the Temporal Service start a Child Workflow Execution.

FieldDescription
namespaceThe Namespace of the Child Workflow.
workflow_idThe Workflow ID of the Child Workflow.
workflow_typeThe Workflow Type of the Child Workflow.
task_queueThe Task Queue of the Child Workflow.
inputThe arguments for the Child Workflow.
parent_close_policyThe Parent Close Policy of the Child Workflow.
workflow_id_reuse_policyThe Workflow ID Reuse Policy of the Child Workflow.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.

StartChildWorkflowExecutionFailed​

The Temporal Service couldn't start the Child Workflow Execution, usually because a Workflow Execution with the same Workflow ID already exists.

FieldDescription
namespaceThe Namespace of the Child Workflow.
workflow_idThe Workflow ID of the Child Workflow.
workflow_typeThe Workflow Type of the Child Workflow.
causeWhy the start failed, such as the Workflow ID already being in use or the Namespace not being found.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.

ChildWorkflowExecutionStarted​

The Child Workflow Execution started. The Child Workflow's own Event History records a WorkflowExecutionStarted Event.

FieldDescription
namespaceThe Namespace of the Child Workflow.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
workflow_executionThe Workflow ID and Run ID of the Child Workflow Execution.
workflow_typeThe Workflow Type of the Child Workflow.
headerHeaders passed to the Child Workflow.

ChildWorkflowExecutionCompleted​

The Child Workflow Execution completed successfully. The Child Workflow's own Event History records a WorkflowExecutionCompleted Event.

FieldDescription
resultThe serialized result of the Child Workflow.
namespaceThe Namespace of the Child Workflow.
workflow_executionThe Workflow ID and Run ID of the Child Workflow Execution.
workflow_typeThe Workflow Type of the Child Workflow.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
started_event_idThe Event ID of the ChildWorkflowExecutionStarted Event.

ChildWorkflowExecutionFailed​

The Child Workflow Execution failed. The Child Workflow's own Event History records a WorkflowExecutionFailed Event.

FieldDescription
failureThe serialized Child Workflow failure.
namespaceThe Namespace of the Child Workflow.
workflow_executionThe Workflow ID and Run ID of the Child Workflow Execution.
workflow_typeThe Workflow Type of the Child Workflow.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
started_event_idThe Event ID of the ChildWorkflowExecutionStarted Event.
retry_stateWhether the Temporal Service retries the Child Workflow Execution and, if not, why.

ChildWorkflowExecutionCanceled​

The Child Workflow Execution was canceled. The Child Workflow's own Event History records a WorkflowExecutionCanceled Event.

FieldDescription
detailsAdditional information the Child Workflow reported on cancellation.
namespaceThe Namespace of the Child Workflow.
workflow_executionThe Workflow ID and Run ID of the Child Workflow Execution.
workflow_typeThe Workflow Type of the Child Workflow.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
started_event_idThe Event ID of the ChildWorkflowExecutionStarted Event.

ChildWorkflowExecutionTimedOut​

The Child Workflow Execution timed out. The Child Workflow's own Event History records a WorkflowExecutionTimedOut Event.

FieldDescription
namespaceThe Namespace of the Child Workflow.
workflow_executionThe Workflow ID and Run ID of the Child Workflow Execution.
workflow_typeThe Workflow Type of the Child Workflow.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
started_event_idThe Event ID of the ChildWorkflowExecutionStarted Event.
retry_stateWhether the Temporal Service retries the Child Workflow Execution and, if not, why.

ChildWorkflowExecutionTerminated​

The Child Workflow Execution was terminated. The Child Workflow's own Event History records a WorkflowExecutionTerminated Event.

FieldDescription
namespaceThe Namespace of the Child Workflow.
workflow_executionThe Workflow ID and Run ID of the Child Workflow Execution.
workflow_typeThe Workflow Type of the Child Workflow.
initiated_event_idThe Event ID of the StartChildWorkflowExecutionInitiated Event.
started_event_idThe Event ID of the ChildWorkflowExecutionStarted Event.

External Workflow Events​

These Events record requests the Workflow sends to other Workflow Executions.

RequestCancelExternalWorkflowExecutionInitiated​

The Workflow requested that the Temporal Service cancel another Workflow Execution.

FieldDescription
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
namespaceThe Namespace of the Workflow Execution to cancel.
workflow_executionThe Workflow ID and Run ID of the Workflow Execution to cancel.
child_workflow_onlyWhether the target must be a Child Workflow of the Workflow that sent the request.
reasonThe reason given for the cancellation request.

RequestCancelExternalWorkflowExecutionFailed​

The Temporal Service couldn't deliver the cancellation request, usually because it couldn't find the target Workflow Execution.

FieldDescription
causeWhy the request failed, such as the target Workflow Execution or Namespace not being found.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
namespaceThe Namespace of the target Workflow Execution.
workflow_executionThe Workflow ID and Run ID of the target Workflow Execution.
initiated_event_idThe Event ID of the RequestCancelExternalWorkflowExecutionInitiated Event.

ExternalWorkflowExecutionCancelRequested​

The Temporal Service delivered the cancellation request to the target Workflow Execution. The target's Event History records a WorkflowExecutionCancelRequested Event.

FieldDescription
initiated_event_idThe Event ID of the RequestCancelExternalWorkflowExecutionInitiated Event.
namespaceThe Namespace of the target Workflow Execution.
workflow_executionThe Workflow ID and Run ID of the target Workflow Execution.

SignalExternalWorkflowExecutionInitiated​

The Workflow requested that the Temporal Service Signal another Workflow Execution.

FieldDescription
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
namespaceThe Namespace of the Workflow Execution to Signal.
workflow_executionThe Workflow ID and Run ID of the Workflow Execution to Signal.
signal_nameThe name of the Signal.
inputThe Signal arguments.
child_workflow_onlyWhether the target must be a Child Workflow of the Workflow that sent the Signal.
headerHeaders passed to the target Workflow Execution with the Signal.

SignalExternalWorkflowExecutionFailed​

The Temporal Service couldn't deliver the Signal, usually because it couldn't find the target Workflow Execution.

FieldDescription
causeWhy the Signal failed, such as the target Workflow Execution not being found.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
namespaceThe Namespace of the target Workflow Execution.
workflow_executionThe Workflow ID and Run ID of the target Workflow Execution.
initiated_event_idThe Event ID of the SignalExternalWorkflowExecutionInitiated Event.

ExternalWorkflowExecutionSignaled​

The Temporal Service delivered the Signal to the target Workflow Execution. The target's Event History records a WorkflowExecutionSignaled Event.

FieldDescription
initiated_event_idThe Event ID of the SignalExternalWorkflowExecutionInitiated Event.
namespaceThe Namespace of the target Workflow Execution.
workflow_executionThe Workflow ID and Run ID of the target Workflow Execution.

Workflow Update Events​

These Events record Workflow Updates. A rejected Update doesn't produce an Event.

  • Command: ProtocolMessage, for WorkflowExecutionUpdateAccepted and WorkflowExecutionUpdateCompleted

WorkflowExecutionUpdateAdmitted​

The Temporal Service reapplied an Update during a Reset or replication. Most Updates don't produce this Event.

FieldDescription
requestThe Update request.
originWhy the Temporal Service recorded this Event.

WorkflowExecutionUpdateAccepted​

The Workflow accepted an Update, which means the Update passed its validator, if one is defined. Sending an Update doesn't produce an Event, so this Event stores the original request.

FieldDescription
protocol_instance_idThe identifier of the Update protocol instance that produced this Event.
accepted_request_message_idThe identifier of the request message. The Worker uses it to recreate the message on replay.
accepted_request_sequencing_event_idThe Event ID after which the Update runs.
accepted_requestThe Update request: its input and metadata.

WorkflowExecutionUpdateCompleted​

The Workflow ran an Update to completion.

FieldDescription
metaThe Update metadata from the original request, including the Update ID.
accepted_event_idThe Event ID of the WorkflowExecutionUpdateAccepted Event.
outcomeThe result of the Update handler: a success value or a failure.

Nexus Operation Events​

These Events appear in the caller Workflow's Event History.

NexusOperationScheduled​

The caller Workflow scheduled a Nexus Operation. The caller's Nexus Machinery then tries to start it.

FieldDescription
endpointThe Nexus Endpoint name. It must exist in the Endpoint registry.
serviceThe Nexus Service name.
operationThe Nexus Operation name.
inputThe Operation input. A handler backed by Temporal receives the original Payload.
schedule_to_close_timeoutHow long the caller waits for the Operation to complete. The Temporal Service retries calls within this time.
nexus_headerHeaders sent with the Nexus request. These aren't Temporal headers; they can go to Operations outside Temporal.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
request_idA unique identifier the Temporal Service generated for the Operation. It's sent with every start request as an idempotency key.
endpoint_idThe Endpoint ID when this Event was recorded. The Temporal Service uses it if the Endpoint is renamed later.

NexusOperationStarted​

The Nexus handler started an asynchronous Nexus Operation, such as one backed by a Workflow. Synchronous Operations don't produce this Event. They move directly to NexusOperationCompleted or another final Event, such as NexusOperationFailed.

FieldDescription
scheduled_event_idThe Event ID of the NexusOperationScheduled Event for this Operation.
operation_tokenThe Operation token the handler returned in its start response. The caller uses it to cancel the Operation.
request_idThe request ID allocated when the Operation was scheduled.

NexusOperationCompleted​

The Nexus Operation completed successfully. Both synchronous and asynchronous Operations record their result with this Event.

FieldDescription
scheduled_event_idThe Event ID of the NexusOperationScheduled Event. It identifies the Operation.
resultThe serialized result from the handler, delivered in a synchronous response or through a completion callback.
request_idThe request ID allocated when the Operation was scheduled.

NexusOperationFailed​

The Nexus Operation failed. Both synchronous and asynchronous Operations record a failure with this Event. For example, a handler responds synchronously with a non-retryable error, or the Workflow behind an asynchronous Operation fails with WorkflowExecutionFailed.

FieldDescription
scheduled_event_idThe Event ID of the NexusOperationScheduled Event. It identifies the Operation.
failureThe failure details: a NexusOperationFailureInfo that wraps an ApplicationFailureInfo.
request_idThe request ID allocated when the Operation was scheduled.

NexusOperationTimedOut​

The Nexus Operation didn't complete within its Schedule-To-Close Timeout.

FieldDescription
scheduled_event_idThe Event ID of the NexusOperationScheduled Event. It identifies the Operation.
failureThe failure details: a NexusOperationFailureInfo that wraps a CanceledFailureInfo.
request_idThe request ID allocated when the Operation was scheduled.

NexusOperationCancelRequested​

The caller Workflow requested cancellation of the Nexus Operation.

FieldDescription
scheduled_event_idThe Event ID of the NexusOperationScheduled Event for this Operation.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.

NexusOperationCancelRequestCompleted​

The Temporal Service delivered the cancellation request to the Nexus handler.

FieldDescription
requested_event_idThe Event ID of the NexusOperationCancelRequested Event.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
scheduled_event_idThe Event ID of the NexusOperationScheduled Event for this Operation.

NexusOperationCancelRequestFailed​

The cancellation request to the Nexus handler resulted in an error.

FieldDescription
requested_event_idThe Event ID of the NexusOperationCancelRequested Event.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
failureThe failure details: a NexusOperationFailureInfo that wraps a CanceledFailureInfo.
scheduled_event_idThe Event ID of the NexusOperationScheduled Event for this Operation.

NexusOperationCanceled​

The Nexus Operation completed as canceled. This can happen with or without a cancellation request from the caller Workflow.

FieldDescription
scheduled_event_idThe Event ID of the NexusOperationScheduled Event. It identifies the Operation.
failureThe cancellation details.
request_idThe request ID allocated when the Operation was scheduled.

Workflow metadata and SDK Events​

MarkerRecorded​

The SDK recorded data it needs to replay the Workflow deterministically, such as the result of a Side Effect, a Local Activity, or a version check. The Temporal Service stores the Marker without interpreting it.

FieldDescription
marker_nameThe kind of Marker, such as Local Activity or Side Effect. Each SDK defines its own names.
detailsThe serialized data recorded in the Marker.
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
headerHeaders recorded with the Marker.
failureThe failure, if the recorded operation failed, such as a failed Local Activity.

UpsertWorkflowSearchAttributes​

The Workflow added or updated its Search Attributes. The Temporal Service updates the Visibility store with the new values.

FieldDescription
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
search_attributesThe Search Attributes the Workflow added or updated.

WorkflowPropertiesModified​

The Workflow added or updated its Memo.

FieldDescription
workflow_task_completed_event_idThe Event ID of the WorkflowTaskCompleted Event that sent the Command.
upserted_memoThe Memo values to merge with the existing Memo. A key with an empty Payload deletes that key.