temporalio 1.6.0 → 1.6.1.test.only.rc2

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.

Potentially problematic release.


This version of temporalio might be problematic. Click here for more details.

Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +9 -17
  3. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  4. data/lib/temporalio/api/batch/v1/message.rb +4 -1
  5. data/lib/temporalio/api/command/v1/message.rb +2 -1
  6. data/lib/temporalio/api/common/v1/message.rb +2 -1
  7. data/lib/temporalio/api/enums/v1/activity.rb +1 -1
  8. data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
  9. data/lib/temporalio/api/enums/v1/common.rb +2 -1
  10. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  11. data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
  12. data/lib/temporalio/api/history/v1/message.rb +1 -1
  13. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  14. data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
  15. data/lib/temporalio/api/workflowservice/v1/request_response.rb +1 -1
  16. data/lib/temporalio/client/connection.rb +33 -3
  17. data/lib/temporalio/client/schedule.rb +4 -5
  18. data/lib/temporalio/client/workflow_execution.rb +2 -2
  19. data/lib/temporalio/client/workflow_handle.rb +13 -7
  20. data/lib/temporalio/client.rb +4 -6
  21. data/lib/temporalio/internal/bridge/client.rb +3 -1
  22. data/lib/temporalio/internal/bridge/worker.rb +3 -1
  23. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
  24. data/lib/temporalio/runtime.rb +2 -2
  25. data/lib/temporalio/version.rb +1 -1
  26. data/lib/temporalio/worker/workflow_replayer.rb +2 -0
  27. data/lib/temporalio/worker.rb +24 -4
  28. data/lib/temporalio/workflow.rb +8 -9
  29. data/rbi/temporalio/api/activity/v1/message.rbi +78 -12
  30. data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
  31. data/rbi/temporalio/api/command/v1/message.rbi +22 -2
  32. data/rbi/temporalio/api/common/v1/message.rbi +100 -8
  33. data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
  34. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
  35. data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
  36. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +3 -0
  37. data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
  38. data/rbi/temporalio/api/history/v1/message.rbi +22 -2
  39. data/rbi/temporalio/api/namespace/v1/message.rbi +70 -2
  40. data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
  41. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +379 -57
  42. data/rbi/temporalio/client/connection.rbi +2 -0
  43. data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
  44. data/rbi/temporalio/worker.rbi +9 -2
  45. data/rbi/temporalio/workflow/future.rbi +1 -1
  46. data/sig/temporalio/api/activity/v1/message.rbs +37 -2
  47. data/sig/temporalio/api/batch/v1/message.rbs +86 -0
  48. data/sig/temporalio/api/command/v1/message.rbs +10 -0
  49. data/sig/temporalio/api/common/v1/message.rbs +47 -7
  50. data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
  51. data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
  52. data/sig/temporalio/api/enums/v1/common.rbs +23 -0
  53. data/sig/temporalio/api/enums/v1/failed_cause.rbs +15 -6
  54. data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
  55. data/sig/temporalio/api/history/v1/message.rbs +10 -0
  56. data/sig/temporalio/api/namespace/v1/message.rbs +32 -0
  57. data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
  58. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +174 -18
  59. data/sig/temporalio/client/connection.rbs +14 -1
  60. data/sig/temporalio/internal/bridge/client.rbs +5 -1
  61. data/sig/temporalio/internal/bridge/worker.rbs +5 -1
  62. data/sig/temporalio/worker.rbs +8 -2
  63. metadata +1 -1
@@ -15,6 +15,7 @@ class Temporalio::Client::Connection
15
15
  lazy_connect: T::Boolean,
16
16
  dns_load_balancing: T.nilable(Temporalio::Client::Connection::DnsLoadBalancingOptions),
17
17
  grpc_compression: T.any(Temporalio::Client::Connection::GrpcCompressionOptions::Gzip, Temporalio::Client::Connection::GrpcCompressionOptions::None),
