Module: Temporalio::Workflow::ActivityCancellationType

Defined in:
lib/temporalio/workflow/activity_cancellation_type.rb

Overview

Cancellation types for activities.

Constant Summary collapse

TRY_CANCEL =

Initiate a cancellation request and immediately report cancellation to the workflow.

Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::TRY_CANCEL
WAIT_CANCELLATION_COMPLETED =

Wait for activity cancellation completion. Note that activity must heartbeat to receive a cancellation notification. This can block the cancellation for a long time if activity doesn’t heartbeat or chooses to ignore the cancellation request.

Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::WAIT_CANCELLATION_COMPLETED
ABANDON =

Do not request cancellation of the activity and immediately report cancellation to the workflow.

Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::ABANDON