Module: Temporalio::Client::ActivityOptions
- Defined in:
- lib/temporalio/client/activity_options.rb
Overview
The activity options that Temporalio::Client::ActivityHandle#update_options can change.
Updates are created from the keys below, via Key#value_set to set an option or Key#value_unset to clear it. An option with no update is left untouched.
WARNING: Standalone Activities are experimental.
Defined Under Namespace
Constant Summary collapse
- TASK_QUEUE =
Returns New task queue.
Key.new('task_queue.name') do |proto, value| proto.task_queue = Api::TaskQueue::V1::TaskQueue.new(name: value.to_s) end
- SCHEDULE_TO_CLOSE_TIMEOUT =
Returns New schedule-to-close timeout in seconds.
Key.new('schedule_to_close_timeout') do |proto, value| proto.schedule_to_close_timeout = Internal::ProtoUtils.seconds_to_duration(value) end
- SCHEDULE_TO_START_TIMEOUT =
Returns New schedule-to-start timeout in seconds.
Key.new('schedule_to_start_timeout') do |proto, value| proto.schedule_to_start_timeout = Internal::ProtoUtils.seconds_to_duration(value) end
- START_TO_CLOSE_TIMEOUT =
Returns New start-to-close timeout in seconds.
Key.new('start_to_close_timeout') do |proto, value| proto.start_to_close_timeout = Internal::ProtoUtils.seconds_to_duration(value) end
- HEARTBEAT_TIMEOUT =
Returns New heartbeat timeout in seconds.
Key.new('heartbeat_timeout') do |proto, value| proto.heartbeat_timeout = Internal::ProtoUtils.seconds_to_duration(value) end
- START_DELAY =
Returns New start delay in seconds.
Key.new('start_delay') do |proto, value| proto.start_delay = Internal::ProtoUtils.seconds_to_duration(value) end
- RETRY_POLICY =
Returns New retry policy.
Key.new('retry_policy') do |proto, value| proto.retry_policy = value._to_proto end
- PRIORITY =
Returns New priority.
Key.new('priority') do |proto, value| proto.priority = value._to_proto end