temporalio 1.9.0-aarch64-linux → 1.10.0-aarch64-linux
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/Rakefile +28 -0
- data/lib/temporalio/api/activity/v1/message.rb +2 -1
- data/lib/temporalio/api/callback/v1/message.rb +1 -1
- data/lib/temporalio/api/common/v1/message.rb +3 -1
- data/lib/temporalio/api/compute/v1/config.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +1 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +2 -1
- data/lib/temporalio/api/export/v1/message.rb +4 -1
- data/lib/temporalio/api/history/v1/message.rb +2 -1
- data/lib/temporalio/api/nexus/v1/message.rb +2 -1
- data/lib/temporalio/api/nexusoperation/v1/message.rb +26 -0
- data/lib/temporalio/api/notificationservice/v1/request_response.rb +25 -0
- data/lib/temporalio/api/payload_visitor.rb +54 -0
- data/lib/temporalio/api/replication/v1/message.rb +2 -1
- data/lib/temporalio/api/update/v1/message.rb +2 -1
- data/lib/temporalio/api/worker/v1/message.rb +1 -1
- data/lib/temporalio/api/workflow/v1/message.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +2 -1
- data/lib/temporalio/client/schedule.rb +8 -7
- data/lib/temporalio/client/with_start_workflow_operation.rb +1 -1
- data/lib/temporalio/client.rb +4 -4
- data/lib/temporalio/converters/external_storage.rb +90 -0
- data/lib/temporalio/converters/external_storage_concurrency.rb +52 -0
- data/lib/temporalio/converters/storage_driver.rb +56 -0
- data/lib/temporalio/converters/storage_driver_activity_info.rb +38 -0
- data/lib/temporalio/converters/storage_driver_claim.rb +30 -0
- data/lib/temporalio/converters/storage_driver_limiter.rb +37 -0
- data/lib/temporalio/converters/storage_driver_retrieve_context.rb +30 -0
- data/lib/temporalio/converters/storage_driver_select_context.rb +26 -0
- data/lib/temporalio/converters/storage_driver_store_context.rb +31 -0
- data/lib/temporalio/converters/storage_driver_workflow_info.rb +40 -0
- data/lib/temporalio/converters.rb +11 -0
- data/lib/temporalio/error/failure.rb +16 -0
- data/lib/temporalio/error.rb +17 -0
- data/lib/temporalio/internal/bridge/3.3/temporalio_bridge.so +2 -2
- data/lib/temporalio/internal/bridge/3.4/temporalio_bridge.so +2 -2
- data/lib/temporalio/internal/bridge/4.0/temporalio_bridge.so +2 -2
- data/lib/temporalio/internal/bridge/api/activity_result/activity_result.rb +2 -1
- data/lib/temporalio/internal/bridge/api/child_workflow/child_workflow.rb +1 -1
- data/lib/temporalio/internal/bridge/api/external_data/external_data.rb +1 -1
- data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +2 -1
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +3 -1
- data/lib/temporalio/internal/external_storage_references.rb +62 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
- data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +21 -3
- data/lib/temporalio/testing/activity_environment.rb +1 -1
- data/lib/temporalio/testing/workflow_environment.rb +4 -4
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/versioning_override.rb +28 -1
- data/lib/temporalio/worker/interceptor.rb +1 -0
- data/lib/temporalio/workflow.rb +14 -4
- data/rbi/temporalio/api/activity/v1/message.rbi +39 -2
- data/rbi/temporalio/api/callback/v1/message.rbi +22 -2
- data/rbi/temporalio/api/common/v1/message.rbi +294 -4
- data/rbi/temporalio/api/compute/v1/config.rbi +39 -5
- data/rbi/temporalio/api/enums/v1/common.rbi +1 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +20 -0
- data/rbi/temporalio/api/export/v1/message.rbi +136 -2
- data/rbi/temporalio/api/history/v1/message.rbi +38 -4
- data/rbi/temporalio/api/nexus/v1/message.rbi +88 -0
- data/rbi/temporalio/api/nexusoperation/v1/message.rbi +287 -0
- data/rbi/temporalio/api/notificationservice/v1/request_response.rbi +151 -0
- data/rbi/temporalio/api/payload_visitor.rbi +21 -0
- data/rbi/temporalio/api/replication/v1/message.rbi +22 -2
- data/rbi/temporalio/api/update/v1/message.rbi +19 -2
- data/rbi/temporalio/api/worker/v1/message.rbi +2 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +41 -4
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +294 -20
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +0 -13
- data/rbi/temporalio/client/schedule.rbi +2 -2
- data/rbi/temporalio/converters/external_storage.rbi +49 -0
- data/rbi/temporalio/converters/external_storage_concurrency.rbi +26 -0
- data/rbi/temporalio/converters/storage_driver.rbi +27 -0
- data/rbi/temporalio/converters/storage_driver_activity_info.rbi +36 -0
- data/rbi/temporalio/converters/storage_driver_claim.rbi +20 -0
- data/rbi/temporalio/converters/storage_driver_limiter.rbi +13 -0
- data/rbi/temporalio/converters/storage_driver_retrieve_context.rbi +23 -0
- data/rbi/temporalio/converters/storage_driver_select_context.rbi +42 -0
- data/rbi/temporalio/converters/storage_driver_store_context.rbi +46 -0
- data/rbi/temporalio/converters/storage_driver_workflow_info.rbi +36 -0
- data/rbi/temporalio/error.rbi +17 -0
- data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +41 -2
- data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +2 -0
- data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +29 -2
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +88 -14
- data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +91 -6
- data/rbi/temporalio/internal/external_storage_references.rbi +26 -0
- data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +2 -0
- data/rbi/temporalio/versioning_override.rbi +8 -0
- data/rbi/temporalio/worker/interceptor.rbi +3 -0
- data/rbi/temporalio/workflow.rbi +4 -0
- data/sig/temporalio/api/activity/v1/message.rbs +18 -0
- data/sig/temporalio/api/callback/v1/message.rbs +10 -0
- data/sig/temporalio/api/common/v1/message.rbs +133 -4
- data/sig/temporalio/api/compute/v1/config.rbs +17 -1
- data/sig/temporalio/api/enums/v1/common.rbs +7 -4
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +42 -5
- data/sig/temporalio/api/export/v1/message.rbs +50 -2
- data/sig/temporalio/api/history/v1/message.rbs +19 -0
- data/sig/temporalio/api/nexus/v1/message.rbs +37 -0
- data/sig/temporalio/api/nexusoperation/v1/message.rbs +125 -0
- data/sig/temporalio/api/notificationservice/v1/request_response.rbs +81 -0
- data/sig/temporalio/api/payload_visitor.rbs +7 -0
- data/sig/temporalio/api/replication/v1/message.rbs +11 -0
- data/sig/temporalio/api/update/v1/message.rbs +9 -0
- data/sig/temporalio/api/worker/v1/message.rbs +9 -3
- data/sig/temporalio/api/workflow/v1/message.rbs +19 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +136 -0
- data/sig/temporalio/client/schedule.rbs +3 -2
- data/sig/temporalio/converters/external_storage.rbs +25 -0
- data/sig/temporalio/converters/external_storage_concurrency.rbs +16 -0
- data/sig/temporalio/converters/storage_driver.rbs +16 -0
- data/sig/temporalio/converters/storage_driver_activity_info.rbs +17 -0
- data/sig/temporalio/converters/storage_driver_claim.rbs +9 -0
- data/sig/temporalio/converters/storage_driver_limiter.rbs +7 -0
- data/sig/temporalio/converters/storage_driver_retrieve_context.rbs +13 -0
- data/sig/temporalio/converters/storage_driver_select_context.rbs +13 -0
- data/sig/temporalio/converters/storage_driver_store_context.rbs +15 -0
- data/sig/temporalio/converters/storage_driver_target_info.rbs +5 -0
- data/sig/temporalio/converters/storage_driver_workflow_info.rbs +17 -0
- data/sig/temporalio/error/failure.rbs +8 -0
- data/sig/temporalio/error.rbs +4 -0
- data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +46 -0
- data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +7 -3
- data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +16 -0
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +42 -2
- data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +42 -0
- data/sig/temporalio/internal/external_storage_references.rbs +18 -0
- data/sig/temporalio/internal/worker/workflow_instance/context.rbs +1 -0
- data/sig/temporalio/testing/activity_environment.rbs +1 -1
- data/sig/temporalio/versioning_override.rbs +7 -0
- data/sig/temporalio/worker/interceptor.rbs +2 -0
- data/sig/temporalio/workflow.rbs +2 -0
- data/temporalio.gemspec +1 -0
- metadata +56 -2
|
@@ -704,7 +704,8 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow
|
|
|
704
704
|
search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
|
|
705
705
|
start_time: T.nilable(Google::Protobuf::Timestamp),
|
|
706
706
|
root_workflow: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
|
|
707
|
-
priority: T.nilable(Temporalio::Api::Common::V1::Priority)
|
|
707
|
+
priority: T.nilable(Temporalio::Api::Common::V1::Priority),
|
|
708
|
+
original_execution_run_id: T.nilable(String)
|
|
708
709
|
).void
|
|
709
710
|
end
|
|
710
711
|
def initialize(
|
|
@@ -732,7 +733,8 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow
|
|
|
732
733
|
search_attributes: nil,
|
|
733
734
|
start_time: nil,
|
|
734
735
|
root_workflow: nil,
|
|
735
|
-
priority: nil
|
|
736
|
+
priority: nil,
|
|
737
|
+
original_execution_run_id: ""
|
|
736
738
|
)
|
|
737
739
|
end
|
|
738
740
|
|
|
@@ -1150,6 +1152,27 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow
|
|
|
1150
1152
|
def clear_priority
|
|
1151
1153
|
end
|
|
1152
1154
|
|
|
1155
|
+
# The run id recorded on the `WORKFLOW_EXECUTION_STARTED` event. Unlike the execution's current
|
|
1156
|
+
# run id, this value is preserved across workflow resets. Mirrors the `original_execution_run_id`
|
|
1157
|
+
# field from `WorkflowExecutionStartedEventAttributes`.
|
|
1158
|
+
sig { returns(String) }
|
|
1159
|
+
def original_execution_run_id
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
# The run id recorded on the `WORKFLOW_EXECUTION_STARTED` event. Unlike the execution's current
|
|
1163
|
+
# run id, this value is preserved across workflow resets. Mirrors the `original_execution_run_id`
|
|
1164
|
+
# field from `WorkflowExecutionStartedEventAttributes`.
|
|
1165
|
+
sig { params(value: String).void }
|
|
1166
|
+
def original_execution_run_id=(value)
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# The run id recorded on the `WORKFLOW_EXECUTION_STARTED` event. Unlike the execution's current
|
|
1170
|
+
# run id, this value is preserved across workflow resets. Mirrors the `original_execution_run_id`
|
|
1171
|
+
# field from `WorkflowExecutionStartedEventAttributes`.
|
|
1172
|
+
sig { void }
|
|
1173
|
+
def clear_original_execution_run_id
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1153
1176
|
sig { params(field: String).returns(T.untyped) }
|
|
1154
1177
|
def [](field)
|
|
1155
1178
|
end
|
|
@@ -1995,14 +2018,16 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow
|
|
|
1995
2018
|
signal_name: T.nilable(String),
|
|
1996
2019
|
input: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Payload)]),
|
|
1997
2020
|
identity: T.nilable(String),
|
|
1998
|
-
headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
|
|
2021
|
+
headers: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
|
|
2022
|
+
originating_event_id: T.nilable(Integer)
|
|
1999
2023
|
).void
|
|
2000
2024
|
end
|
|
2001
2025
|
def initialize(
|
|
2002
2026
|
signal_name: "",
|
|
2003
2027
|
input: [],
|
|
2004
2028
|
identity: "",
|
|
2005
|
-
headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
|
|
2029
|
+
headers: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
|
|
2030
|
+
originating_event_id: 0
|
|
2006
2031
|
)
|
|
2007
2032
|
end
|
|
2008
2033
|
|
|
@@ -2060,6 +2085,21 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow
|
|
|
2060
2085
|
def clear_headers
|
|
2061
2086
|
end
|
|
2062
2087
|
|
|
2088
|
+
# Event ID of the `WORKFLOW_EXECUTION_SIGNALED` history event that produced this job.
|
|
2089
|
+
sig { returns(Integer) }
|
|
2090
|
+
def originating_event_id
|
|
2091
|
+
end
|
|
2092
|
+
|
|
2093
|
+
# Event ID of the `WORKFLOW_EXECUTION_SIGNALED` history event that produced this job.
|
|
2094
|
+
sig { params(value: Integer).void }
|
|
2095
|
+
def originating_event_id=(value)
|
|
2096
|
+
end
|
|
2097
|
+
|
|
2098
|
+
# Event ID of the `WORKFLOW_EXECUTION_SIGNALED` history event that produced this job.
|
|
2099
|
+
sig { void }
|
|
2100
|
+
def clear_originating_event_id
|
|
2101
|
+
end
|
|
2102
|
+
|
|
2063
2103
|
sig { params(field: String).returns(T.untyped) }
|
|
2064
2104
|
def [](field)
|
|
2065
2105
|
end
|
|
@@ -2161,12 +2201,14 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExtern
|
|
|
2161
2201
|
sig do
|
|
2162
2202
|
params(
|
|
2163
2203
|
seq: T.nilable(Integer),
|
|
2164
|
-
failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
|
|
2204
|
+
failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
|
|
2205
|
+
cause: T.nilable(T.any(Symbol, String, Integer))
|
|
2165
2206
|
).void
|
|
2166
2207
|
end
|
|
2167
2208
|
def initialize(
|
|
2168
2209
|
seq: 0,
|
|
2169
|
-
failure: nil
|
|
2210
|
+
failure: nil,
|
|
2211
|
+
cause: :SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED
|
|
2170
2212
|
)
|
|
2171
2213
|
end
|
|
2172
2214
|
|
|
@@ -2206,6 +2248,24 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExtern
|
|
|
2206
2248
|
def clear_failure
|
|
2207
2249
|
end
|
|
2208
2250
|
|
|
2251
|
+
# The server-reported cause when the signal failed. Unspecified when the signal succeeded or
|
|
2252
|
+
# was cancelled before being sent.
|
|
2253
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
2254
|
+
def cause
|
|
2255
|
+
end
|
|
2256
|
+
|
|
2257
|
+
# The server-reported cause when the signal failed. Unspecified when the signal succeeded or
|
|
2258
|
+
# was cancelled before being sent.
|
|
2259
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
2260
|
+
def cause=(value)
|
|
2261
|
+
end
|
|
2262
|
+
|
|
2263
|
+
# The server-reported cause when the signal failed. Unspecified when the signal succeeded or
|
|
2264
|
+
# was cancelled before being sent.
|
|
2265
|
+
sig { void }
|
|
2266
|
+
def clear_cause
|
|
2267
|
+
end
|
|
2268
|
+
|
|
2209
2269
|
sig { params(field: String).returns(T.untyped) }
|
|
2210
2270
|
def [](field)
|
|
2211
2271
|
end
|
|
@@ -2246,12 +2306,14 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCance
|
|
|
2246
2306
|
sig do
|
|
2247
2307
|
params(
|
|
2248
2308
|
seq: T.nilable(Integer),
|
|
2249
|
-
failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
|
|
2309
|
+
failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
|
|
2310
|
+
cause: T.nilable(T.any(Symbol, String, Integer))
|
|
2250
2311
|
).void
|
|
2251
2312
|
end
|
|
2252
2313
|
def initialize(
|
|
2253
2314
|
seq: 0,
|
|
2254
|
-
failure: nil
|
|
2315
|
+
failure: nil,
|
|
2316
|
+
cause: :CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED
|
|
2255
2317
|
)
|
|
2256
2318
|
end
|
|
2257
2319
|
|
|
@@ -2273,24 +2335,36 @@ class Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCance
|
|
|
2273
2335
|
def clear_seq
|
|
2274
2336
|
end
|
|
2275
2337
|
|
|
2276
|
-
# If populated,
|
|
2277
|
-
# type / info.
|
|
2338
|
+
# If populated, the cancellation request failed.
|
|
2278
2339
|
sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
|
|
2279
2340
|
def failure
|
|
2280
2341
|
end
|
|
2281
2342
|
|
|
2282
|
-
# If populated,
|
|
2283
|
-
# type / info.
|
|
2343
|
+
# If populated, the cancellation request failed.
|
|
2284
2344
|
sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
|
|
2285
2345
|
def failure=(value)
|
|
2286
2346
|
end
|
|
2287
2347
|
|
|
2288
|
-
# If populated,
|
|
2289
|
-
# type / info.
|
|
2348
|
+
# If populated, the cancellation request failed.
|
|
2290
2349
|
sig { void }
|
|
2291
2350
|
def clear_failure
|
|
2292
2351
|
end
|
|
2293
2352
|
|
|
2353
|
+
# The server-reported cause when the cancellation request failed.
|
|
2354
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
2355
|
+
def cause
|
|
2356
|
+
end
|
|
2357
|
+
|
|
2358
|
+
# The server-reported cause when the cancellation request failed.
|
|
2359
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
2360
|
+
def cause=(value)
|
|
2361
|
+
end
|
|
2362
|
+
|
|
2363
|
+
# The server-reported cause when the cancellation request failed.
|
|
2364
|
+
sig { void }
|
|
2365
|
+
def clear_cause
|
|
2366
|
+
end
|
|
2367
|
+
|
|
2294
2368
|
sig { params(field: String).returns(T.untyped) }
|
|
2295
2369
|
def [](field)
|
|
2296
2370
|
end
|
|
@@ -9,6 +9,7 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand
|
|
|
9
9
|
sig do
|
|
10
10
|
params(
|
|
11
11
|
user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata),
|
|
12
|
+
event_group_markers: T.nilable(T::Array[T.nilable(Temporalio::Api::Sdk::V1::EventGroupMarker)]),
|
|
12
13
|
start_timer: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer),
|
|
13
14
|
schedule_activity: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity),
|
|
14
15
|
respond_to_query: T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult),
|
|
@@ -35,6 +36,7 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand
|
|
|
35
36
|
end
|
|
36
37
|
def initialize(
|
|
37
38
|
user_metadata: nil,
|
|
39
|
+
event_group_markers: [],
|
|
38
40
|
start_timer: nil,
|
|
39
41
|
schedule_activity: nil,
|
|
40
42
|
respond_to_query: nil,
|
|
@@ -81,6 +83,27 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand
|
|
|
81
83
|
def clear_user_metadata
|
|
82
84
|
end
|
|
83
85
|
|
|
86
|
+
# Event group markers attached to the command. These are forwarded onto
|
|
87
|
+
# the corresponding server-side Command, and consequently surfaced on the
|
|
88
|
+
# resulting HistoryEvent. See `temporal/api/sdk/v1/event_group_marker.proto`.
|
|
89
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Sdk::V1::EventGroupMarker)]) }
|
|
90
|
+
def event_group_markers
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Event group markers attached to the command. These are forwarded onto
|
|
94
|
+
# the corresponding server-side Command, and consequently surfaced on the
|
|
95
|
+
# resulting HistoryEvent. See `temporal/api/sdk/v1/event_group_marker.proto`.
|
|
96
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
97
|
+
def event_group_markers=(value)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Event group markers attached to the command. These are forwarded onto
|
|
101
|
+
# the corresponding server-side Command, and consequently surfaced on the
|
|
102
|
+
# resulting HistoryEvent. See `temporal/api/sdk/v1/event_group_marker.proto`.
|
|
103
|
+
sig { void }
|
|
104
|
+
def clear_event_group_markers
|
|
105
|
+
end
|
|
106
|
+
|
|
84
107
|
sig { returns(T.nilable(Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer)) }
|
|
85
108
|
def start_timer
|
|
86
109
|
end
|
|
@@ -856,7 +879,8 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity
|
|
|
856
879
|
start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
|
|
857
880
|
retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
|
|
858
881
|
local_retry_threshold: T.nilable(Google::Protobuf::Duration),
|
|
859
|
-
cancellation_type: T.nilable(T.any(Symbol, String, Integer))
|
|
882
|
+
cancellation_type: T.nilable(T.any(Symbol, String, Integer)),
|
|
883
|
+
include_arguments_in_marker: T.nilable(T::Boolean)
|
|
860
884
|
).void
|
|
861
885
|
end
|
|
862
886
|
def initialize(
|
|
@@ -872,7 +896,8 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity
|
|
|
872
896
|
start_to_close_timeout: nil,
|
|
873
897
|
retry_policy: nil,
|
|
874
898
|
local_retry_threshold: nil,
|
|
875
|
-
cancellation_type: :TRY_CANCEL
|
|
899
|
+
cancellation_type: :TRY_CANCEL,
|
|
900
|
+
include_arguments_in_marker: false
|
|
876
901
|
)
|
|
877
902
|
end
|
|
878
903
|
|
|
@@ -1113,6 +1138,27 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity
|
|
|
1113
1138
|
def clear_cancellation_type
|
|
1114
1139
|
end
|
|
1115
1140
|
|
|
1141
|
+
# If set, the local activity arguments will be included in the resulting marker under the
|
|
1142
|
+
# `input` key. This is disabled by default to avoid increasing history size unless the lang
|
|
1143
|
+
# SDK explicitly chooses to expose it.
|
|
1144
|
+
sig { returns(T::Boolean) }
|
|
1145
|
+
def include_arguments_in_marker
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# If set, the local activity arguments will be included in the resulting marker under the
|
|
1149
|
+
# `input` key. This is disabled by default to avoid increasing history size unless the lang
|
|
1150
|
+
# SDK explicitly chooses to expose it.
|
|
1151
|
+
sig { params(value: T::Boolean).void }
|
|
1152
|
+
def include_arguments_in_marker=(value)
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
# If set, the local activity arguments will be included in the resulting marker under the
|
|
1156
|
+
# `input` key. This is disabled by default to avoid increasing history size unless the lang
|
|
1157
|
+
# SDK explicitly chooses to expose it.
|
|
1158
|
+
sig { void }
|
|
1159
|
+
def clear_include_arguments_in_marker
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1116
1162
|
sig { params(field: String).returns(T.untyped) }
|
|
1117
1163
|
def [](field)
|
|
1118
1164
|
end
|
|
@@ -1817,8 +1863,27 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecuti
|
|
|
1817
1863
|
include ::Google::Protobuf::MessageExts
|
|
1818
1864
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1819
1865
|
|
|
1820
|
-
sig
|
|
1821
|
-
|
|
1866
|
+
sig do
|
|
1867
|
+
params(
|
|
1868
|
+
details: T.nilable(Temporalio::Api::Common::V1::Payloads)
|
|
1869
|
+
).void
|
|
1870
|
+
end
|
|
1871
|
+
def initialize(
|
|
1872
|
+
details: nil
|
|
1873
|
+
)
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
|
|
1877
|
+
def details
|
|
1878
|
+
end
|
|
1879
|
+
|
|
1880
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
|
|
1881
|
+
def details=(value)
|
|
1882
|
+
end
|
|
1883
|
+
|
|
1884
|
+
sig { void }
|
|
1885
|
+
def clear_details
|
|
1886
|
+
end
|
|
1822
1887
|
|
|
1823
1888
|
sig { params(field: String).returns(T.untyped) }
|
|
1824
1889
|
def [](field)
|
|
@@ -1967,7 +2032,8 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExe
|
|
|
1967
2032
|
search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
|
|
1968
2033
|
cancellation_type: T.nilable(T.any(Symbol, String, Integer)),
|
|
1969
2034
|
versioning_intent: T.nilable(T.any(Symbol, String, Integer)),
|
|
1970
|
-
priority: T.nilable(Temporalio::Api::Common::V1::Priority)
|
|
2035
|
+
priority: T.nilable(Temporalio::Api::Common::V1::Priority),
|
|
2036
|
+
versioning_override: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)
|
|
1971
2037
|
).void
|
|
1972
2038
|
end
|
|
1973
2039
|
def initialize(
|
|
@@ -1989,7 +2055,8 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExe
|
|
|
1989
2055
|
search_attributes: nil,
|
|
1990
2056
|
cancellation_type: :ABANDON,
|
|
1991
2057
|
versioning_intent: :UNSPECIFIED,
|
|
1992
|
-
priority: nil
|
|
2058
|
+
priority: nil,
|
|
2059
|
+
versioning_override: nil
|
|
1993
2060
|
)
|
|
1994
2061
|
end
|
|
1995
2062
|
|
|
@@ -2260,6 +2327,24 @@ class Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExe
|
|
|
2260
2327
|
def clear_priority
|
|
2261
2328
|
end
|
|
2262
2329
|
|
|
2330
|
+
# Allows routing the child independently of the parent's worker deployment version.
|
|
2331
|
+
# Requires Temporal Server 1.32+.
|
|
2332
|
+
sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)) }
|
|
2333
|
+
def versioning_override
|
|
2334
|
+
end
|
|
2335
|
+
|
|
2336
|
+
# Allows routing the child independently of the parent's worker deployment version.
|
|
2337
|
+
# Requires Temporal Server 1.32+.
|
|
2338
|
+
sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)).void }
|
|
2339
|
+
def versioning_override=(value)
|
|
2340
|
+
end
|
|
2341
|
+
|
|
2342
|
+
# Allows routing the child independently of the parent's worker deployment version.
|
|
2343
|
+
# Requires Temporal Server 1.32+.
|
|
2344
|
+
sig { void }
|
|
2345
|
+
def clear_versioning_override
|
|
2346
|
+
end
|
|
2347
|
+
|
|
2263
2348
|
sig { params(field: String).returns(T.untyped) }
|
|
2264
2349
|
def [](field)
|
|
2265
2350
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Temporalio::Internal::ExternalStorageReferences
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
ENCODING = T.let(T.unsafe(nil), String)
|
|
7
|
+
MESSAGE_TYPE = T.let(T.unsafe(nil), String)
|
|
8
|
+
|
|
9
|
+
sig { params(payload: Temporalio::Api::Common::V1::Payload).returns(T::Boolean) }
|
|
10
|
+
def self.reference?(payload); end
|
|
11
|
+
|
|
12
|
+
sig do
|
|
13
|
+
params(payload: Temporalio::Api::Common::V1::Payload)
|
|
14
|
+
.returns(T.nilable(Temporalio::Api::Sdk::V1::ExternalStorageReference))
|
|
15
|
+
end
|
|
16
|
+
def self.parse_reference(payload); end
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
driver_name: String,
|
|
21
|
+
claim_data: T::Hash[String, String],
|
|
22
|
+
original_size_bytes: Integer
|
|
23
|
+
).returns(Temporalio::Api::Common::V1::Payload)
|
|
24
|
+
end
|
|
25
|
+
def self.create_reference_payload(driver_name:, claim_data:, original_size_bytes:); end
|
|
26
|
+
end
|
|
@@ -200,6 +200,7 @@ class Temporalio::Internal::Worker::WorkflowInstance::Context
|
|
|
200
200
|
memo: T.nilable(T::Hash[T.any(String, Symbol), T.nilable(Object)]),
|
|
201
201
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
202
202
|
priority: Temporalio::Priority,
|
|
203
|
+
versioning_override: T.nilable(Temporalio::VersioningOverride),
|
|
203
204
|
arg_hints: T.nilable(T::Array[Object]),
|
|
204
205
|
result_hint: T.nilable(Object)
|
|
205
206
|
).returns(Temporalio::Internal::Worker::WorkflowInstance::ChildWorkflowHandle)
|
|
@@ -223,6 +224,7 @@ class Temporalio::Internal::Worker::WorkflowInstance::Context
|
|
|
223
224
|
memo:,
|
|
224
225
|
search_attributes:,
|
|
225
226
|
priority:,
|
|
227
|
+
versioning_override:,
|
|
226
228
|
arg_hints:,
|
|
227
229
|
result_hint:
|
|
228
230
|
); end
|
|
@@ -11,3 +11,11 @@ class Temporalio::VersioningOverride::Pinned < ::Temporalio::VersioningOverride
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
class Temporalio::VersioningOverride::AutoUpgrade < ::Temporalio::VersioningOverride; end
|
|
14
|
+
|
|
15
|
+
class Temporalio::VersioningOverride::OneTime < ::Temporalio::VersioningOverride
|
|
16
|
+
sig { params(target_version: Temporalio::WorkerDeploymentVersion).void }
|
|
17
|
+
def initialize(target_version); end
|
|
18
|
+
|
|
19
|
+
sig { returns(Temporalio::WorkerDeploymentVersion) }
|
|
20
|
+
attr_reader :target_version
|
|
21
|
+
end
|
|
@@ -398,6 +398,9 @@ class Temporalio::Worker::Interceptor::Workflow::StartChildWorkflowInput < ::Dat
|
|
|
398
398
|
sig { returns(Temporalio::Priority) }
|
|
399
399
|
def priority; end
|
|
400
400
|
|
|
401
|
+
sig { returns(T.nilable(Temporalio::VersioningOverride)) }
|
|
402
|
+
def versioning_override; end
|
|
403
|
+
|
|
401
404
|
sig { returns(T.nilable(T::Array[Object])) }
|
|
402
405
|
def arg_hints; end
|
|
403
406
|
|
data/rbi/temporalio/workflow.rbi
CHANGED
|
@@ -102,6 +102,7 @@ module Temporalio::Workflow
|
|
|
102
102
|
memo: T.nilable(T::Hash[T.any(String, Symbol), T.nilable(Object)]),
|
|
103
103
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
104
104
|
priority: Temporalio::Priority,
|
|
105
|
+
versioning_override: T.nilable(Temporalio::VersioningOverride),
|
|
105
106
|
arg_hints: T.nilable(T::Array[Object]),
|
|
106
107
|
result_hint: T.nilable(Object)
|
|
107
108
|
).returns(T.nilable(Object))
|
|
@@ -125,6 +126,7 @@ module Temporalio::Workflow
|
|
|
125
126
|
memo: T.unsafe(nil),
|
|
126
127
|
search_attributes: T.unsafe(nil),
|
|
127
128
|
priority: T.unsafe(nil),
|
|
129
|
+
versioning_override: nil,
|
|
128
130
|
arg_hints: T.unsafe(nil),
|
|
129
131
|
result_hint: T.unsafe(nil)
|
|
130
132
|
); end
|
|
@@ -227,6 +229,7 @@ module Temporalio::Workflow
|
|
|
227
229
|
memo: T.nilable(T::Hash[T.any(String, Symbol), T.nilable(Object)]),
|
|
228
230
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
229
231
|
priority: Temporalio::Priority,
|
|
232
|
+
versioning_override: T.nilable(Temporalio::VersioningOverride),
|
|
230
233
|
arg_hints: T.nilable(T::Array[Object]),
|
|
231
234
|
result_hint: T.nilable(Object)
|
|
232
235
|
).returns(Temporalio::Workflow::ChildWorkflowHandle)
|
|
@@ -250,6 +253,7 @@ module Temporalio::Workflow
|
|
|
250
253
|
memo: T.unsafe(nil),
|
|
251
254
|
search_attributes: T.unsafe(nil),
|
|
252
255
|
priority: T.unsafe(nil),
|
|
256
|
+
versioning_override: nil,
|
|
253
257
|
arg_hints: T.unsafe(nil),
|
|
254
258
|
result_hint: T.unsafe(nil)
|
|
255
259
|
); end
|
|
@@ -385,6 +385,16 @@ module Temporalio
|
|
|
385
385
|
def has_execution_time?: () -> bool
|
|
386
386
|
def clear_execution_time: () -> void
|
|
387
387
|
|
|
388
|
+
# Serialization context propagated from the Nexus caller that started this activity.
|
|
389
|
+
attr_accessor propagated_nexus_serialization_context(): ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
|
|
390
|
+
def has_propagated_nexus_serialization_context?: () -> bool
|
|
391
|
+
def clear_propagated_nexus_serialization_context: () -> void
|
|
392
|
+
|
|
393
|
+
# Indicates whether eager execution was requested for this activity and accepted by the server
|
|
394
|
+
# for its first task.
|
|
395
|
+
attr_accessor eager_execution_accepted(): bool
|
|
396
|
+
def clear_eager_execution_accepted: () -> void
|
|
397
|
+
|
|
388
398
|
type init_map = {
|
|
389
399
|
activity_id: (::String | ::Symbol)?,
|
|
390
400
|
"activity_id" => (::String | ::Symbol)?,
|
|
@@ -462,6 +472,10 @@ module Temporalio
|
|
|
462
472
|
"start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
463
473
|
execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
464
474
|
"execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
475
|
+
propagated_nexus_serialization_context: (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
|
|
476
|
+
"propagated_nexus_serialization_context" => (::Temporalio::Api::Nexus::V1::PropagatedSerializationContext | ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext::init_map)?,
|
|
477
|
+
eager_execution_accepted: bool?,
|
|
478
|
+
"eager_execution_accepted" => bool?,
|
|
465
479
|
}
|
|
466
480
|
|
|
467
481
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -505,6 +519,8 @@ module Temporalio
|
|
|
505
519
|
| ("sdk_version" name) -> ::String
|
|
506
520
|
| ("start_delay" name) -> ::Google::Protobuf::Duration?
|
|
507
521
|
| ("execution_time" name) -> ::Google::Protobuf::Timestamp?
|
|
522
|
+
| ("propagated_nexus_serialization_context" name) -> ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext?
|
|
523
|
+
| ("eager_execution_accepted" name) -> bool
|
|
508
524
|
|
|
509
525
|
def []=:
|
|
510
526
|
("activity_id" name, (::String | ::Symbol) value) -> void
|
|
@@ -545,6 +561,8 @@ module Temporalio
|
|
|
545
561
|
| ("sdk_version" name, (::String | ::Symbol) value) -> void
|
|
546
562
|
| ("start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
547
563
|
| ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
564
|
+
| ("propagated_nexus_serialization_context" name, ::Temporalio::Api::Nexus::V1::PropagatedSerializationContext? value) -> void
|
|
565
|
+
| ("eager_execution_accepted" name, bool value) -> void
|
|
548
566
|
end
|
|
549
567
|
|
|
550
568
|
# Limited activity information returned in the list response.
|
|
@@ -57,6 +57,12 @@ module Temporalio
|
|
|
57
57
|
attr_writer blocked_reason(): ::String | ::Symbol
|
|
58
58
|
def clear_blocked_reason: () -> void
|
|
59
59
|
|
|
60
|
+
# Server-generated request ID used as an idempotency token when invoking callbacks.
|
|
61
|
+
# It has no relation to caller-side request_id sent in operations like StartNexusOperationExecutionRequest.
|
|
62
|
+
attr_reader request_id(): ::String
|
|
63
|
+
attr_writer request_id(): ::String | ::Symbol
|
|
64
|
+
def clear_request_id: () -> void
|
|
65
|
+
|
|
60
66
|
type init_map = {
|
|
61
67
|
callback: (::Temporalio::Api::Common::V1::Callback | ::Temporalio::Api::Common::V1::Callback::init_map)?,
|
|
62
68
|
"callback" => (::Temporalio::Api::Common::V1::Callback | ::Temporalio::Api::Common::V1::Callback::init_map)?,
|
|
@@ -74,6 +80,8 @@ module Temporalio
|
|
|
74
80
|
"next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
75
81
|
blocked_reason: (::String | ::Symbol)?,
|
|
76
82
|
"blocked_reason" => (::String | ::Symbol)?,
|
|
83
|
+
request_id: (::String | ::Symbol)?,
|
|
84
|
+
"request_id" => (::String | ::Symbol)?,
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -87,6 +95,7 @@ module Temporalio
|
|
|
87
95
|
| ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
88
96
|
| ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
|
|
89
97
|
| ("blocked_reason" name) -> ::String
|
|
98
|
+
| ("request_id" name) -> ::String
|
|
90
99
|
|
|
91
100
|
def []=:
|
|
92
101
|
("callback" name, ::Temporalio::Api::Common::V1::Callback? value) -> void
|
|
@@ -97,6 +106,7 @@ module Temporalio
|
|
|
97
106
|
| ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
98
107
|
| ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
99
108
|
| ("blocked_reason" name, (::String | ::Symbol) value) -> void
|
|
109
|
+
| ("request_id" name, (::String | ::Symbol) value) -> void
|
|
100
110
|
end
|
|
101
111
|
end
|
|
102
112
|
end
|