temporalio 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +37 -67
- data/Gemfile +3 -0
- data/README.md +25 -2
- data/Rakefile +20 -1
- data/ext/Cargo.toml +3 -3
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/batch/v1/message.rb +4 -1
- data/lib/temporalio/api/command/v1/message.rb +2 -1
- data/lib/temporalio/api/common/v1/message.rb +5 -1
- data/lib/temporalio/api/enums/v1/activity.rb +1 -1
- data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +2 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/enums/v1/time_skipping.rb +21 -0
- data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
- data/lib/temporalio/api/history/v1/message.rb +1 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
- data/lib/temporalio/api/worker/v1/message.rb +13 -1
- data/lib/temporalio/api/workflow/v1/message.rb +1 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +4 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
- data/lib/temporalio/client/activity_execution.rb +82 -1
- data/lib/temporalio/client/activity_execution_options.rb +39 -0
- data/lib/temporalio/client/activity_execution_status.rb +1 -0
- data/lib/temporalio/client/activity_handle.rb +122 -1
- data/lib/temporalio/client/activity_options.rb +113 -0
- data/lib/temporalio/client/connection/workflow_service.rb +15 -0
- data/lib/temporalio/client/connection.rb +33 -3
- data/lib/temporalio/client/interceptor.rb +65 -0
- data/lib/temporalio/client/schedule.rb +4 -5
- data/lib/temporalio/client/workflow_execution.rb +2 -2
- data/lib/temporalio/client/workflow_handle.rb +2 -1
- data/lib/temporalio/client.rb +4 -6
- data/lib/temporalio/converters/data_converter.rb +1 -0
- data/lib/temporalio/converters/failure_converter.rb +7 -4
- data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
- data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +3 -1
- data/lib/temporalio/internal/bridge/runtime.rb +4 -1
- data/lib/temporalio/internal/bridge/worker.rb +3 -1
- data/lib/temporalio/internal/client/implementation.rb +54 -2
- data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
- data/lib/temporalio/runtime.rb +25 -7
- data/lib/temporalio/scoped_logger.rb +18 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +11 -1
- data/lib/temporalio/worker/workflow_replayer.rb +2 -0
- data/lib/temporalio/worker.rb +24 -4
- data/lib/temporalio/workflow.rb +8 -9
- data/rbi/temporalio/api/activity/v1/message.rbi +100 -14
- data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
- data/rbi/temporalio/api/command/v1/message.rbi +22 -2
- data/rbi/temporalio/api/common/v1/message.rbi +548 -74
- data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +4 -0
- data/rbi/temporalio/api/enums/v1/time_skipping.rbi +22 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
- data/rbi/temporalio/api/history/v1/message.rbi +27 -7
- data/rbi/temporalio/api/namespace/v1/message.rbi +95 -4
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
- data/rbi/temporalio/api/worker/v1/message.rbi +742 -2
- data/rbi/temporalio/api/workflow/v1/message.rbi +22 -2
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +701 -117
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +8 -0
- data/rbi/temporalio/client/activity_execution.rbi +27 -0
- data/rbi/temporalio/client/activity_execution_options.rbi +58 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +1 -0
- data/rbi/temporalio/client/activity_handle.rbi +43 -2
- data/rbi/temporalio/client/activity_options.rbi +49 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +3 -0
- data/rbi/temporalio/client/connection.rbi +2 -0
- data/rbi/temporalio/client/interceptor.rbi +107 -0
- data/rbi/temporalio/converters/failure_converter.rbi +7 -2
- data/rbi/temporalio/internal/bridge/api/common/common.rbi +115 -0
- data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +42 -2
- data/rbi/temporalio/internal/bridge/runtime.rbi +24 -4
- data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
- data/rbi/temporalio/runtime.rbi +13 -4
- data/rbi/temporalio/scoped_logger.rbi +1 -1
- data/rbi/temporalio/worker.rbi +9 -2
- data/rbi/temporalio/workflow/future.rbi +1 -1
- data/sig/temporalio/api/activity/v1/message.rbs +48 -2
- data/sig/temporalio/api/batch/v1/message.rbs +86 -0
- data/sig/temporalio/api/command/v1/message.rbs +10 -0
- data/sig/temporalio/api/common/v1/message.rbs +240 -39
- data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
- data/sig/temporalio/api/enums/v1/common.rbs +23 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +18 -6
- data/sig/temporalio/api/enums/v1/time_skipping.rbs +58 -0
- data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
- data/sig/temporalio/api/history/v1/message.rbs +13 -3
- data/sig/temporalio/api/namespace/v1/message.rbs +43 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
- data/sig/temporalio/api/worker/v1/message.rbs +410 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +10 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +311 -40
- data/sig/temporalio/client/activity_execution.rbs +10 -0
- data/sig/temporalio/client/activity_execution_options.rbs +27 -0
- data/sig/temporalio/client/activity_execution_status.rbs +1 -0
- data/sig/temporalio/client/activity_handle.rbs +23 -1
- data/sig/temporalio/client/activity_options.rbs +30 -0
- data/sig/temporalio/client/connection/workflow_service.rbs +4 -0
- data/sig/temporalio/client/connection.rbs +14 -1
- data/sig/temporalio/client/interceptor.rbs +62 -0
- data/sig/temporalio/converters/failure_converter.rbs +4 -1
- data/sig/temporalio/internal/bridge/api/common/common.rbs +50 -0
- data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +20 -0
- data/sig/temporalio/internal/bridge/client.rbs +5 -1
- data/sig/temporalio/internal/bridge/runtime.rbs +9 -3
- data/sig/temporalio/internal/bridge/worker.rbs +5 -1
- data/sig/temporalio/internal/client/implementation.rbs +7 -0
- data/sig/temporalio/runtime.rbs +14 -3
- data/sig/temporalio/scoped_logger.rbs +1 -1
- data/sig/temporalio/worker.rbs +8 -2
- metadata +10 -1
data/rbi/temporalio/runtime.rbi
CHANGED
|
@@ -6,8 +6,8 @@ class Temporalio::Runtime
|
|
|
6
6
|
sig { returns(Temporalio::Metric::Meter) }
|
|
7
7
|
attr_reader :metric_meter
|
|
8
8
|
|
|
9
|
-
sig { params(telemetry: Temporalio::Runtime::TelemetryOptions, worker_heartbeat_interval: T.nilable(Float)).void }
|
|
10
|
-
def initialize(telemetry: T.unsafe(nil), worker_heartbeat_interval: T.unsafe(nil)); end
|
|
9
|
+
sig { params(telemetry: Temporalio::Runtime::TelemetryOptions, worker_heartbeat_interval: T.nilable(Float), disable_environment_info: T::Boolean).void }
|
|
10
|
+
def initialize(telemetry: T.unsafe(nil), worker_heartbeat_interval: T.unsafe(nil), disable_environment_info: T.unsafe(nil)); end
|
|
11
11
|
|
|
12
12
|
class << self
|
|
13
13
|
extend T::Sig
|
|
@@ -39,8 +39,17 @@ class Temporalio::Runtime::LoggingOptions < ::Data
|
|
|
39
39
|
sig { returns(T.any(Temporalio::Runtime::LoggingFilterOptions, String)) }
|
|
40
40
|
def log_filter; end
|
|
41
41
|
|
|
42
|
-
sig {
|
|
43
|
-
def
|
|
42
|
+
sig { returns(T.nilable(Symbol)) }
|
|
43
|
+
def log_format; end
|
|
44
|
+
|
|
45
|
+
sig { params(log_filter: T.any(Temporalio::Runtime::LoggingFilterOptions, String), log_format: T.nilable(Symbol)).void }
|
|
46
|
+
def initialize(log_filter: T.unsafe(nil), log_format: T.unsafe(nil)); end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
module Temporalio::Runtime::ConsoleLogFormat
|
|
50
|
+
COMPACT = T.let(T.unsafe(nil), Symbol)
|
|
51
|
+
JSON = T.let(T.unsafe(nil), Symbol)
|
|
52
|
+
PRETTY = T.let(T.unsafe(nil), Symbol)
|
|
44
53
|
end
|
|
45
54
|
|
|
46
55
|
class Temporalio::Runtime::LoggingFilterOptions < ::Data
|
data/rbi/temporalio/worker.rbi
CHANGED
|
@@ -29,6 +29,7 @@ class Temporalio::Worker
|
|
|
29
29
|
default_heartbeat_throttle_interval: Numeric,
|
|
30
30
|
max_activities_per_second: T.nilable(Numeric),
|
|
31
31
|
max_task_queue_activities_per_second: T.nilable(Numeric),
|
|
32
|
+
max_eager_activity_reservations_per_workflow_task: Integer,
|
|
32
33
|
graceful_shutdown_period: Numeric,
|
|
33
34
|
disable_eager_activity_execution: T::Boolean,
|
|
34
35
|
illegal_workflow_calls: T::Hash[String, T.any(Symbol, T::Array[T.any(Symbol, Temporalio::Worker::IllegalWorkflowCallValidator)], Temporalio::Worker::IllegalWorkflowCallValidator)],
|
|
@@ -39,7 +40,8 @@ class Temporalio::Worker
|
|
|
39
40
|
patch_activation_callback: T.nilable(T.proc.params(input: Temporalio::Worker::PatchActivationInput).returns(T::Boolean)),
|
|
40
41
|
workflow_task_poller_behavior: Temporalio::Worker::PollerBehavior,
|
|
41
42
|
activity_task_poller_behavior: Temporalio::Worker::PollerBehavior,
|
|
42
|
-
debug_mode: T::Boolean
|
|
43
|
+
debug_mode: T::Boolean,
|
|
44
|
+
disable_payload_error_limit: T::Boolean
|
|
43
45
|
).void
|
|
44
46
|
end
|
|
45
47
|
def initialize(
|
|
@@ -64,6 +66,7 @@ class Temporalio::Worker
|
|
|
64
66
|
default_heartbeat_throttle_interval: T.unsafe(nil),
|
|
65
67
|
max_activities_per_second: T.unsafe(nil),
|
|
66
68
|
max_task_queue_activities_per_second: T.unsafe(nil),
|
|
69
|
+
max_eager_activity_reservations_per_workflow_task: T.unsafe(nil),
|
|
67
70
|
graceful_shutdown_period: T.unsafe(nil),
|
|
68
71
|
disable_eager_activity_execution: T.unsafe(nil),
|
|
69
72
|
illegal_workflow_calls: T.unsafe(nil),
|
|
@@ -74,7 +77,8 @@ class Temporalio::Worker
|
|
|
74
77
|
patch_activation_callback: T.unsafe(nil),
|
|
75
78
|
workflow_task_poller_behavior: T.unsafe(nil),
|
|
76
79
|
activity_task_poller_behavior: T.unsafe(nil),
|
|
77
|
-
debug_mode: T.unsafe(nil)
|
|
80
|
+
debug_mode: T.unsafe(nil),
|
|
81
|
+
disable_payload_error_limit: T.unsafe(nil)
|
|
78
82
|
); end
|
|
79
83
|
|
|
80
84
|
sig { returns(String) }
|
|
@@ -220,6 +224,9 @@ class Temporalio::Worker::Options < ::Data
|
|
|
220
224
|
sig { returns(T.nilable(Numeric)) }
|
|
221
225
|
def max_task_queue_activities_per_second; end
|
|
222
226
|
|
|
227
|
+
sig { returns(Integer) }
|
|
228
|
+
def max_eager_activity_reservations_per_workflow_task; end
|
|
229
|
+
|
|
223
230
|
sig { returns(Numeric) }
|
|
224
231
|
def graceful_shutdown_period; end
|
|
225
232
|
|
|
@@ -22,6 +22,13 @@ module Temporalio
|
|
|
22
22
|
def has_failure?: () -> bool
|
|
23
23
|
def clear_failure: () -> void
|
|
24
24
|
|
|
25
|
+
# The retry state associated with an unsuccessful activity execution.
|
|
26
|
+
# This field is only meaningful when `failure` is set.
|
|
27
|
+
attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer
|
|
28
|
+
attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float
|
|
29
|
+
attr_reader retry_state_const(): ::Integer
|
|
30
|
+
def clear_retry_state: () -> void
|
|
31
|
+
|
|
25
32
|
attr_reader value(): (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Failure::V1::Failure)?
|
|
26
33
|
def has_value?: () -> bool
|
|
27
34
|
def clear_value: () -> void
|
|
@@ -31,6 +38,8 @@ module Temporalio
|
|
|
31
38
|
"result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
|
|
32
39
|
failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
33
40
|
"failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
41
|
+
retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?,
|
|
42
|
+
"retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?,
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -38,10 +47,12 @@ module Temporalio
|
|
|
38
47
|
def []:
|
|
39
48
|
("result" name) -> ::Temporalio::Api::Common::V1::Payloads?
|
|
40
49
|
| ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
50
|
+
| ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer)
|
|
41
51
|
|
|
42
52
|
def []=:
|
|
43
53
|
("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
|
|
44
54
|
| ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
55
|
+
| ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void
|
|
45
56
|
end
|
|
46
57
|
|
|
47
58
|
class ActivityOptions < ::Google::Protobuf::AbstractMessage
|
|
@@ -97,6 +108,14 @@ module Temporalio
|
|
|
97
108
|
def has_priority?: () -> bool
|
|
98
109
|
def clear_priority: () -> void
|
|
99
110
|
|
|
111
|
+
# Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
|
|
112
|
+
# When updated, the time is added to the original `schedule_time`, not to the current time.
|
|
113
|
+
# If the resulting time is in the past, the task is made available for dispatch immediately.
|
|
114
|
+
attr_reader start_delay(): ::Google::Protobuf::Duration?
|
|
115
|
+
attr_writer start_delay(): (::Google::Protobuf::Duration | ::int)?
|
|
116
|
+
def has_start_delay?: () -> bool
|
|
117
|
+
def clear_start_delay: () -> void
|
|
118
|
+
|
|
100
119
|
type init_map = {
|
|
101
120
|
task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
|
|
102
121
|
"task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
|
|
@@ -112,6 +131,8 @@ module Temporalio
|
|
|
112
131
|
"retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?,
|
|
113
132
|
priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
|
|
114
133
|
"priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
|
|
134
|
+
start_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
135
|
+
"start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
115
136
|
}
|
|
116
137
|
|
|
117
138
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -124,6 +145,7 @@ module Temporalio
|
|
|
124
145
|
| ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration?
|
|
125
146
|
| ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy?
|
|
126
147
|
| ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
|
|
148
|
+
| ("start_delay" name) -> ::Google::Protobuf::Duration?
|
|
127
149
|
|
|
128
150
|
def []=:
|
|
129
151
|
("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void
|
|
@@ -133,6 +155,7 @@ module Temporalio
|
|
|
133
155
|
| ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
134
156
|
| ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void
|
|
135
157
|
| ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
|
|
158
|
+
| ("start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
136
159
|
end
|
|
137
160
|
|
|
138
161
|
# Information about a standalone activity.
|
|
@@ -242,7 +265,8 @@ module Temporalio
|
|
|
242
265
|
def has_schedule_time?: () -> bool
|
|
243
266
|
def clear_schedule_time: () -> void
|
|
244
267
|
|
|
245
|
-
#
|
|
268
|
+
# The time at which the activity's Schedule-to-Close timeout expires.
|
|
269
|
+
# Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
|
|
246
270
|
attr_reader expiration_time(): ::Google::Protobuf::Timestamp?
|
|
247
271
|
attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
248
272
|
def has_expiration_time?: () -> bool
|
|
@@ -348,12 +372,19 @@ module Temporalio
|
|
|
348
372
|
attr_writer sdk_version(): ::String | ::Symbol
|
|
349
373
|
def clear_sdk_version: () -> void
|
|
350
374
|
|
|
351
|
-
# Time to wait before
|
|
375
|
+
# Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
|
|
352
376
|
attr_reader start_delay(): ::Google::Protobuf::Duration?
|
|
353
377
|
attr_writer start_delay(): (::Google::Protobuf::Duration | ::int)?
|
|
354
378
|
def has_start_delay?: () -> bool
|
|
355
379
|
def clear_start_delay: () -> void
|
|
356
380
|
|
|
381
|
+
# The time at which the first activity task is made available for dispatch, computed as
|
|
382
|
+
# `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
|
|
383
|
+
attr_reader execution_time(): ::Google::Protobuf::Timestamp?
|
|
384
|
+
attr_writer execution_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
385
|
+
def has_execution_time?: () -> bool
|
|
386
|
+
def clear_execution_time: () -> void
|
|
387
|
+
|
|
357
388
|
type init_map = {
|
|
358
389
|
activity_id: (::String | ::Symbol)?,
|
|
359
390
|
"activity_id" => (::String | ::Symbol)?,
|
|
@@ -429,6 +460,8 @@ module Temporalio
|
|
|
429
460
|
"sdk_version" => (::String | ::Symbol)?,
|
|
430
461
|
start_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
431
462
|
"start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
463
|
+
execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
464
|
+
"execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
432
465
|
}
|
|
433
466
|
|
|
434
467
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -471,6 +504,7 @@ module Temporalio
|
|
|
471
504
|
| ("sdk_name" name) -> ::String
|
|
472
505
|
| ("sdk_version" name) -> ::String
|
|
473
506
|
| ("start_delay" name) -> ::Google::Protobuf::Duration?
|
|
507
|
+
| ("execution_time" name) -> ::Google::Protobuf::Timestamp?
|
|
474
508
|
|
|
475
509
|
def []=:
|
|
476
510
|
("activity_id" name, (::String | ::Symbol) value) -> void
|
|
@@ -510,6 +544,7 @@ module Temporalio
|
|
|
510
544
|
| ("sdk_name" name, (::String | ::Symbol) value) -> void
|
|
511
545
|
| ("sdk_version" name, (::String | ::Symbol) value) -> void
|
|
512
546
|
| ("start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
547
|
+
| ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
513
548
|
end
|
|
514
549
|
|
|
515
550
|
# Limited activity information returned in the list response.
|
|
@@ -578,6 +613,13 @@ module Temporalio
|
|
|
578
613
|
def has_execution_duration?: () -> bool
|
|
579
614
|
def clear_execution_duration: () -> void
|
|
580
615
|
|
|
616
|
+
# The time at which the first activity task is made available for dispatch, computed as
|
|
617
|
+
# `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
|
|
618
|
+
attr_reader execution_time(): ::Google::Protobuf::Timestamp?
|
|
619
|
+
attr_writer execution_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
620
|
+
def has_execution_time?: () -> bool
|
|
621
|
+
def clear_execution_time: () -> void
|
|
622
|
+
|
|
581
623
|
type init_map = {
|
|
582
624
|
activity_id: (::String | ::Symbol)?,
|
|
583
625
|
"activity_id" => (::String | ::Symbol)?,
|
|
@@ -601,6 +643,8 @@ module Temporalio
|
|
|
601
643
|
"state_size_bytes" => (::Integer | ::Float)?,
|
|
602
644
|
execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
603
645
|
"execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
646
|
+
execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
647
|
+
"execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
604
648
|
}
|
|
605
649
|
|
|
606
650
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -617,6 +661,7 @@ module Temporalio
|
|
|
617
661
|
| ("state_transition_count" name) -> ::Integer
|
|
618
662
|
| ("state_size_bytes" name) -> ::Integer
|
|
619
663
|
| ("execution_duration" name) -> ::Google::Protobuf::Duration?
|
|
664
|
+
| ("execution_time" name) -> ::Google::Protobuf::Timestamp?
|
|
620
665
|
|
|
621
666
|
def []=:
|
|
622
667
|
("activity_id" name, (::String | ::Symbol) value) -> void
|
|
@@ -630,6 +675,7 @@ module Temporalio
|
|
|
630
675
|
| ("state_transition_count" name, (::Integer | ::Float) value) -> void
|
|
631
676
|
| ("state_size_bytes" name, (::Integer | ::Float) value) -> void
|
|
632
677
|
| ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
678
|
+
| ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
633
679
|
end
|
|
634
680
|
|
|
635
681
|
# CallbackInfo contains the state of an attached activity callback.
|
|
@@ -34,6 +34,12 @@ module Temporalio
|
|
|
34
34
|
def has_close_time?: () -> bool
|
|
35
35
|
def clear_close_time: () -> void
|
|
36
36
|
|
|
37
|
+
# Operation type
|
|
38
|
+
attr_reader operation_type(): ::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Integer
|
|
39
|
+
attr_writer operation_type(): ::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float
|
|
40
|
+
attr_reader operation_type_const(): ::Integer
|
|
41
|
+
def clear_operation_type: () -> void
|
|
42
|
+
|
|
37
43
|
type init_map = {
|
|
38
44
|
job_id: (::String | ::Symbol)?,
|
|
39
45
|
"job_id" => (::String | ::Symbol)?,
|
|
@@ -43,6 +49,8 @@ module Temporalio
|
|
|
43
49
|
"start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
44
50
|
close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
45
51
|
"close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
52
|
+
operation_type: (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?,
|
|
53
|
+
"operation_type" => (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?,
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -52,12 +60,14 @@ module Temporalio
|
|
|
52
60
|
| ("state" name) -> (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer)
|
|
53
61
|
| ("start_time" name) -> ::Google::Protobuf::Timestamp?
|
|
54
62
|
| ("close_time" name) -> ::Google::Protobuf::Timestamp?
|
|
63
|
+
| ("operation_type" name) -> (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Integer)
|
|
55
64
|
|
|
56
65
|
def []=:
|
|
57
66
|
("job_id" name, (::String | ::Symbol) value) -> void
|
|
58
67
|
| ("state" name, (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float) value) -> void
|
|
59
68
|
| ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
60
69
|
| ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
70
|
+
| ("operation_type" name, (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float) value) -> void
|
|
61
71
|
end
|
|
62
72
|
|
|
63
73
|
# BatchOperationTermination sends terminate requests to batch workflows.
|
|
@@ -93,6 +103,39 @@ module Temporalio
|
|
|
93
103
|
| ("identity" name, (::String | ::Symbol) value) -> void
|
|
94
104
|
end
|
|
95
105
|
|
|
106
|
+
# BatchOperationTerminateActivities sends terminate requests to a batch of activities.
|
|
107
|
+
# Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateActivityExecutionRequest.
|
|
108
|
+
class BatchOperationTerminateActivities < ::Google::Protobuf::AbstractMessage
|
|
109
|
+
|
|
110
|
+
# The identity of the worker/client
|
|
111
|
+
attr_reader identity(): ::String
|
|
112
|
+
attr_writer identity(): ::String | ::Symbol
|
|
113
|
+
def clear_identity: () -> void
|
|
114
|
+
|
|
115
|
+
# Reason for requesting the termination, recorded and available via the PollActivityExecution API.
|
|
116
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
117
|
+
attr_reader reason(): ::String
|
|
118
|
+
attr_writer reason(): ::String | ::Symbol
|
|
119
|
+
def clear_reason: () -> void
|
|
120
|
+
|
|
121
|
+
type init_map = {
|
|
122
|
+
identity: (::String | ::Symbol)?,
|
|
123
|
+
"identity" => (::String | ::Symbol)?,
|
|
124
|
+
reason: (::String | ::Symbol)?,
|
|
125
|
+
"reason" => (::String | ::Symbol)?,
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
def initialize: (?init_map initial_value) -> void
|
|
129
|
+
|
|
130
|
+
def []:
|
|
131
|
+
("identity" name) -> ::String
|
|
132
|
+
| ("reason" name) -> ::String
|
|
133
|
+
|
|
134
|
+
def []=:
|
|
135
|
+
("identity" name, (::String | ::Symbol) value) -> void
|
|
136
|
+
| ("reason" name, (::String | ::Symbol) value) -> void
|
|
137
|
+
end
|
|
138
|
+
|
|
96
139
|
# BatchOperationSignal sends signals to batch workflows.
|
|
97
140
|
# Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
|
|
98
141
|
class BatchOperationSignal < ::Google::Protobuf::AbstractMessage
|
|
@@ -168,6 +211,39 @@ module Temporalio
|
|
|
168
211
|
("identity" name, (::String | ::Symbol) value) -> void
|
|
169
212
|
end
|
|
170
213
|
|
|
214
|
+
# BatchOperationCancelActivities sends cancel requests to a batch of activities.
|
|
215
|
+
# Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest.
|
|
216
|
+
class BatchOperationCancelActivities < ::Google::Protobuf::AbstractMessage
|
|
217
|
+
|
|
218
|
+
# The identity of the worker/client
|
|
219
|
+
attr_reader identity(): ::String
|
|
220
|
+
attr_writer identity(): ::String | ::Symbol
|
|
221
|
+
def clear_identity: () -> void
|
|
222
|
+
|
|
223
|
+
# Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
|
|
224
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
225
|
+
attr_reader reason(): ::String
|
|
226
|
+
attr_writer reason(): ::String | ::Symbol
|
|
227
|
+
def clear_reason: () -> void
|
|
228
|
+
|
|
229
|
+
type init_map = {
|
|
230
|
+
identity: (::String | ::Symbol)?,
|
|
231
|
+
"identity" => (::String | ::Symbol)?,
|
|
232
|
+
reason: (::String | ::Symbol)?,
|
|
233
|
+
"reason" => (::String | ::Symbol)?,
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
def initialize: (?init_map initial_value) -> void
|
|
237
|
+
|
|
238
|
+
def []:
|
|
239
|
+
("identity" name) -> ::String
|
|
240
|
+
| ("reason" name) -> ::String
|
|
241
|
+
|
|
242
|
+
def []=:
|
|
243
|
+
("identity" name, (::String | ::Symbol) value) -> void
|
|
244
|
+
| ("reason" name, (::String | ::Symbol) value) -> void
|
|
245
|
+
end
|
|
246
|
+
|
|
171
247
|
# BatchOperationDeletion sends deletion requests to batch workflows.
|
|
172
248
|
# Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest.
|
|
173
249
|
class BatchOperationDeletion < ::Google::Protobuf::AbstractMessage
|
|
@@ -191,6 +267,16 @@ module Temporalio
|
|
|
191
267
|
("identity" name, (::String | ::Symbol) value) -> void
|
|
192
268
|
end
|
|
193
269
|
|
|
270
|
+
# BatchOperationDeleteActivities sends deletion requests to a batch of activities.
|
|
271
|
+
# Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteActivityExecutionRequest.
|
|
272
|
+
class BatchOperationDeleteActivities < ::Google::Protobuf::AbstractMessage
|
|
273
|
+
|
|
274
|
+
type init_map = {
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
def initialize: (?init_map initial_value) -> void
|
|
278
|
+
end
|
|
279
|
+
|
|
194
280
|
# BatchOperationReset sends reset requests to batch workflows.
|
|
195
281
|
# Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.
|
|
196
282
|
class BatchOperationReset < ::Google::Protobuf::AbstractMessage
|
|
@@ -773,6 +773,12 @@ module Temporalio
|
|
|
773
773
|
def has_priority?: () -> bool
|
|
774
774
|
def clear_priority: () -> void
|
|
775
775
|
|
|
776
|
+
# Versioning override for the child workflow. If present, this explicit override takes
|
|
777
|
+
# precedence over versioning behavior inherited from the parent workflow.
|
|
778
|
+
attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride?
|
|
779
|
+
def has_versioning_override?: () -> bool
|
|
780
|
+
def clear_versioning_override: () -> void
|
|
781
|
+
|
|
776
782
|
type init_map = {
|
|
777
783
|
namespace: (::String | ::Symbol)?,
|
|
778
784
|
"namespace" => (::String | ::Symbol)?,
|
|
@@ -810,6 +816,8 @@ module Temporalio
|
|
|
810
816
|
"inherit_build_id" => bool?,
|
|
811
817
|
priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
|
|
812
818
|
"priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
|
|
819
|
+
versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
|
|
820
|
+
"versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
|
|
813
821
|
}
|
|
814
822
|
|
|
815
823
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -833,6 +841,7 @@ module Temporalio
|
|
|
833
841
|
| ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
834
842
|
| ("inherit_build_id" name) -> bool
|
|
835
843
|
| ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
|
|
844
|
+
| ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride?
|
|
836
845
|
|
|
837
846
|
def []=:
|
|
838
847
|
("namespace" name, (::String | ::Symbol) value) -> void
|
|
@@ -853,6 +862,7 @@ module Temporalio
|
|
|
853
862
|
| ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
|
|
854
863
|
| ("inherit_build_id" name, bool value) -> void
|
|
855
864
|
| ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
|
|
865
|
+
| ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void
|
|
856
866
|
end
|
|
857
867
|
|
|
858
868
|
class ProtocolMessageCommandAttributes < ::Google::Protobuf::AbstractMessage
|