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.
- checksums.yaml +4 -4
- data/Cargo.lock +9 -17
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/batch/v1/message.rb +4 -1
- data/lib/temporalio/api/command/v1/message.rb +2 -1
- data/lib/temporalio/api/common/v1/message.rb +2 -1
- data/lib/temporalio/api/enums/v1/activity.rb +1 -1
- data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +2 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
- data/lib/temporalio/api/history/v1/message.rb +1 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +1 -1
- data/lib/temporalio/client/connection.rb +33 -3
- data/lib/temporalio/client/schedule.rb +4 -5
- data/lib/temporalio/client/workflow_execution.rb +2 -2
- data/lib/temporalio/client/workflow_handle.rb +13 -7
- data/lib/temporalio/client.rb +4 -6
- data/lib/temporalio/internal/bridge/client.rb +3 -1
- data/lib/temporalio/internal/bridge/worker.rb +3 -1
- data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
- data/lib/temporalio/runtime.rb +2 -2
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/workflow_replayer.rb +2 -0
- data/lib/temporalio/worker.rb +24 -4
- data/lib/temporalio/workflow.rb +8 -9
- data/rbi/temporalio/api/activity/v1/message.rbi +78 -12
- data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
- data/rbi/temporalio/api/command/v1/message.rbi +22 -2
- data/rbi/temporalio/api/common/v1/message.rbi +100 -8
- data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +3 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
- data/rbi/temporalio/api/history/v1/message.rbi +22 -2
- data/rbi/temporalio/api/namespace/v1/message.rbi +70 -2
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +379 -57
- data/rbi/temporalio/client/connection.rbi +2 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
- data/rbi/temporalio/worker.rbi +9 -2
- data/rbi/temporalio/workflow/future.rbi +1 -1
- data/sig/temporalio/api/activity/v1/message.rbs +37 -2
- data/sig/temporalio/api/batch/v1/message.rbs +86 -0
- data/sig/temporalio/api/command/v1/message.rbs +10 -0
- data/sig/temporalio/api/common/v1/message.rbs +47 -7
- data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
- data/sig/temporalio/api/enums/v1/common.rbs +23 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +15 -6
- data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
- data/sig/temporalio/api/history/v1/message.rbs +10 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +32 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +174 -18
- data/sig/temporalio/client/connection.rbs +14 -1
- data/sig/temporalio/internal/bridge/client.rbs +5 -1
- data/sig/temporalio/internal/bridge/worker.rbs +5 -1
- data/sig/temporalio/worker.rbs +8 -2
- metadata +1 -1
|
@@ -11,14 +11,16 @@ class Temporalio::Api::Batch::V1::BatchOperationInfo
|
|
|
11
11
|
job_id: T.nilable(String),
|
|
12
12
|
state: T.nilable(T.any(Symbol, String, Integer)),
|
|
13
13
|
start_time: T.nilable(Google::Protobuf::Timestamp),
|
|
14
|
-
close_time: T.nilable(Google::Protobuf::Timestamp)
|
|
14
|
+
close_time: T.nilable(Google::Protobuf::Timestamp),
|
|
15
|
+
operation_type: T.nilable(T.any(Symbol, String, Integer))
|
|
15
16
|
).void
|
|
16
17
|
end
|
|
17
18
|
def initialize(
|
|
18
19
|
job_id: "",
|
|
19
20
|
state: :BATCH_OPERATION_STATE_UNSPECIFIED,
|
|
20
21
|
start_time: nil,
|
|
21
|
-
close_time: nil
|
|
22
|
+
close_time: nil,
|
|
23
|
+
operation_type: :BATCH_OPERATION_TYPE_UNSPECIFIED
|
|
22
24
|
)
|
|
23
25
|
end
|
|
24
26
|
|
|
@@ -82,6 +84,21 @@ class Temporalio::Api::Batch::V1::BatchOperationInfo
|
|
|
82
84
|
def clear_close_time
|
|
83
85
|
end
|
|
84
86
|
|
|
87
|
+
# Operation type
|
|
88
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
89
|
+
def operation_type
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Operation type
|
|
93
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
94
|
+
def operation_type=(value)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Operation type
|
|
98
|
+
sig { void }
|
|
99
|
+
def clear_operation_type
|
|
100
|
+
end
|
|
101
|
+
|
|
85
102
|
sig { params(field: String).returns(T.untyped) }
|
|
86
103
|
def [](field)
|
|
87
104
|
end
|
|
@@ -197,6 +214,90 @@ class Temporalio::Api::Batch::V1::BatchOperationTermination
|
|
|
197
214
|
end
|
|
198
215
|
end
|
|
199
216
|
|
|
217
|
+
# BatchOperationTerminateActivities sends terminate requests to a batch of activities.
|
|
218
|
+
# Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateActivityExecutionRequest.
|
|
219
|
+
class Temporalio::Api::Batch::V1::BatchOperationTerminateActivities
|
|
220
|
+
include ::Google::Protobuf::MessageExts
|
|
221
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
222
|
+
|
|
223
|
+
sig do
|
|
224
|
+
params(
|
|
225
|
+
identity: T.nilable(String),
|
|
226
|
+
reason: T.nilable(String)
|
|
227
|
+
).void
|
|
228
|
+
end
|
|
229
|
+
def initialize(
|
|
230
|
+
identity: "",
|
|
231
|
+
reason: ""
|
|
232
|
+
)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# The identity of the worker/client
|
|
236
|
+
sig { returns(String) }
|
|
237
|
+
def identity
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# The identity of the worker/client
|
|
241
|
+
sig { params(value: String).void }
|
|
242
|
+
def identity=(value)
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# The identity of the worker/client
|
|
246
|
+
sig { void }
|
|
247
|
+
def clear_identity
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Reason for requesting the termination, recorded and available via the PollActivityExecution API.
|
|
251
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
252
|
+
sig { returns(String) }
|
|
253
|
+
def reason
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Reason for requesting the termination, recorded and available via the PollActivityExecution API.
|
|
257
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
258
|
+
sig { params(value: String).void }
|
|
259
|
+
def reason=(value)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Reason for requesting the termination, recorded and available via the PollActivityExecution API.
|
|
263
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
264
|
+
sig { void }
|
|
265
|
+
def clear_reason
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
sig { params(field: String).returns(T.untyped) }
|
|
269
|
+
def [](field)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
sig { params(field: String, value: T.untyped).void }
|
|
273
|
+
def []=(field, value)
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
277
|
+
def to_h
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationTerminateActivities) }
|
|
281
|
+
def self.decode(str)
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationTerminateActivities).returns(String) }
|
|
285
|
+
def self.encode(msg)
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationTerminateActivities) }
|
|
289
|
+
def self.decode_json(str, **kw)
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationTerminateActivities, kw: T.untyped).returns(String) }
|
|
293
|
+
def self.encode_json(msg, **kw)
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
297
|
+
def self.descriptor
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
|
|
200
301
|
# BatchOperationSignal sends signals to batch workflows.
|
|
201
302
|
# Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
|
|
202
303
|
class Temporalio::Api::Batch::V1::BatchOperationSignal
|
|
@@ -380,6 +481,90 @@ class Temporalio::Api::Batch::V1::BatchOperationCancellation
|
|
|
380
481
|
end
|
|
381
482
|
end
|
|
382
483
|
|
|
484
|
+
# BatchOperationCancelActivities sends cancel requests to a batch of activities.
|
|
485
|
+
# Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest.
|
|
486
|
+
class Temporalio::Api::Batch::V1::BatchOperationCancelActivities
|
|
487
|
+
include ::Google::Protobuf::MessageExts
|
|
488
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
489
|
+
|
|
490
|
+
sig do
|
|
491
|
+
params(
|
|
492
|
+
identity: T.nilable(String),
|
|
493
|
+
reason: T.nilable(String)
|
|
494
|
+
).void
|
|
495
|
+
end
|
|
496
|
+
def initialize(
|
|
497
|
+
identity: "",
|
|
498
|
+
reason: ""
|
|
499
|
+
)
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# The identity of the worker/client
|
|
503
|
+
sig { returns(String) }
|
|
504
|
+
def identity
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# The identity of the worker/client
|
|
508
|
+
sig { params(value: String).void }
|
|
509
|
+
def identity=(value)
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# The identity of the worker/client
|
|
513
|
+
sig { void }
|
|
514
|
+
def clear_identity
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
|
|
518
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
519
|
+
sig { returns(String) }
|
|
520
|
+
def reason
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
|
|
524
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
525
|
+
sig { params(value: String).void }
|
|
526
|
+
def reason=(value)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
|
|
530
|
+
# Not propagated to a worker if an activity attempt is currently running.
|
|
531
|
+
sig { void }
|
|
532
|
+
def clear_reason
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
sig { params(field: String).returns(T.untyped) }
|
|
536
|
+
def [](field)
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
sig { params(field: String, value: T.untyped).void }
|
|
540
|
+
def []=(field, value)
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
544
|
+
def to_h
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationCancelActivities) }
|
|
548
|
+
def self.decode(str)
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationCancelActivities).returns(String) }
|
|
552
|
+
def self.encode(msg)
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationCancelActivities) }
|
|
556
|
+
def self.decode_json(str, **kw)
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationCancelActivities, kw: T.untyped).returns(String) }
|
|
560
|
+
def self.encode_json(msg, **kw)
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
564
|
+
def self.descriptor
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
|
|
383
568
|
# BatchOperationDeletion sends deletion requests to batch workflows.
|
|
384
569
|
# Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest.
|
|
385
570
|
class Temporalio::Api::Batch::V1::BatchOperationDeletion
|
|
@@ -444,6 +629,48 @@ class Temporalio::Api::Batch::V1::BatchOperationDeletion
|
|
|
444
629
|
end
|
|
445
630
|
end
|
|
446
631
|
|
|
632
|
+
# BatchOperationDeleteActivities sends deletion requests to a batch of activities.
|
|
633
|
+
# Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteActivityExecutionRequest.
|
|
634
|
+
class Temporalio::Api::Batch::V1::BatchOperationDeleteActivities
|
|
635
|
+
include ::Google::Protobuf::MessageExts
|
|
636
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
637
|
+
|
|
638
|
+
sig {void}
|
|
639
|
+
def initialize; end
|
|
640
|
+
|
|
641
|
+
sig { params(field: String).returns(T.untyped) }
|
|
642
|
+
def [](field)
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
sig { params(field: String, value: T.untyped).void }
|
|
646
|
+
def []=(field, value)
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
650
|
+
def to_h
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
sig { params(str: String).returns(Temporalio::Api::Batch::V1::BatchOperationDeleteActivities) }
|
|
654
|
+
def self.decode(str)
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationDeleteActivities).returns(String) }
|
|
658
|
+
def self.encode(msg)
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Batch::V1::BatchOperationDeleteActivities) }
|
|
662
|
+
def self.decode_json(str, **kw)
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
sig { params(msg: Temporalio::Api::Batch::V1::BatchOperationDeleteActivities, kw: T.untyped).returns(String) }
|
|
666
|
+
def self.encode_json(msg, **kw)
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
670
|
+
def self.descriptor
|
|
671
|
+
end
|
|
672
|
+
end
|
|
673
|
+
|
|
447
674
|
# BatchOperationReset sends reset requests to batch workflows.
|
|
448
675
|
# Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.
|
|
449
676
|
class Temporalio::Api::Batch::V1::BatchOperationReset
|
|
@@ -1593,7 +1593,8 @@ class Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes
|
|
|
1593
1593
|
memo: T.nilable(Temporalio::Api::Common::V1::Memo),
|
|
1594
1594
|
search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
|
|
1595
1595
|
inherit_build_id: T.nilable(T::Boolean),
|
|
1596
|
-
priority: T.nilable(Temporalio::Api::Common::V1::Priority)
|
|
1596
|
+
priority: T.nilable(Temporalio::Api::Common::V1::Priority),
|
|
1597
|
+
versioning_override: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)
|
|
1597
1598
|
).void
|
|
1598
1599
|
end
|
|
1599
1600
|
def initialize(
|
|
@@ -1614,7 +1615,8 @@ class Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes
|
|
|
1614
1615
|
memo: nil,
|
|
1615
1616
|
search_attributes: nil,
|
|
1616
1617
|
inherit_build_id: false,
|
|
1617
|
-
priority: nil
|
|
1618
|
+
priority: nil,
|
|
1619
|
+
versioning_override: nil
|
|
1618
1620
|
)
|
|
1619
1621
|
end
|
|
1620
1622
|
|
|
@@ -1870,6 +1872,24 @@ class Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes
|
|
|
1870
1872
|
def clear_priority
|
|
1871
1873
|
end
|
|
1872
1874
|
|
|
1875
|
+
# Versioning override for the child workflow. If present, this explicit override takes
|
|
1876
|
+
# precedence over versioning behavior inherited from the parent workflow.
|
|
1877
|
+
sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)) }
|
|
1878
|
+
def versioning_override
|
|
1879
|
+
end
|
|
1880
|
+
|
|
1881
|
+
# Versioning override for the child workflow. If present, this explicit override takes
|
|
1882
|
+
# precedence over versioning behavior inherited from the parent workflow.
|
|
1883
|
+
sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)).void }
|
|
1884
|
+
def versioning_override=(value)
|
|
1885
|
+
end
|
|
1886
|
+
|
|
1887
|
+
# Versioning override for the child workflow. If present, this explicit override takes
|
|
1888
|
+
# precedence over versioning behavior inherited from the parent workflow.
|
|
1889
|
+
sig { void }
|
|
1890
|
+
def clear_versioning_override
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1873
1893
|
sig { params(field: String).returns(T.untyped) }
|
|
1874
1894
|
def [](field)
|
|
1875
1895
|
end
|
|
@@ -486,6 +486,95 @@ class Temporalio::Api::Common::V1::WorkflowExecution
|
|
|
486
486
|
end
|
|
487
487
|
end
|
|
488
488
|
|
|
489
|
+
# Identifies a specific execution within a namespace. This is used for standalone activities
|
|
490
|
+
# executions in batch jobs currently.
|
|
491
|
+
class Temporalio::Api::Common::V1::Execution
|
|
492
|
+
include ::Google::Protobuf::MessageExts
|
|
493
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
494
|
+
|
|
495
|
+
sig do
|
|
496
|
+
params(
|
|
497
|
+
type: T.nilable(T.any(Symbol, String, Integer)),
|
|
498
|
+
business_id: T.nilable(String),
|
|
499
|
+
run_id: T.nilable(String)
|
|
500
|
+
).void
|
|
501
|
+
end
|
|
502
|
+
def initialize(
|
|
503
|
+
type: :EXECUTION_TYPE_UNSPECIFIED,
|
|
504
|
+
business_id: "",
|
|
505
|
+
run_id: ""
|
|
506
|
+
)
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
510
|
+
def type
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
514
|
+
def type=(value)
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
sig { void }
|
|
518
|
+
def clear_type
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
sig { returns(String) }
|
|
522
|
+
def business_id
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
sig { params(value: String).void }
|
|
526
|
+
def business_id=(value)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
sig { void }
|
|
530
|
+
def clear_business_id
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
sig { returns(String) }
|
|
534
|
+
def run_id
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
sig { params(value: String).void }
|
|
538
|
+
def run_id=(value)
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
sig { void }
|
|
542
|
+
def clear_run_id
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
sig { params(field: String).returns(T.untyped) }
|
|
546
|
+
def [](field)
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
sig { params(field: String, value: T.untyped).void }
|
|
550
|
+
def []=(field, value)
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
554
|
+
def to_h
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Execution) }
|
|
558
|
+
def self.decode(str)
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
sig { params(msg: Temporalio::Api::Common::V1::Execution).returns(String) }
|
|
562
|
+
def self.encode(msg)
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Execution) }
|
|
566
|
+
def self.decode_json(str, **kw)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
sig { params(msg: Temporalio::Api::Common::V1::Execution, kw: T.untyped).returns(String) }
|
|
570
|
+
def self.encode_json(msg, **kw)
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
574
|
+
def self.descriptor
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
|
|
489
578
|
# Represents the identifier used by a workflow author to define the workflow. Typically, the
|
|
490
579
|
# name of a function. This is sometimes referred to as the workflow's "name"
|
|
491
580
|
class Temporalio::Api::Common::V1::WorkflowType
|
|
@@ -1954,13 +2043,13 @@ class Temporalio::Api::Common::V1::TimeSkippingConfig
|
|
|
1954
2043
|
params(
|
|
1955
2044
|
enabled: T.nilable(T::Boolean),
|
|
1956
2045
|
fast_forward: T.nilable(Google::Protobuf::Duration),
|
|
1957
|
-
|
|
2046
|
+
disable_propagation: T.nilable(T::Boolean)
|
|
1958
2047
|
).void
|
|
1959
2048
|
end
|
|
1960
2049
|
def initialize(
|
|
1961
2050
|
enabled: false,
|
|
1962
2051
|
fast_forward: nil,
|
|
1963
|
-
|
|
2052
|
+
disable_propagation: false
|
|
1964
2053
|
)
|
|
1965
2054
|
end
|
|
1966
2055
|
|
|
@@ -2027,22 +2116,25 @@ class Temporalio::Api::Common::V1::TimeSkippingConfig
|
|
|
2027
2116
|
def clear_fast_forward
|
|
2028
2117
|
end
|
|
2029
2118
|
|
|
2030
|
-
# By default,
|
|
2119
|
+
# By default, executions started by another execution (e.g. a child workflow of a parent workflow or
|
|
2120
|
+
# a schedule with the timeskipping policy enabled), inherit the "enabled" flag and skip time when possible.
|
|
2031
2121
|
# This flag disables that inheritance.
|
|
2032
2122
|
sig { returns(T::Boolean) }
|
|
2033
|
-
def
|
|
2123
|
+
def disable_propagation
|
|
2034
2124
|
end
|
|
2035
2125
|
|
|
2036
|
-
# By default,
|
|
2126
|
+
# By default, executions started by another execution (e.g. a child workflow of a parent workflow or
|
|
2127
|
+
# a schedule with the timeskipping policy enabled), inherit the "enabled" flag and skip time when possible.
|
|
2037
2128
|
# This flag disables that inheritance.
|
|
2038
2129
|
sig { params(value: T::Boolean).void }
|
|
2039
|
-
def
|
|
2130
|
+
def disable_propagation=(value)
|
|
2040
2131
|
end
|
|
2041
2132
|
|
|
2042
|
-
# By default,
|
|
2133
|
+
# By default, executions started by another execution (e.g. a child workflow of a parent workflow or
|
|
2134
|
+
# a schedule with the timeskipping policy enabled), inherit the "enabled" flag and skip time when possible.
|
|
2043
2135
|
# This flag disables that inheritance.
|
|
2044
2136
|
sig { void }
|
|
2045
|
-
def
|
|
2137
|
+
def clear_disable_propagation
|
|
2046
2138
|
end
|
|
2047
2139
|
|
|
2048
2140
|
sig { params(field: String).returns(T.untyped) }
|
|
@@ -10,6 +10,7 @@ module Temporalio::Api::Enums::V1::ActivityExecutionStatus
|
|
|
10
10
|
self::ACTIVITY_EXECUTION_STATUS_CANCELED = T.let(4, Integer)
|
|
11
11
|
self::ACTIVITY_EXECUTION_STATUS_TERMINATED = T.let(5, Integer)
|
|
12
12
|
self::ACTIVITY_EXECUTION_STATUS_TIMED_OUT = T.let(6, Integer)
|
|
13
|
+
self::ACTIVITY_EXECUTION_STATUS_PAUSED = T.let(7, Integer)
|
|
13
14
|
|
|
14
15
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
15
16
|
def self.lookup(value)
|
|
@@ -5,14 +5,23 @@
|
|
|
5
5
|
module Temporalio::Api::Enums::V1::BatchOperationType
|
|
6
6
|
self::BATCH_OPERATION_TYPE_UNSPECIFIED = T.let(0, Integer)
|
|
7
7
|
self::BATCH_OPERATION_TYPE_TERMINATE = T.let(1, Integer)
|
|
8
|
+
self::BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW = T.let(13, Integer)
|
|
8
9
|
self::BATCH_OPERATION_TYPE_CANCEL = T.let(2, Integer)
|
|
10
|
+
self::BATCH_OPERATION_TYPE_CANCEL_WORKFLOW = T.let(14, Integer)
|
|
9
11
|
self::BATCH_OPERATION_TYPE_SIGNAL = T.let(3, Integer)
|
|
12
|
+
self::BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW = T.let(15, Integer)
|
|
10
13
|
self::BATCH_OPERATION_TYPE_DELETE = T.let(4, Integer)
|
|
14
|
+
self::BATCH_OPERATION_TYPE_DELETE_WORKFLOW = T.let(16, Integer)
|
|
11
15
|
self::BATCH_OPERATION_TYPE_RESET = T.let(5, Integer)
|
|
16
|
+
self::BATCH_OPERATION_TYPE_RESET_WORKFLOW = T.let(17, Integer)
|
|
12
17
|
self::BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS = T.let(6, Integer)
|
|
18
|
+
self::BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS = T.let(18, Integer)
|
|
13
19
|
self::BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY = T.let(7, Integer)
|
|
14
20
|
self::BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS = T.let(8, Integer)
|
|
15
21
|
self::BATCH_OPERATION_TYPE_RESET_ACTIVITY = T.let(9, Integer)
|
|
22
|
+
self::BATCH_OPERATION_TYPE_TERMINATE_ACTIVITY = T.let(10, Integer)
|
|
23
|
+
self::BATCH_OPERATION_TYPE_CANCEL_ACTIVITY = T.let(11, Integer)
|
|
24
|
+
self::BATCH_OPERATION_TYPE_DELETE_ACTIVITY = T.let(12, Integer)
|
|
16
25
|
|
|
17
26
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
18
27
|
def self.lookup(value)
|
|
@@ -179,3 +179,21 @@ module Temporalio::Api::Enums::V1::WorkerStatus
|
|
|
179
179
|
def self.descriptor
|
|
180
180
|
end
|
|
181
181
|
end
|
|
182
|
+
|
|
183
|
+
module Temporalio::Api::Enums::V1::ExecutionType
|
|
184
|
+
self::EXECUTION_TYPE_UNSPECIFIED = T.let(0, Integer)
|
|
185
|
+
self::EXECUTION_TYPE_WORKFLOW = T.let(1, Integer)
|
|
186
|
+
self::EXECUTION_TYPE_ACTIVITY = T.let(2, Integer)
|
|
187
|
+
|
|
188
|
+
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
189
|
+
def self.lookup(value)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
sig { params(value: Symbol).returns(T.nilable(Integer)) }
|
|
193
|
+
def self.resolve(value)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
sig { returns(::Google::Protobuf::EnumDescriptor) }
|
|
197
|
+
def self.descriptor
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -41,6 +41,8 @@ module Temporalio::Api::Enums::V1::WorkflowTaskFailedCause
|
|
|
41
41
|
self::WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED = T.let(35, Integer)
|
|
42
42
|
self::WORKFLOW_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE = T.let(36, Integer)
|
|
43
43
|
self::WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE = T.let(37, Integer)
|
|
44
|
+
self::WORKFLOW_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE = T.let(38, Integer)
|
|
45
|
+
self::WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_PAUSE_REQUESTED_BEFORE_TASK_STARTED = T.let(39, Integer)
|
|
44
46
|
|
|
45
47
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
46
48
|
def self.lookup(value)
|
|
@@ -59,6 +61,7 @@ module Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause
|
|
|
59
61
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = T.let(0, Integer)
|
|
60
62
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = T.let(1, Integer)
|
|
61
63
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = T.let(2, Integer)
|
|
64
|
+
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE = T.let(3, Integer)
|
|
62
65
|
|
|
63
66
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
64
67
|
def self.lookup(value)
|
|
@@ -82,12 +82,14 @@ class Temporalio::Api::ErrorDetails::V1::WorkflowExecutionAlreadyStartedFailure
|
|
|
82
82
|
sig do
|
|
83
83
|
params(
|
|
84
84
|
start_request_id: T.nilable(String),
|
|
85
|
-
run_id: T.nilable(String)
|
|
85
|
+
run_id: T.nilable(String),
|
|
86
|
+
first_execution_run_id: T.nilable(String)
|
|
86
87
|
).void
|
|
87
88
|
end
|
|
88
89
|
def initialize(
|
|
89
90
|
start_request_id: "",
|
|
90
|
-
run_id: ""
|
|
91
|
+
run_id: "",
|
|
92
|
+
first_execution_run_id: ""
|
|
91
93
|
)
|
|
92
94
|
end
|
|
93
95
|
|
|
@@ -115,6 +117,18 @@ class Temporalio::Api::ErrorDetails::V1::WorkflowExecutionAlreadyStartedFailure
|
|
|
115
117
|
def clear_run_id
|
|
116
118
|
end
|
|
117
119
|
|
|
120
|
+
sig { returns(String) }
|
|
121
|
+
def first_execution_run_id
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
sig { params(value: String).void }
|
|
125
|
+
def first_execution_run_id=(value)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
sig { void }
|
|
129
|
+
def clear_first_execution_run_id
|
|
130
|
+
end
|
|
131
|
+
|
|
118
132
|
sig { params(field: String).returns(T.untyped) }
|
|
119
133
|
def [](field)
|
|
120
134
|
end
|
|
@@ -1296,6 +1310,49 @@ class Temporalio::Api::ErrorDetails::V1::NexusOperationExecutionAlreadyStartedFa
|
|
|
1296
1310
|
end
|
|
1297
1311
|
end
|
|
1298
1312
|
|
|
1313
|
+
# An error indicating that the server lost the buffered pages of a paginated workflow task
|
|
1314
|
+
# completion. This is a transient error: the workflow task is still valid, and the client
|
|
1315
|
+
# should resend all pages from page 0 using the same task token.
|
|
1316
|
+
class Temporalio::Api::ErrorDetails::V1::WorkflowTaskCompletionBufferLostFailure
|
|
1317
|
+
include ::Google::Protobuf::MessageExts
|
|
1318
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1319
|
+
|
|
1320
|
+
sig {void}
|
|
1321
|
+
def initialize; end
|
|
1322
|
+
|
|
1323
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1324
|
+
def [](field)
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1327
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1328
|
+
def []=(field, value)
|
|
1329
|
+
end
|
|
1330
|
+
|
|
1331
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1332
|
+
def to_h
|
|
1333
|
+
end
|
|
1334
|
+
|
|
1335
|
+
sig { params(str: String).returns(Temporalio::Api::ErrorDetails::V1::WorkflowTaskCompletionBufferLostFailure) }
|
|
1336
|
+
def self.decode(str)
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
sig { params(msg: Temporalio::Api::ErrorDetails::V1::WorkflowTaskCompletionBufferLostFailure).returns(String) }
|
|
1340
|
+
def self.encode(msg)
|
|
1341
|
+
end
|
|
1342
|
+
|
|
1343
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::ErrorDetails::V1::WorkflowTaskCompletionBufferLostFailure) }
|
|
1344
|
+
def self.decode_json(str, **kw)
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1347
|
+
sig { params(msg: Temporalio::Api::ErrorDetails::V1::WorkflowTaskCompletionBufferLostFailure, kw: T.untyped).returns(String) }
|
|
1348
|
+
def self.encode_json(msg, **kw)
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1352
|
+
def self.descriptor
|
|
1353
|
+
end
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1299
1356
|
# NOTE: `OperationStatus` is modelled after
|
|
1300
1357
|
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto).
|
|
1301
1358
|
#
|
|
@@ -5760,7 +5760,8 @@ class Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAtt
|
|
|
5760
5760
|
inherit_build_id: T.nilable(T::Boolean),
|
|
5761
5761
|
priority: T.nilable(Temporalio::Api::Common::V1::Priority),
|
|
5762
5762
|
time_skipping_config: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig),
|
|
5763
|
-
time_skipping_state_propagation: T.nilable(Temporalio::Api::Common::V1::TimeSkippingStatePropagation)
|
|
5763
|
+
time_skipping_state_propagation: T.nilable(Temporalio::Api::Common::V1::TimeSkippingStatePropagation),
|
|
5764
|
+
versioning_override: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)
|
|
5764
5765
|
).void
|
|
5765
5766
|
end
|
|
5766
5767
|
def initialize(
|
|
@@ -5785,7 +5786,8 @@ class Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAtt
|
|
|
5785
5786
|
inherit_build_id: false,
|
|
5786
5787
|
priority: nil,
|
|
5787
5788
|
time_skipping_config: nil,
|
|
5788
|
-
time_skipping_state_propagation: nil
|
|
5789
|
+
time_skipping_state_propagation: nil,
|
|
5790
|
+
versioning_override: nil
|
|
5789
5791
|
)
|
|
5790
5792
|
end
|
|
5791
5793
|
|
|
@@ -6104,6 +6106,24 @@ class Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAtt
|
|
|
6104
6106
|
def clear_time_skipping_state_propagation
|
|
6105
6107
|
end
|
|
6106
6108
|
|
|
6109
|
+
# Versioning override requested for the child workflow. If present, this explicit override
|
|
6110
|
+
# takes precedence over versioning behavior inherited from the parent workflow.
|
|
6111
|
+
sig { returns(T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)) }
|
|
6112
|
+
def versioning_override
|
|
6113
|
+
end
|
|
6114
|
+
|
|
6115
|
+
# Versioning override requested for the child workflow. If present, this explicit override
|
|
6116
|
+
# takes precedence over versioning behavior inherited from the parent workflow.
|
|
6117
|
+
sig { params(value: T.nilable(Temporalio::Api::Workflow::V1::VersioningOverride)).void }
|
|
6118
|
+
def versioning_override=(value)
|
|
6119
|
+
end
|
|
6120
|
+
|
|
6121
|
+
# Versioning override requested for the child workflow. If present, this explicit override
|
|
6122
|
+
# takes precedence over versioning behavior inherited from the parent workflow.
|
|
6123
|
+
sig { void }
|
|
6124
|
+
def clear_versioning_override
|
|
6125
|
+
end
|
|
6126
|
+
|
|
6107
6127
|
sig { params(field: String).returns(T.untyped) }
|
|
6108
6128
|
def [](field)
|
|
6109
6129
|
end
|