temporalio 1.10.1 → 1.11.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.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +760 -767
  3. data/Gemfile +3 -2
  4. data/ext/Cargo.toml +3 -3
  5. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  6. data/lib/temporalio/api/common/v1/message.rb +2 -1
  7. data/lib/temporalio/api/schedule/v1/message.rb +1 -1
  8. data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
  9. data/lib/temporalio/api/worker/v1/message.rb +1 -1
  10. data/lib/temporalio/api/workflowservice/v1/request_response.rb +1 -1
  11. data/lib/temporalio/client/connection.rb +4 -4
  12. data/lib/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rb +52 -0
  13. data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver.rb +211 -0
  14. data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rb +56 -0
  15. data/lib/temporalio/contrib/aws/s3_driver.rb +22 -0
  16. data/lib/temporalio/contrib/open_telemetry.rb +1 -1
  17. data/lib/temporalio/converters/external_storage_concurrency.rb +4 -6
  18. data/lib/temporalio/converters/payload_converter/binary_protobuf.rb +1 -1
  19. data/lib/temporalio/converters/payload_converter/json_protobuf.rb +1 -1
  20. data/lib/temporalio/converters/storage_driver_limiter.rb +6 -8
  21. data/lib/temporalio/converters/storage_driver_retrieve_context.rb +1 -2
  22. data/lib/temporalio/converters/storage_driver_store_context.rb +1 -2
  23. data/lib/temporalio/env_config.rb +89 -8
  24. data/lib/temporalio/internal/bridge/api/activity_result/activity_result.rb +2 -2
  25. data/lib/temporalio/internal/bridge/api/activity_task/activity_task.rb +3 -1
  26. data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +2 -1
  27. data/lib/temporalio/internal/bridge/testing.rb +4 -2
  28. data/lib/temporalio/internal/worker/workflow_instance/child_workflow_handle.rb +2 -2
  29. data/lib/temporalio/internal/worker/workflow_instance/context.rb +35 -24
  30. data/lib/temporalio/internal/worker/workflow_instance/external_workflow_handle.rb +6 -4
  31. data/lib/temporalio/internal/worker/workflow_instance/nexus_client.rb +3 -2
  32. data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +52 -19
  33. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +8 -2
  34. data/lib/temporalio/internal/worker/workflow_instance.rb +47 -26
  35. data/lib/temporalio/internal/worker/workflow_worker.rb +1 -2
  36. data/lib/temporalio/search_attributes.rb +4 -2
  37. data/lib/temporalio/testing/workflow_environment.rb +10 -2
  38. data/lib/temporalio/version.rb +1 -1
  39. data/lib/temporalio/worker/interceptor.rb +16 -8
  40. data/lib/temporalio/worker/workflow_replayer.rb +1 -1
  41. data/lib/temporalio/worker.rb +19 -12
  42. data/lib/temporalio/workflow/child_workflow_handle.rb +4 -1
  43. data/lib/temporalio/workflow/event_group.rb +157 -0
  44. data/lib/temporalio/workflow/external_workflow_handle.rb +9 -2
  45. data/lib/temporalio/workflow/future.rb +1 -1
  46. data/lib/temporalio/workflow/info.rb +4 -0
  47. data/lib/temporalio/workflow/nexus_client.rb +11 -3
  48. data/lib/temporalio/workflow.rb +114 -22
  49. data/rbi/temporalio/api/activity/v1/message.rbi +71 -2
  50. data/rbi/temporalio/api/common/v1/message.rbi +95 -0
  51. data/rbi/temporalio/api/schedule/v1/message.rbi +44 -4
  52. data/rbi/temporalio/api/taskqueue/v1/message.rbi +67 -0
  53. data/rbi/temporalio/api/worker/v1/message.rbi +22 -2
  54. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +126 -12
  55. data/rbi/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rbi +8 -0
  56. data/rbi/temporalio/contrib/aws/s3_driver/s3_storage_driver.rbi +27 -0
  57. data/rbi/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rbi +17 -0
  58. data/rbi/temporalio/contrib/aws/s3_driver.rbi +5 -0
  59. data/rbi/temporalio/env_config.rbi +39 -4
  60. data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +0 -19
  61. data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +213 -2
  62. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +50 -4
  63. data/rbi/temporalio/internal/bridge/testing.rbi +17 -4
  64. data/rbi/temporalio/internal/bridge/worker.rbi +4 -4
  65. data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +33 -24
  66. data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +4 -2
  67. data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +17 -6
  68. data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +1 -1
  69. data/rbi/temporalio/internal/worker/workflow_instance.rbi +5 -2
  70. data/rbi/temporalio/testing/workflow_environment.rbi +4 -0
  71. data/rbi/temporalio/worker/interceptor.rbi +24 -0
  72. data/rbi/temporalio/worker.rbi +8 -8
  73. data/rbi/temporalio/workflow/child_workflow_handle.rbi +3 -2
  74. data/rbi/temporalio/workflow/event_group.rbi +104 -0
  75. data/rbi/temporalio/workflow/external_workflow_handle.rbi +5 -4
  76. data/rbi/temporalio/workflow/info.rbi +3 -0
  77. data/rbi/temporalio/workflow/nexus_client.rbi +8 -4
  78. data/rbi/temporalio/workflow.rbi +70 -21
  79. data/sig/temporalio/api/activity/v1/message.rbs +31 -0
  80. data/sig/temporalio/api/common/v1/message.rbs +35 -0
  81. data/sig/temporalio/api/schedule/v1/message.rbs +20 -0
  82. data/sig/temporalio/api/taskqueue/v1/message.rbs +24 -0
  83. data/sig/temporalio/api/worker/v1/message.rbs +10 -0
  84. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +58 -0
  85. data/sig/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rbs +13 -0
  86. data/sig/temporalio/contrib/aws/s3_driver/s3_storage_driver.rbs +68 -0
  87. data/sig/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rbs +14 -0
  88. data/sig/temporalio/contrib/aws/s3_driver.rbs +8 -0
  89. data/sig/temporalio/env_config.rbs +20 -2
  90. data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +6 -41
  91. data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +99 -0
  92. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +22 -0
  93. data/sig/temporalio/internal/bridge/testing.rbs +7 -3
  94. data/sig/temporalio/internal/bridge/worker.rbs +4 -4
  95. data/sig/temporalio/internal/worker/workflow_instance/context.rbs +19 -13
  96. data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +2 -1
  97. data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +8 -5
  98. data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +1 -1
  99. data/sig/temporalio/internal/worker/workflow_instance.rbs +2 -1
  100. data/sig/temporalio/testing/workflow_environment.rbs +8 -4
  101. data/sig/temporalio/worker/interceptor.rbs +24 -8
  102. data/sig/temporalio/worker.rbs +12 -12
  103. data/sig/temporalio/workflow/child_workflow_handle.rbs +2 -1
  104. data/sig/temporalio/workflow/event_group.rbs +37 -0
  105. data/sig/temporalio/workflow/external_workflow_handle.rbs +3 -2
  106. data/sig/temporalio/workflow/info.rbs +2 -0
  107. data/sig/temporalio/workflow/nexus_client.rbs +4 -2
  108. data/sig/temporalio/workflow.rbs +27 -11
  109. metadata +16 -1