18
+ payload_limits: Temporalio::Client::Connection::PayloadLimitsOptions,
18
19
  around_connect: T.nilable(T.proc.params(arg0: Temporalio::Client::Connection::Options, arg1: T.proc.params(arg0: Temporalio::Client::Connection::Options).void).void)
19
20
  ).void
20
21
  end
@@ -31,6 +32,7 @@ class Temporalio::Client::Connection
31
32
  lazy_connect: T.unsafe(nil),
32
33
  dns_load_balancing: T.unsafe(nil),
33
34
  grpc_compression: T.unsafe(nil),
35
+ payload_limits: T.unsafe(nil),
34
36
  around_connect: T.unsafe(nil)
35
37
  ); end
36
38
 
@@ -76,6 +76,7 @@ class Temporalio::Internal::Bridge::Worker::Options < ::Struct
76
76
  default_heartbeat_throttle_interval: T.any(Integer, Float),
77
77
  max_worker_activities_per_second: T.nilable(T.any(Integer, Float)),
78
78
  max_task_queue_activities_per_second: T.nilable(T.any(Integer, Float)),
79
+ max_eager_activity_reservations_per_workflow_task: Integer,
79
80
  graceful_shutdown_period: T.any(Integer, Float),
80
81
  nondeterminism_as_workflow_fail: T::Boolean,
81
82
  nondeterminism_as_workflow_fail_for_types: T::Array[String],
@@ -101,6 +102,7 @@ class Temporalio::Internal::Bridge::Worker::Options < ::Struct
101
102
  default_heartbeat_throttle_interval,
102
103
  max_worker_activities_per_second,
103
104
  max_task_queue_activities_per_second,
105
+ max_eager_activity_reservations_per_workflow_task,
104
106
  graceful_shutdown_period,
105
107
  nondeterminism_as_workflow_fail,
106
108
  nondeterminism_as_workflow_fail_for_types,
@@ -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
 
@@ -13,7 +13,7 @@ class Temporalio::Workflow::Future
13
13
  attr_reader :failure
14
14
 
15
15
  sig { params(block: T.nilable(T.proc.returns(Elem))).void }
16
- def initialize(&); end
16
+ def initialize(&block); end
17
17
 
18
18
  sig { returns(T::Boolean) }
19
19
  def done?; end
@@ -97,6 +97,14 @@ module Temporalio
97
97
  def has_priority?: () -> bool
98
98
  def clear_priority: () -> void
99
99
 
100
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
101
+ # When updated, the time is added to the original `schedule_time`, not to the current time.
102
+ # If the resulting time is in the past, the task is made available for dispatch immediately.
103
+ attr_reader start_delay(): ::Google::Protobuf::Duration?
104
+ attr_writer start_delay(): (::Google::Protobuf::Duration | ::int)?
105
+ def has_start_delay?: () -> bool
106
+ def clear_start_delay: () -> void
107
+
100
108
  type init_map = {
101
109
  task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
102
110
  "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
@@ -112,6 +120,8 @@ module Temporalio
112
120
  "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?,
113
121
  priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
114
122
  "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
123
+ start_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
124
+ "start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
115
125
  }
116
126
 
117
127
  def initialize: (?init_map initial_value) -> void
@@ -124,6 +134,7 @@ module Temporalio
124
134
  | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration?
125
135
  | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy?
126
136
  | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
137
+ | ("start_delay" name) -> ::Google::Protobuf::Duration?
127
138
 
128
139
  def []=:
129
140
  ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void
@@ -133,6 +144,7 @@ module Temporalio
133
144
  | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
134
145
  | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void
135
146
  | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
147
+ | ("start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
136
148
  end
137
149
 
138
150
  # Information about a standalone activity.
@@ -242,7 +254,8 @@ module Temporalio
242
254
  def has_schedule_time?: () -> bool
243
255
  def clear_schedule_time: () -> void
244
256
 
245
- # Scheduled time + schedule to close timeout.
257
+ # The time at which the activity's Schedule-to-Close timeout expires.
258
+ # Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
246
259
  attr_reader expiration_time(): ::Google::Protobuf::Timestamp?
247
260
  attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
248
261
  def has_expiration_time?: () -> bool
@@ -348,12 +361,19 @@ module Temporalio
348
361
  attr_writer sdk_version(): ::String | ::Symbol
349
362
  def clear_sdk_version: () -> void
350
363
 
351
- # Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
364
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
352
365
  attr_reader start_delay(): ::Google::Protobuf::Duration?
353
366
  attr_writer start_delay(): (::Google::Protobuf::Duration | ::int)?
354
367
  def has_start_delay?: () -> bool
355
368
  def clear_start_delay: () -> void
356
369
 
370
+ # The time at which the first activity task is made available for dispatch, computed as
371
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
372
+ attr_reader execution_time(): ::Google::Protobuf::Timestamp?
373
+ attr_writer execution_time(): (::Google::Protobuf::Timestamp | ::Time)?
374
+ def has_execution_time?: () -> bool
375
+ def clear_execution_time: () -> void
376
+
357
377
  type init_map = {
358
378
  activity_id: (::String | ::Symbol)?,
359
379
  "activity_id" => (::String | ::Symbol)?,
@@ -429,6 +449,8 @@ module Temporalio
429
449
  "sdk_version" => (::String | ::Symbol)?,
430
450
  start_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
431
451
  "start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
452
+ execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
453
+ "execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
432
454
  }
433
455
 
434
456
  def initialize: (?init_map initial_value) -> void
@@ -471,6 +493,7 @@ module Temporalio
471
493
  | ("sdk_name" name) -> ::String
472
494
  | ("sdk_version" name) -> ::String
473
495
  | ("start_delay" name) -> ::Google::Protobuf::Duration?
496
+ | ("execution_time" name) -> ::Google::Protobuf::Timestamp?
474
497
 
475
498
  def []=:
476
499
  ("activity_id" name, (::String | ::Symbol) value) -> void
@@ -510,6 +533,7 @@ module Temporalio
510
533
  | ("sdk_name" name, (::String | ::Symbol) value) -> void
511
534
  | ("sdk_version" name, (::String | ::Symbol) value) -> void
512
535
  | ("start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
536
+ | ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
513
537
  end
514
538
 
515
539
  # Limited activity information returned in the list response.
@@ -578,6 +602,13 @@ module Temporalio
578
602
  def has_execution_duration?: () -> bool
579
603
  def clear_execution_duration: () -> void
580
604
 
605
+ # The time at which the first activity task is made available for dispatch, computed as
606
+ # `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
607
+ attr_reader execution_time(): ::Google::Protobuf::Timestamp?
608
+ attr_writer execution_time(): (::Google::Protobuf::Timestamp | ::Time)?
609
+ def has_execution_time?: () -> bool
610
+ def clear_execution_time: () -> void
611
+
581
612
  type init_map = {
582
613
  activity_id: (::String | ::Symbol)?,
583
614
  "activity_id" => (::String | ::Symbol)?,
@@ -601,6 +632,8 @@ module Temporalio
601
632
  "state_size_bytes" => (::Integer | ::Float)?,
602
633
  execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
603
634
  "execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
635
+ execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
636
+ "execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
604
637
  }
605
638
 
606
639
  def initialize: (?init_map initial_value) -> void
@@ -617,6 +650,7 @@ module Temporalio
617
650
  | ("state_transition_count" name) -> ::Integer
618
651
  | ("state_size_bytes" name) -> ::Integer
619
652
  | ("execution_duration" name) -> ::Google::Protobuf::Duration?
653
+ | ("execution_time" name) -> ::Google::Protobuf::Timestamp?
620
654
 
621
655
  def []=:
622
656
  ("activity_id" name, (::String | ::Symbol) value) -> void
@@ -630,6 +664,7 @@ module Temporalio
630
664
  | ("state_transition_count" name, (::Integer | ::Float) value) -> void
631
665
  | ("state_size_bytes" name, (::Integer | ::Float) value) -> void
632
666
  | ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
667
+ | ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
633
668
  end
634
669
 
635
670
  # 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
@@ -208,6 +208,45 @@ module Temporalio
208
208
  | ("run_id" name, (::String | ::Symbol) value) -> void
209
209
  end
210
210
 
211
+ # Identifies a specific execution within a namespace. This is used for standalone activities
212
+ # executions in batch jobs currently.
213
+ class Execution < ::Google::Protobuf::AbstractMessage
214
+
215
+ attr_reader type(): ::Temporalio::Api::Enums::V1::ExecutionType::names | ::Integer
216
+ attr_writer type(): ::Temporalio::Api::Enums::V1::ExecutionType::names | ::Temporalio::Api::Enums::V1::ExecutionType::strings | ::Integer | ::Float
217
+ attr_reader type_const(): ::Integer
218
+ def clear_type: () -> void
219
+
220
+ attr_reader business_id(): ::String
221
+ attr_writer business_id(): ::String | ::Symbol
222
+ def clear_business_id: () -> void
223
+
224
+ attr_reader run_id(): ::String
225
+ attr_writer run_id(): ::String | ::Symbol
226
+ def clear_run_id: () -> void
227
+
228
+ type init_map = {
229
+ type: (::Temporalio::Api::Enums::V1::ExecutionType::names | ::Temporalio::Api::Enums::V1::ExecutionType::strings | ::Integer | ::Float)?,
230
+ "type" => (::Temporalio::Api::Enums::V1::ExecutionType::names | ::Temporalio::Api::Enums::V1::ExecutionType::strings | ::Integer | ::Float)?,
231
+ business_id: (::String | ::Symbol)?,
232
+ "business_id" => (::String | ::Symbol)?,
233
+ run_id: (::String | ::Symbol)?,
234
+ "run_id" => (::String | ::Symbol)?,
235
+ }
236
+
237
+ def initialize: (?init_map initial_value) -> void
238
+
239
+ def []:
240
+ ("type" name) -> (::Temporalio::Api::Enums::V1::ExecutionType::names | ::Integer)
241
+ | ("business_id" name) -> ::String
242
+ | ("run_id" name) -> ::String
243
+
244
+ def []=:
245
+ ("type" name, (::Temporalio::Api::Enums::V1::ExecutionType::names | ::Temporalio::Api::Enums::V1::ExecutionType::strings | ::Integer | ::Float) value) -> void
246
+ | ("business_id" name, (::String | ::Symbol) value) -> void
247
+ | ("run_id" name, (::String | ::Symbol) value) -> void
248
+ end
249
+
211
250
  # Represents the identifier used by a workflow author to define the workflow. Typically, the
212
251
  # name of a function. This is sometimes referred to as the workflow's "name"
213
252
  class WorkflowType < ::Google::Protobuf::AbstractMessage
@@ -1162,18 +1201,19 @@ module Temporalio
1162
1201
  def has_fast_forward?: () -> bool
1163
1202
  def clear_fast_forward: () -> void
1164
1203
 
1165
- # By default, child workflows inherit the "enabled" flag when they are started.
1204
+ # By default, executions started by another execution (e.g. a child workflow of a parent workflow or
1205
+ # a schedule with the timeskipping policy enabled), inherit the "enabled" flag and skip time when possible.
1166
1206
  # This flag disables that inheritance.
1167
- attr_accessor disable_child_propagation(): bool
1168
- def clear_disable_child_propagation: () -> void
1207
+ attr_accessor disable_propagation(): bool
1208
+ def clear_disable_propagation: () -> void
1169
1209
 
1170
1210
  type init_map = {
1171
1211
  enabled: bool?,
1172
1212
  "enabled" => bool?,
1173
1213
  fast_forward: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1174
1214
  "fast_forward" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
1175
- disable_child_propagation: bool?,
1176
- "disable_child_propagation" => bool?,
1215
+ disable_propagation: bool?,
1216
+ "disable_propagation" => bool?,
1177
1217
  }
1178
1218
 
1179
1219
  def initialize: (?init_map initial_value) -> void
@@ -1181,12 +1221,12 @@ module Temporalio
1181
1221
  def []:
1182
1222
  ("enabled" name) -> bool
1183
1223
  | ("fast_forward" name) -> ::Google::Protobuf::Duration?
1184
- | ("disable_child_propagation" name) -> bool
1224
+ | ("disable_propagation" name) -> bool
1185
1225
 
1186
1226
  def []=:
1187
1227
  ("enabled" name, bool value) -> void
1188
1228
  | ("fast_forward" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
1189
- | ("disable_child_propagation" name, bool value) -> void
1229
+ | ("disable_propagation" name, bool value) -> void
1190
1230
  end
1191
1231
 
1192
1232
  # The time-skipping state that needs to be propagated from a parent workflow to a child workflow,
@@ -10,8 +10,8 @@ module Temporalio
10
10
  module Enums
11
11
  module V1
12
12
  # Status of a standalone activity.
13
- # The status is updated once, when the activity is originally scheduled, and again when the activity reaches a terminal
14
- # status.
13
+ # The status is updated when the activity is originally scheduled, paused, unpaused, and when the
14
+ # activity reaches a terminal state.
15
15
  # (-- api-linter: core::0216::synonyms=disabled
16
16
  # aip.dev/not-precedent: Named consistently with WorkflowExecutionStatus. --)
17
17
  module ActivityExecutionStatus
@@ -51,17 +51,21 @@ module Temporalio
51
51
  # SCHEDULE_TO_CLOSE would be exceeded, or cancellation has been requested).
52
52
  ACTIVITY_EXECUTION_STATUS_TIMED_OUT: 6
53
53
 
54
+ # The activity is paused. Paused state is only reachable after calling
55
+ # PauseActivityExecution on a standalone activity.
56
+ ACTIVITY_EXECUTION_STATUS_PAUSED: 7
57
+
54
58
  def self.lookup: (::Integer number) -> ::Symbol
55
59
 
56
60
 
57
61
  def self.resolve: (::Symbol name) -> ::Integer
58
62
 
59
63
 
60
- type names = :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED | :ACTIVITY_EXECUTION_STATUS_RUNNING | :ACTIVITY_EXECUTION_STATUS_COMPLETED | :ACTIVITY_EXECUTION_STATUS_FAILED | :ACTIVITY_EXECUTION_STATUS_CANCELED | :ACTIVITY_EXECUTION_STATUS_TERMINATED | :ACTIVITY_EXECUTION_STATUS_TIMED_OUT
64
+ type names = :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED | :ACTIVITY_EXECUTION_STATUS_RUNNING | :ACTIVITY_EXECUTION_STATUS_COMPLETED | :ACTIVITY_EXECUTION_STATUS_FAILED | :ACTIVITY_EXECUTION_STATUS_CANCELED | :ACTIVITY_EXECUTION_STATUS_TERMINATED | :ACTIVITY_EXECUTION_STATUS_TIMED_OUT | :ACTIVITY_EXECUTION_STATUS_PAUSED
61
65
 
62
- type strings = "ACTIVITY_EXECUTION_STATUS_UNSPECIFIED" | "ACTIVITY_EXECUTION_STATUS_RUNNING" | "ACTIVITY_EXECUTION_STATUS_COMPLETED" | "ACTIVITY_EXECUTION_STATUS_FAILED" | "ACTIVITY_EXECUTION_STATUS_CANCELED" | "ACTIVITY_EXECUTION_STATUS_TERMINATED" | "ACTIVITY_EXECUTION_STATUS_TIMED_OUT"
66
+ type strings = "ACTIVITY_EXECUTION_STATUS_UNSPECIFIED" | "ACTIVITY_EXECUTION_STATUS_RUNNING" | "ACTIVITY_EXECUTION_STATUS_COMPLETED" | "ACTIVITY_EXECUTION_STATUS_FAILED" | "ACTIVITY_EXECUTION_STATUS_CANCELED" | "ACTIVITY_EXECUTION_STATUS_TERMINATED" | "ACTIVITY_EXECUTION_STATUS_TIMED_OUT" | "ACTIVITY_EXECUTION_STATUS_PAUSED"
63
67
 
64
- type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6
68
+ type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
65
69
  end
66
70
 
67
71
  # Defines whether to allow re-using an activity ID from a previously *closed* activity.
@@ -13,35 +13,65 @@ module Temporalio
13
13
 
14
14
  BATCH_OPERATION_TYPE_UNSPECIFIED: 0
15
15
 
16
+ # DEPRECATED: Use BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW instead.
17
+ # @deprecated
16
18
  BATCH_OPERATION_TYPE_TERMINATE: 1
17
19
 
20
+ BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW: 13
21
+
22
+ # DEPRECATED: Use BATCH_OPERATION_TYPE_CANCEL_WORKFLOW instead.
23
+ # @deprecated
18
24
  BATCH_OPERATION_TYPE_CANCEL: 2
19
25
 
26
+ BATCH_OPERATION_TYPE_CANCEL_WORKFLOW: 14
27
+
28
+ # DEPRECATED: Use BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW instead.
29
+ # @deprecated
20
30
  BATCH_OPERATION_TYPE_SIGNAL: 3
21
31
 
32
+ BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW: 15
33
+
34
+ # DEPRECATED: Use BATCH_OPERATION_TYPE_DELETE_WORKFLOW instead.
35
+ # @deprecated
22
36
  BATCH_OPERATION_TYPE_DELETE: 4
23
37
 
38
+ BATCH_OPERATION_TYPE_DELETE_WORKFLOW: 16
39
+
40
+ # DEPRECATED: Use BATCH_OPERATION_TYPE_RESET_WORKFLOW instead.
41
+ # @deprecated
24
42
  BATCH_OPERATION_TYPE_RESET: 5
25
43
 
44
+ BATCH_OPERATION_TYPE_RESET_WORKFLOW: 17
45
+
46
+ # DEPRECATED: Use BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS instead.
47
+ # @deprecated
26
48
  BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS: 6
27
49
 
50
+ BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS: 18
51
+
28
52
  BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY: 7
29
53
 
30
54
  BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS: 8
31
55
 
32
56
  BATCH_OPERATION_TYPE_RESET_ACTIVITY: 9
33
57
 
58
+ BATCH_OPERATION_TYPE_TERMINATE_ACTIVITY: 10
59
+
60
+ BATCH_OPERATION_TYPE_CANCEL_ACTIVITY: 11
61
+
62
+ BATCH_OPERATION_TYPE_DELETE_ACTIVITY: 12
63
+
34
64
  def self.lookup: (::Integer number) -> ::Symbol
35
65
 
36
66
 
37
67
  def self.resolve: (::Symbol name) -> ::Integer
38
68
 
39
69
 
40
- type names = :BATCH_OPERATION_TYPE_UNSPECIFIED | :BATCH_OPERATION_TYPE_TERMINATE | :BATCH_OPERATION_TYPE_CANCEL | :BATCH_OPERATION_TYPE_SIGNAL | :BATCH_OPERATION_TYPE_DELETE | :BATCH_OPERATION_TYPE_RESET | :BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS | :BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY | :BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS | :BATCH_OPERATION_TYPE_RESET_ACTIVITY
70
+ type names = :BATCH_OPERATION_TYPE_UNSPECIFIED | :BATCH_OPERATION_TYPE_TERMINATE | :BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW | :BATCH_OPERATION_TYPE_CANCEL | :BATCH_OPERATION_TYPE_CANCEL_WORKFLOW | :BATCH_OPERATION_TYPE_SIGNAL | :BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW | :BATCH_OPERATION_TYPE_DELETE | :BATCH_OPERATION_TYPE_DELETE_WORKFLOW | :BATCH_OPERATION_TYPE_RESET | :BATCH_OPERATION_TYPE_RESET_WORKFLOW | :BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS | :BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS | :BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY | :BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS | :BATCH_OPERATION_TYPE_RESET_ACTIVITY | :BATCH_OPERATION_TYPE_TERMINATE_ACTIVITY | :BATCH_OPERATION_TYPE_CANCEL_ACTIVITY | :BATCH_OPERATION_TYPE_DELETE_ACTIVITY
41
71
 
42
- type strings = "BATCH_OPERATION_TYPE_UNSPECIFIED" | "BATCH_OPERATION_TYPE_TERMINATE" | "BATCH_OPERATION_TYPE_CANCEL" | "BATCH_OPERATION_TYPE_SIGNAL" | "BATCH_OPERATION_TYPE_DELETE" | "BATCH_OPERATION_TYPE_RESET" | "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS" | "BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY" | "BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS" | "BATCH_OPERATION_TYPE_RESET_ACTIVITY"
72
+ type strings = "BATCH_OPERATION_TYPE_UNSPECIFIED" | "BATCH_OPERATION_TYPE_TERMINATE" | "BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW" | "BATCH_OPERATION_TYPE_CANCEL" | "BATCH_OPERATION_TYPE_CANCEL_WORKFLOW" | "BATCH_OPERATION_TYPE_SIGNAL" | "BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW" | "BATCH_OPERATION_TYPE_DELETE" | "BATCH_OPERATION_TYPE_DELETE_WORKFLOW" | "BATCH_OPERATION_TYPE_RESET" | "BATCH_OPERATION_TYPE_RESET_WORKFLOW" | "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS" | "BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS" | "BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY" | "BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS" | "BATCH_OPERATION_TYPE_RESET_ACTIVITY" | "BATCH_OPERATION_TYPE_TERMINATE_ACTIVITY" | "BATCH_OPERATION_TYPE_CANCEL_ACTIVITY" | "BATCH_OPERATION_TYPE_DELETE_ACTIVITY"
43
73
 
44
- type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
74
+ type numbers = 0 | 1 | 13 | 2 | 14 | 3 | 15 | 4 | 16 | 5 | 17 | 6 | 18 | 7 | 8 | 9 | 10 | 11 | 12
45
75
  end
46
76
 
47
77
  module BatchOperationState
@@ -257,6 +257,29 @@ module Temporalio
257
257
 
258
258
  type numbers = 0 | 1 | 2 | 3
259
259
  end
260
+
261
+ module ExecutionType
262
+
263
+ EXECUTION_TYPE_UNSPECIFIED: 0
264
+
265
+ # A workflow execution archetype.
266
+ EXECUTION_TYPE_WORKFLOW: 1
267
+
268
+ # An activity execution archetype. This is reserved for standalone activities.
269
+ EXECUTION_TYPE_ACTIVITY: 2
270
+
271
+ def self.lookup: (::Integer number) -> ::Symbol
272
+
273
+
274
+ def self.resolve: (::Symbol name) -> ::Integer
275
+
276
+
277
+ type names = :EXECUTION_TYPE_UNSPECIFIED | :EXECUTION_TYPE_WORKFLOW | :EXECUTION_TYPE_ACTIVITY
278
+
279
+ type strings = "EXECUTION_TYPE_UNSPECIFIED" | "EXECUTION_TYPE_WORKFLOW" | "EXECUTION_TYPE_ACTIVITY"
280
+
281
+ type numbers = 0 | 1 | 2
282
+ end
260
283
  end
261
284
  end
262
285
  end