@@ -153,6 +153,19 @@ module Temporalio
153
153
  attr_writer run_id(): ::String | ::Symbol
154
154
  def clear_run_id: () -> void
155
155
 
156
+ # Serialization context of the Nexus operation handler that started this activity, if any.
157
+ # Only set for standalone activities. Lang should use it to serialize the activity's result and
158
+ # failure, which are returned to the Nexus caller.
159
+ attr_accessor propagated_nexus_serialization_context(): ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
160
+ def has_propagated_nexus_serialization_context?: () -> bool
161
+ def clear_propagated_nexus_serialization_context: () -> void
162
+
163
+ # For a local activity, the workflow task in which Core dispatched this execution. Retries that
164
+ # Core runs locally keep the value. Unset for other activities.
165
+ attr_accessor workflow_task(): ::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt?
166
+ def has_workflow_task?: () -> bool
167
+ def clear_workflow_task: () -> void
168
+
156
169
  type init_map = {
157
170
  workflow_namespace: (::String | ::Symbol)?,
158
171
  "workflow_namespace" => (::String | ::Symbol)?,
@@ -192,6 +205,10 @@ module Temporalio
192
205
  "is_local" => bool?,
193
206
  run_id: (::String | ::Symbol)?,
194
207
  "run_id" => (::String | ::Symbol)?,
208
+ propagated_nexus_serialization_context: (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
209
+ "propagated_nexus_serialization_context" => (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
210
+ workflow_task: (::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt | ::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt::init_map)?,
211
+ "workflow_task" => (::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt | ::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt::init_map)?,
195
212
  }
196
213
 
197
214
  def initialize: (?init_map initial_value) -> void
@@ -216,6 +233,8 @@ module Temporalio
216
233
  | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
217
234
  | ("is_local" name) -> bool
218
235
  | ("run_id" name) -> ::String
236
+ | ("propagated_nexus_serialization_context" name) -> ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
237
+ | ("workflow_task" name) -> ::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt?
219
238
 
220
239
  def []=:
221
240
  ("workflow_namespace" name, (::String | ::Symbol) value) -> void
@@ -237,6 +256,86 @@ module Temporalio
237
256
  | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
238
257
  | ("is_local" name, bool value) -> void
239
258
  | ("run_id" name, (::String | ::Symbol) value) -> void
259
+ | ("propagated_nexus_serialization_context" name, ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext? value) -> void
260
+ | ("workflow_task" name, ::Temporalio::Internal::Bridge::Api::ActivityTask::WorkflowTaskAttempt? value) -> void
261
+ end
262
+
263
+ # One attempt of a workflow task, from the poll response and the history of that attempt.
264
+ class WorkflowTaskAttempt < ::Google::Protobuf::AbstractMessage
265
+
266
+ # The event id of the task's WorkflowTaskStarted event.
267
+ attr_reader started_event_id(): ::Integer
268
+ attr_writer started_event_id(): ::Integer | ::Float
269
+ def clear_started_event_id: () -> void
270
+
271
+ attr_reader attempt(): ::Integer
272
+ attr_writer attempt(): ::Integer | ::Float
273
+ def clear_attempt: () -> void
274
+
275
+ # When the server started the task.
276
+ attr_reader started_time(): ::Google::Protobuf::Timestamp?
277
+ attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)?
278
+ def has_started_time?: () -> bool
279
+ def clear_started_time: () -> void
280
+
281
+ # The started event id of the run's last completed workflow task, from the poll response.
282
+ # 0 when no task of the run has completed.
283
+ attr_reader previous_started_event_id(): ::Integer
284
+ attr_writer previous_started_event_id(): ::Integer | ::Float
285
+ def clear_previous_started_event_id: () -> void
286
+
287
+ # The started event ids of the run's last 100 failed and timed out workflow tasks in history,
288
+ # in event order. The cap keeps each start small. A transient attempt has no such event.
289
+ attr_accessor failed_tasks(): ::Google::Protobuf::RepeatedField
290
+ def clear_failed_tasks: () -> void
291
+
292
+ # The attempt and the started time of the task at previous_started_event_id, from its
293
+ # WorkflowTaskScheduled and WorkflowTaskStarted events. Unset when no task has completed.
294
+ attr_reader previous_attempt(): ::Integer
295
+ attr_writer previous_attempt(): ::Integer | ::Float
296
+ def clear_previous_attempt: () -> void
297
+
298
+ attr_reader previous_started_time(): ::Google::Protobuf::Timestamp?
299
+ attr_writer previous_started_time(): (::Google::Protobuf::Timestamp | ::Time)?
300
+ def has_previous_started_time?: () -> bool
301
+ def clear_previous_started_time: () -> void
302
+
303
+ type init_map = {
304
+ started_event_id: (::Integer | ::Float)?,
305
+ "started_event_id" => (::Integer | ::Float)?,
306
+ attempt: (::Integer | ::Float)?,
307
+ "attempt" => (::Integer | ::Float)?,
308
+ started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
309
+ "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
310
+ previous_started_event_id: (::Integer | ::Float)?,
311
+ "previous_started_event_id" => (::Integer | ::Float)?,
312
+ failed_tasks: ::Array[::Integer | ::Float]?,
313
+ "failed_tasks" => ::Array[::Integer | ::Float]?,
314
+ previous_attempt: (::Integer | ::Float)?,
315
+ "previous_attempt" => (::Integer | ::Float)?,
316
+ previous_started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
317
+ "previous_started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
318
+ }
319
+
320
+ def initialize: (?init_map initial_value) -> void
321
+
322
+ def []:
323
+ ("started_event_id" name) -> ::Integer
324
+ | ("attempt" name) -> ::Integer
325
+ | ("started_time" name) -> ::Google::Protobuf::Timestamp?
326
+ | ("previous_started_event_id" name) -> ::Integer
327
+ | ("failed_tasks" name) -> (::Google::Protobuf::RepeatedField)
328
+ | ("previous_attempt" name) -> ::Integer
329
+ | ("previous_started_time" name) -> ::Google::Protobuf::Timestamp?
330
+
331
+ def []=:
332
+ ("started_event_id" name, (::Integer | ::Float) value) -> void
333
+ | ("attempt" name, (::Integer | ::Float) value) -> void
334
+ | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
335
+ | ("previous_started_event_id" name, (::Integer | ::Float) value) -> void
336
+ | ("failed_tasks" name, (::Google::Protobuf::RepeatedField) value) -> void
337
+ | ("previous_attempt" name, (::Integer | ::Float) value) -> void
338
+ | ("previous_started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
240
339
  end
241
340
 
242
341
  # Attempt to cancel a running activity
@@ -494,6 +494,13 @@ module Temporalio
494
494
  attr_writer original_execution_run_id(): ::String | ::Symbol
495
495
  def clear_original_execution_run_id: () -> void
496
496
 
497
+ # Serialization context of the Nexus operation handler that started this workflow, if any.
498
+ # Lang should use it to serialize the workflow's result and failure, which are returned to the
499
+ # Nexus caller.
500
+ attr_accessor propagated_nexus_serialization_context(): ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
501
+ def has_propagated_nexus_serialization_context?: () -> bool
502
+ def clear_propagated_nexus_serialization_context: () -> void
503
+
497
504
  type init_map = {
498
505
  workflow_type: (::String | ::Symbol)?,
499
506
  "workflow_type" => (::String | ::Symbol)?,
@@ -547,6 +554,8 @@ module Temporalio
547
554
  "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
548
555
  original_execution_run_id: (::String | ::Symbol)?,
549
556
  "original_execution_run_id" => (::String | ::Symbol)?,
557
+ propagated_nexus_serialization_context: (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
558
+ "propagated_nexus_serialization_context" => (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
550
559
  }
551
560
 
552
561
  def initialize: (?init_map initial_value) -> void
@@ -578,6 +587,7 @@ module Temporalio
578
587
  | ("root_workflow" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
579
588
  | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
580
589
  | ("original_execution_run_id" name) -> ::String
590
+ | ("propagated_nexus_serialization_context" name) -> ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
581
591
 
582
592
  def []=:
583
593
  ("workflow_type" name, (::String | ::Symbol) value) -> void
@@ -606,6 +616,7 @@ module Temporalio
606
616
  | ("root_workflow" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
607
617
  | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
608
618
  | ("original_execution_run_id" name, (::String | ::Symbol) value) -> void
619
+ | ("propagated_nexus_serialization_context" name, ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext? value) -> void
609
620
  end
610
621
 
611
622
  # Notify a workflow that a timer has fired
@@ -1124,6 +1135,13 @@ module Temporalio
1124
1135
  attr_accessor run_validator(): bool
1125
1136
  def clear_run_validator: () -> void
1126
1137
 
1138
+ # Serialization context of the Nexus operation handler that sent this update, if any. Lang
1139
+ # should use it to serialize the update's result and failure, which are returned to the Nexus
1140
+ # caller.
1141
+ attr_accessor propagated_nexus_serialization_context(): ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
1142
+ def has_propagated_nexus_serialization_context?: () -> bool
1143
+ def clear_propagated_nexus_serialization_context: () -> void
1144
+
1127
1145
  type init_map = {
1128
1146
  id: (::String | ::Symbol)?,
1129
1147
  "id" => (::String | ::Symbol)?,
@@ -1139,6 +1157,8 @@ module Temporalio
1139
1157
  "meta" => (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?,
1140
1158
  run_validator: bool?,
1141
1159
  "run_validator" => bool?,
1160
+ propagated_nexus_serialization_context: (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
1161
+ "propagated_nexus_serialization_context" => (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
1142
1162
  }
1143
1163
 
1144
1164
  def initialize: (?init_map initial_value) -> void
@@ -1151,6 +1171,7 @@ module Temporalio
1151
1171
  | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
1152
1172
  | ("meta" name) -> ::Temporalio::Api::Update::V1::Meta?
1153
1173
  | ("run_validator" name) -> bool
1174
+ | ("propagated_nexus_serialization_context" name) -> ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
1154
1175
 
1155
1176
  def []=:
1156
1177
  ("id" name, (::String | ::Symbol) value) -> void
@@ -1160,6 +1181,7 @@ module Temporalio
1160
1181
  | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
1161
1182
  | ("meta" name, ::Temporalio::Api::Update::V1::Meta? value) -> void
1162
1183
  | ("run_validator" name, bool value) -> void
1184
+ | ("propagated_nexus_serialization_context" name, ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext? value) -> void
1163
1185
  end
1164
1186
 
1165
1187
  class ResolveNexusOperationStart < ::Google::Protobuf::AbstractMessage
@@ -19,6 +19,7 @@ module Temporalio
19
19
  attr_accessor log_level: String
20
20
  attr_accessor extra_args: Array[String]
21
21
  attr_accessor download_ttl: Float?
22
+ attr_accessor startup_timeout: Float?
22
23
 
23
24
  def initialize: (
24
25
  existing_path: String?,
@@ -35,7 +36,8 @@ module Temporalio
35
36
  log_format: String,
36
37
  log_level: String,
37
38
  extra_args: Array[String],
38
- download_ttl: Float?
39
+ download_ttl: Float?,
40
+ startup_timeout: Float?
39
41
  ) -> void
40
42
  end
41
43
 
@@ -48,6 +50,7 @@ module Temporalio
48
50
  attr_accessor port: Integer?
49
51
  attr_accessor extra_args: Array[String]
50
52
  attr_accessor download_ttl: Float?
53
+ attr_accessor startup_timeout: Float?
51
54
 
52
55
  def initialize: (
53
56
  existing_path: String?,
@@ -57,7 +60,8 @@ module Temporalio
57
60
  download_dest_dir: String?,
58
61
  port: Integer?,
59
62
  extra_args: Array[String],
60
- download_ttl: Float?
63
+ download_ttl: Float?,
64
+ startup_timeout: Float?
61
65
  ) -> void
62
66
  end
63
67
 
@@ -88,4 +92,4 @@ module Temporalio
88
92
  end
89
93
  end
90
94
  end
91
- end
95
+ end
@@ -8,9 +8,9 @@ module Temporalio
8
8
  attr_accessor tuner: TunerOptions
9
9
  attr_accessor identity_override: String?
10
10
  attr_accessor max_cached_workflows: Integer
11
- attr_accessor workflow_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling
11
+ attr_accessor workflow_task_poller_behavior: (PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling)?
12
12
  attr_accessor nonsticky_to_sticky_poll_ratio: Float
13
- attr_accessor activity_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling
13
+ attr_accessor activity_task_poller_behavior: (PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling)?
14
14
  attr_accessor enable_workflows: bool
15
15
  attr_accessor enable_local_activities: bool
16
16
  attr_accessor enable_remote_activities: bool
@@ -34,9 +34,9 @@ module Temporalio
34
34
  tuner: TunerOptions,
35
35
  identity_override: String?,
36
36
  max_cached_workflows: Integer,
37
- workflow_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling,
37
+ workflow_task_poller_behavior: (PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling)?,
38
38
  nonsticky_to_sticky_poll_ratio: Float,
39
- activity_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling,
39
+ activity_task_poller_behavior: (PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling)?,
40
40
  enable_workflows: bool,
41
41
  enable_local_activities: bool,
42
42
  enable_remote_activities: bool,
@@ -28,7 +28,7 @@ module Temporalio
28
28
 
29
29
  def current_update_info: -> Workflow::UpdateInfo?
30
30
 
31
- def deprecate_patch: (Symbol | String patch_id) -> void
31
+ def deprecate_patch: (Symbol | String patch_id, event_groups: Array[Workflow::EventGroup]?) -> void
32
32
 
33
33
  def durable_scheduler_disabled: [T] { -> T } -> T
34
34
 
@@ -48,7 +48,8 @@ module Temporalio
48
48
  disable_eager_execution: bool,
49
49
  priority: Priority,
50
50
  arg_hints: Array[Object]?,
51
- result_hint: Object?
51
+ result_hint: Object?,
52
+ event_groups: Array[Workflow::EventGroup]?
52
53
  ) -> Object?
53
54
 
54
55
  def execute_local_activity: (
@@ -64,7 +65,8 @@ module Temporalio
64
65
  cancellation_type: Workflow::ActivityCancellationType::enum,
65
66
  activity_id: String?,
66
67
  arg_hints: Array[Object]?,
67
- result_hint: Object?
68
+ result_hint: Object?,
69
+ event_groups: Array[Workflow::EventGroup]?
68
70
  ) -> Object?
69
71
 
70
72
  def external_workflow_handle: (String workflow_id, ?run_id: String?) -> ExternalWorkflowHandle
@@ -87,7 +89,7 @@ module Temporalio
87
89
 
88
90
  def now: -> Time
89
91
 
90
- def patched: (Symbol | String patch_id) -> bool
92
+ def patched: (Symbol | String patch_id, event_groups: Array[Workflow::EventGroup]?) -> bool
91
93
 
92
94
  def payload_converter: -> Converters::PayloadConverter
93
95
 
@@ -103,7 +105,7 @@ module Temporalio
103
105
 
104
106
  def signal_handlers: -> HandlerHash[Workflow::Definition::Signal]
105
107
 
106
- def sleep: (duration? duration, summary: String?, cancellation: Cancellation) -> void
108
+ def sleep: (duration? duration, summary: String?, cancellation: Cancellation, event_groups: Array[Workflow::EventGroup]?) -> void
107
109
 
108
110
  def start_child_workflow: (
109
111
  singleton(Workflow::Definition) | Workflow::Definition::Info | Symbol | String workflow,
@@ -126,27 +128,29 @@ module Temporalio
126
128
  priority: Priority,
127
129
  versioning_override: VersioningOverride?,
128
130
  arg_hints: Array[Object]?,
129
- result_hint: Object?
131
+ result_hint: Object?,
132
+ event_groups: Array[Workflow::EventGroup]?
130
133
  ) -> ChildWorkflowHandle
131
134
 
132
135
  def storage: -> Hash[Object, Object]
133
136
 
134
137
  def timeout: [T] (
135
138
  duration? duration,
136
- singleton(Exception) exception_class,
139
+ (singleton(Exception) | Exception) exception_class,
137
140
  *Object? exception_args,
138
- summary: String?
141
+ summary: String?,
142
+ event_groups: Array[Workflow::EventGroup]?
139
143
  ) { -> T } -> T
140
144
 
141
145
  def update_handlers: -> HandlerHash[Workflow::Definition::Update]
142
146
 
143
- def upsert_memo: (Hash[Symbol | String, Object?] hash) -> void
147
+ def upsert_memo: (Hash[Symbol | String, Object?] hash, event_groups: Array[Workflow::EventGroup]?) -> void
144
148
 
145
- def upsert_search_attributes: (*SearchAttributes::Update updates) -> void
149
+ def upsert_search_attributes: (*SearchAttributes::Update updates, event_groups: Array[Workflow::EventGroup]?) -> void
146
150
 
147
151
  def wait_condition: [T] (cancellation: Cancellation?) { -> T } -> T
148
152
 
149
- def _cancel_external_workflow: (id: String, run_id: String?) -> void
153
+ def _cancel_external_workflow: (id: String, run_id: String?, event_groups: Array[Workflow::EventGroup]?) -> void
150
154
 
151
155
  def _outbound=: (Temporalio::Worker::Interceptor::Workflow::Outbound outbound) -> void
152
156
 
@@ -155,7 +159,8 @@ module Temporalio
155
159
  signal: Workflow::Definition::Signal | Symbol | String,
156
160
  args: Array[Object?],
157
161
  cancellation: Cancellation,
158
- arg_hints: Array[Object]?
162
+ arg_hints: Array[Object]?,
163
+ event_groups: Array[Workflow::EventGroup]?
159
164
  ) -> void
160
165
 
161
166
  def _signal_external_workflow: (
@@ -164,7 +169,8 @@ module Temporalio
164
169
  signal: Workflow::Definition::Signal | Symbol | String,
165
170
  args: Array[Object?],
166
171
  cancellation: Cancellation,
167
- arg_hints: Array[Object]?
172
+ arg_hints: Array[Object]?,
173
+ event_groups: Array[Workflow::EventGroup]?
168
174
  ) -> void
169
175
  end
170
176
  end
@@ -16,7 +16,8 @@ module Temporalio
16
16
  ?summary: String?,
17
17
  ?cancellation: Cancellation,
18
18
  ?arg_hint: Object?,
19
- ?result_hint: Object?
19
+ ?result_hint: Object?,
20
+ ?event_groups: Array[Workflow::EventGroup]?
20
21
  ) -> Workflow::NexusOperationHandle
21
22
  end
22
23
  end
@@ -8,15 +8,17 @@ module Temporalio
8
8
  def execute_activity_with_local_backoffs: (
9
9
  local: bool,
10
10
  cancellation: Cancellation,
11
- result_hint: Object?
12
- ) { (untyped?) -> Integer } -> Object?
11
+ result_hint: Object?,
12
+ event_groups: Array[Workflow::EventGroup]?
13
+ ) { (untyped?, Array[Api::Sdk::V1::EventGroupMarker]) -> Integer } -> Object?
13
14
 
14
15
  def execute_activity_once: (
15
16
  local: bool,
16
17
  cancellation: Cancellation,
17
18
  last_local_backoff: untyped?,
18
- result_hint: Object?
19
- ) { (untyped?) -> Integer } -> Object?
19
+ result_hint: Object?,
20
+ event_group_markers: Array[Api::Sdk::V1::EventGroupMarker]
21
+ ) { (untyped?, Array[Api::Sdk::V1::EventGroupMarker]) -> Integer } -> Object?
20
22
 
21
23
  def _signal_external_workflow: (
22
24
  id: String,
@@ -26,7 +28,8 @@ module Temporalio
26
28
  args: Array[Object?],
27
29
  cancellation: Cancellation,
28
30
  arg_hints: Array[Object]?,
29
- headers: Hash[String, Object?]
31
+ headers: Hash[String, Object?],
32
+ event_groups: Array[Workflow::EventGroup]?
30
33
  ) -> void
31
34
  end
32
35
  end
@@ -30,7 +30,7 @@ module Temporalio
30
30
  # Only needed to say block is required
31
31
  def timeout_after: [T] (
32
32
  duration? duration,
33
- singleton(Exception) exception_class,
33
+ (singleton(Exception) | Exception) exception_class,
34
34
  *Object? exception_args
35
35
  ) { -> T } -> T
36
36
 
@@ -41,6 +41,7 @@ module Temporalio
41
41
  attr_reader in_query_or_validator: bool
42
42
  attr_reader random_disabled: bool
43
43
  attr_reader patch_activation_callback: Proc?
44
+ attr_reader check_conditions: bool
44
45
 
45
46
  attr_accessor io_enabled: bool
46
47
  attr_accessor current_details: String?
@@ -61,7 +62,7 @@ module Temporalio
61
62
 
62
63
  def illegal_call_tracing_disabled: [T] { -> T } -> T
63
64
 
64
- def patch: (patch_id: Symbol | String, deprecated: bool) -> bool
65
+ def patch: (patch_id: Symbol | String, deprecated: bool, ?event_groups: Array[Workflow::EventGroup]?) -> bool
65
66
 
66
67
  def patch_activated?: (String patch_id) -> bool
67
68
 
@@ -22,7 +22,8 @@ module Temporalio
22
22
  ?dev_server_download_version: String,
23
23
  ?dev_server_download_dest_dir: String?,
24
24
  ?dev_server_extra_args: Array[String],
25
- ?dev_server_download_ttl: Float?
25
+ ?dev_server_download_ttl: Float?,
26
+ ?dev_server_startup_timeout: Float?
26
27
  ) -> WorkflowEnvironment
27
28
  | [T] (
28
29
  ?namespace: String,
@@ -43,7 +44,8 @@ module Temporalio
43
44
  ?dev_server_download_version: String,
44
45
  ?dev_server_download_dest_dir: String?,
45
46
  ?dev_server_extra_args: Array[String],
46
- ?dev_server_download_ttl: Float?
47
+ ?dev_server_download_ttl: Float?,
48
+ ?dev_server_startup_timeout: Float?
47
49
  ) { (WorkflowEnvironment) -> T } -> T
48
50
 
49
51
  def self.start_time_skipping: (
@@ -57,7 +59,8 @@ module Temporalio
57
59
  ?test_server_download_version: String,
58
60
  ?test_server_download_dest_dir: String?,
59
61
  ?test_server_extra_args: Array[String],
60
- ?test_server_download_ttl: Float?
62
+ ?test_server_download_ttl: Float?,
63
+ ?test_server_startup_timeout: Float?
61
64
  ) -> WorkflowEnvironment
62
65
  | [T] (
63
66
  ?data_converter: Converters::DataConverter,
@@ -70,7 +73,8 @@ module Temporalio
70
73
  ?test_server_download_version: String,
71
74
  ?test_server_download_dest_dir: String?,
72
75
  ?test_server_extra_args: Array[String],
73
- ?test_server_download_ttl: Float?
76
+ ?test_server_download_ttl: Float?,
77
+ ?test_server_startup_timeout: Float?
74
78
  ) { (WorkflowEnvironment) -> T } -> T
75
79
 
76
80
  def self._with_core_server: (
@@ -125,10 +125,12 @@ module Temporalio
125
125
  class CancelExternalWorkflowInput
126
126
  attr_reader id: String
127
127
  attr_reader run_id: String?
128
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
128
129
 
129
130
  def initialize: (
130
131
  id: String,
131
- run_id: String?
132
+ run_id: String?,
133
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
132
134
  ) -> void
133
135
  end
134
136
 
@@ -150,6 +152,7 @@ module Temporalio
150
152
  attr_reader arg_hints: Array[Object]?
151
153
  attr_reader result_hint: Object?
152
154
  attr_reader headers: Hash[String, Object?]
155
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
153
156
 
154
157
  def initialize: (
155
158
  activity: String,
@@ -168,7 +171,8 @@ module Temporalio
168
171
  priority: Temporalio::Priority,
169
172
  arg_hints: Array[Object]?,
170
173
  result_hint: Object?,
171
- headers: Hash[String, Object?]
174
+ headers: Hash[String, Object?],
175
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
172
176
  ) -> void
173
177
  end
174
178
 
@@ -187,6 +191,7 @@ module Temporalio
187
191
  attr_reader arg_hints: Array[Object]?
188
192
  attr_reader result_hint: Object?
189
193
  attr_reader headers: Hash[String, Object?]
194
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
190
195
 
191
196
  def initialize: (
192
197
  activity: String,
@@ -202,7 +207,8 @@ module Temporalio
202
207
  activity_id: String?,
203
208
  arg_hints: Array[Object]?,
204
209
  result_hint: Object?,
205
- headers: Hash[String, Object?]
210
+ headers: Hash[String, Object?],
211
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
206
212
  ) -> void
207
213
  end
208
214
 
@@ -221,6 +227,7 @@ module Temporalio
221
227
  attr_reader cancellation: Cancellation
222
228
  attr_reader arg_hints: Array[Object]?
223
229
  attr_reader headers: Hash[String, Object?]
230
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
224
231
 
225
232
  def initialize: (
226
233
  id: String,
@@ -228,7 +235,8 @@ module Temporalio
228
235
  args: Array[Object?],
229
236
  cancellation: Cancellation,
230
237
  arg_hints: Array[Object]?,
231
- headers: Hash[String, Object?]
238
+ headers: Hash[String, Object?],
239
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
232
240
  ) -> void
233
241
  end
234
242
 
@@ -240,6 +248,7 @@ module Temporalio
240
248
  attr_reader cancellation: Cancellation
241
249
  attr_reader arg_hints: Array[Object]?
242
250
  attr_reader headers: Hash[String, Object?]
251
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
243
252
 
244
253
  def initialize: (
245
254
  id: String,
@@ -248,7 +257,8 @@ module Temporalio
248
257
  args: Array[Object?],
249
258
  cancellation: Cancellation,
250
259
  arg_hints: Array[Object]?,
251
- headers: Hash[String, Object?]
260
+ headers: Hash[String, Object?],
261
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
252
262
  ) -> void
253
263
  end
254
264
 
@@ -256,11 +266,13 @@ module Temporalio
256
266
  attr_reader duration: duration?
257
267
  attr_reader summary: String?
258
268
  attr_reader cancellation: Cancellation
269
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
259
270
 
260
271
  def initialize: (
261
272
  duration: duration?,
262
273
  summary: String?,
263
- cancellation: Cancellation
274
+ cancellation: Cancellation,
275
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
264
276
  ) -> void
265
277
  end
266
278
 
@@ -287,6 +299,7 @@ module Temporalio
287
299
  attr_reader arg_hints: Array[Object]?
288
300
  attr_reader result_hint: Object?
289
301
  attr_reader headers: Hash[String, Object?]
302
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
290
303
 
291
304
  def initialize: (
292
305
  workflow: String,
@@ -310,7 +323,8 @@ module Temporalio
310
323
  versioning_override: VersioningOverride?,
311
324
  arg_hints: Array[Object]?,
312
325
  result_hint: Object?,
313
- headers: Hash[String, Object?]
326
+ headers: Hash[String, Object?],
327
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
314
328
  ) -> void
315
329
  end
316
330
 
@@ -328,6 +342,7 @@ module Temporalio
328
342
  attr_reader arg_hint: Object?
329
343
  attr_reader result_hint: Object?
330
344
  attr_reader headers: Hash[String, String]
345
+ attr_reader event_groups: Array[Temporalio::Workflow::EventGroup]?
331
346
 
332
347
  def initialize: (
333
348
  endpoint: String,
@@ -342,7 +357,8 @@ module Temporalio
342
357
  cancellation: Cancellation,
343
358
  arg_hint: Object?,
344
359
  result_hint: Object?,
345
- headers: Hash[String, String]
360
+ headers: Hash[String, String],
361
+ event_groups: Array[Temporalio::Workflow::EventGroup]?
346
362
  ) -> void
347
363
  end
348
364