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
|
@@ -772,7 +772,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
772
772
|
end
|
|
773
773
|
|
|
774
774
|
# Describes a worker deployment.
|
|
775
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
776
775
|
# Deprecated. Replaced with `DescribeWorkerDeploymentVersion`.
|
|
777
776
|
sig do
|
|
778
777
|
params(
|
|
@@ -783,7 +782,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
783
782
|
end
|
|
784
783
|
|
|
785
784
|
# Describes a worker deployment version.
|
|
786
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
787
785
|
sig do
|
|
788
786
|
params(
|
|
789
787
|
request: Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentVersionRequest
|
|
@@ -794,7 +792,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
794
792
|
|
|
795
793
|
# Lists worker deployments in the namespace. Optionally can filter based on deployment series
|
|
796
794
|
# name.
|
|
797
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
798
795
|
# Deprecated. Replaced with `ListWorkerDeployments`.
|
|
799
796
|
sig do
|
|
800
797
|
params(
|
|
@@ -810,7 +807,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
810
807
|
# Calculating reachability is relatively expensive. Therefore, server might return a recently
|
|
811
808
|
# cached value. In such a case, the `last_update_time` will inform you about the actual
|
|
812
809
|
# reachability calculation time.
|
|
813
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
814
810
|
# Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`.
|
|
815
811
|
sig do
|
|
816
812
|
params(
|
|
@@ -821,7 +817,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
821
817
|
end
|
|
822
818
|
|
|
823
819
|
# Returns the current deployment (and its info) for a given deployment series.
|
|
824
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
825
820
|
# Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`.
|
|
826
821
|
sig do
|
|
827
822
|
params(
|
|
@@ -833,7 +828,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
833
828
|
|
|
834
829
|
# Sets a deployment as the current deployment for its deployment series. Can optionally update
|
|
835
830
|
# the metadata of the deployment as well.
|
|
836
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
837
831
|
# Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`.
|
|
838
832
|
sig do
|
|
839
833
|
params(
|
|
@@ -845,7 +839,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
845
839
|
|
|
846
840
|
# Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping
|
|
847
841
|
# Version if it is the Version being set as Current.
|
|
848
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
849
842
|
sig do
|
|
850
843
|
params(
|
|
851
844
|
request: Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentCurrentVersionRequest
|
|
@@ -855,7 +848,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
855
848
|
end
|
|
856
849
|
|
|
857
850
|
# Describes a Worker Deployment.
|
|
858
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
859
851
|
sig do
|
|
860
852
|
params(
|
|
861
853
|
request: Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentRequest
|
|
@@ -866,7 +858,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
866
858
|
|
|
867
859
|
# Deletes records of (an old) Deployment. A deployment can only be deleted if
|
|
868
860
|
# it has no Version in it.
|
|
869
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
870
861
|
sig do
|
|
871
862
|
params(
|
|
872
863
|
request: Temporalio::Api::WorkflowService::V1::DeleteWorkerDeploymentRequest
|
|
@@ -881,7 +872,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
881
872
|
# - It has no active pollers (none of the task queues in the Version have pollers)
|
|
882
873
|
# - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition
|
|
883
874
|
# can be skipped by passing `skip-drainage=true`.
|
|
884
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
885
875
|
sig do
|
|
886
876
|
params(
|
|
887
877
|
request: Temporalio::Api::WorkflowService::V1::DeleteWorkerDeploymentVersionRequest
|
|
@@ -892,7 +882,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
892
882
|
|
|
893
883
|
# Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for
|
|
894
884
|
# gradual ramp to unversioned workers too.
|
|
895
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
896
885
|
sig do
|
|
897
886
|
params(
|
|
898
887
|
request: Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentRampingVersionRequest
|
|
@@ -902,7 +891,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
902
891
|
end
|
|
903
892
|
|
|
904
893
|
# Lists all Worker Deployments that are tracked in the Namespace.
|
|
905
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
906
894
|
sig do
|
|
907
895
|
params(
|
|
908
896
|
request: Temporalio::Api::WorkflowService::V1::ListWorkerDeploymentsRequest
|
|
@@ -956,7 +944,6 @@ module Temporalio::Api::WorkflowService::V1::WorkflowService
|
|
|
956
944
|
end
|
|
957
945
|
|
|
958
946
|
# Updates the user-given metadata attached to a Worker Deployment Version.
|
|
959
|
-
# Experimental. This API might significantly change or be removed in a future release.
|
|
960
947
|
sig do
|
|
961
948
|
params(
|
|
962
949
|
request: Temporalio::Api::WorkflowService::V1::UpdateWorkerDeploymentVersionMetadataRequest
|
|
@@ -377,7 +377,7 @@ class Temporalio::Client::Schedule::Policy < ::Data
|
|
|
377
377
|
sig do
|
|
378
378
|
params(
|
|
379
379
|
overlap: Integer,
|
|
380
|
-
catchup_window: T.any(Integer, Float),
|
|
380
|
+
catchup_window: T.nilable(T.any(Integer, Float)),
|
|
381
381
|
pause_on_failure: T::Boolean
|
|
382
382
|
).void
|
|
383
383
|
end
|
|
@@ -386,7 +386,7 @@ class Temporalio::Client::Schedule::Policy < ::Data
|
|
|
386
386
|
sig { returns(Integer) }
|
|
387
387
|
def overlap; end
|
|
388
388
|
|
|
389
|
-
sig { returns(T.any(Integer, Float)) }
|
|
389
|
+
sig { returns(T.nilable(T.any(Integer, Float))) }
|
|
390
390
|
def catchup_window; end
|
|
391
391
|
|
|
392
392
|
sig { returns(T::Boolean) }
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::ExternalStorage
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
DEFAULT_PAYLOAD_SIZE_THRESHOLD = T.let(T.unsafe(nil), Integer)
|
|
7
|
+
|
|
8
|
+
sig { returns(T::Array[Temporalio::Converters::StorageDriver]) }
|
|
9
|
+
attr_reader :drivers
|
|
10
|
+
|
|
11
|
+
sig do
|
|
12
|
+
returns(
|
|
13
|
+
T.proc.params(
|
|
14
|
+
context: Temporalio::Converters::StorageDriverSelectContext,
|
|
15
|
+
payload: Temporalio::Api::Common::V1::Payload
|
|
16
|
+
).returns(T.nilable(Temporalio::Converters::StorageDriver))
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
attr_reader :driver_selector
|
|
20
|
+
|
|
21
|
+
sig { returns(Integer) }
|
|
22
|
+
attr_reader :payload_size_threshold
|
|
23
|
+
|
|
24
|
+
sig { returns(Temporalio::Converters::ExternalStorageConcurrency) }
|
|
25
|
+
attr_reader :concurrency
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
drivers: T::Array[Temporalio::Converters::StorageDriver],
|
|
30
|
+
driver_selector: T.nilable(
|
|
31
|
+
T.proc.params(
|
|
32
|
+
context: Temporalio::Converters::StorageDriverSelectContext,
|
|
33
|
+
payload: Temporalio::Api::Common::V1::Payload
|
|
34
|
+
).returns(T.nilable(Temporalio::Converters::StorageDriver))
|
|
35
|
+
),
|
|
36
|
+
payload_size_threshold: Integer,
|
|
37
|
+
concurrency: Temporalio::Converters::ExternalStorageConcurrency
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
def initialize(
|
|
41
|
+
drivers:,
|
|
42
|
+
driver_selector: T.unsafe(nil),
|
|
43
|
+
payload_size_threshold: T.unsafe(nil),
|
|
44
|
+
concurrency: T.unsafe(nil)
|
|
45
|
+
); end
|
|
46
|
+
|
|
47
|
+
sig { params(name: String).returns(T.nilable(Temporalio::Converters::StorageDriver)) }
|
|
48
|
+
def driver(name); end
|
|
49
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::ExternalStorageConcurrency < ::Data
|
|
4
|
+
DEFAULT_MAX_DRIVER_OPERATIONS = T.let(T.unsafe(nil), Integer)
|
|
5
|
+
DEFAULT_MAX_OPERATIONS_PER_MESSAGE = T.let(T.unsafe(nil), Integer)
|
|
6
|
+
|
|
7
|
+
sig { params(max_driver_operations: Integer, max_operations_per_message: Integer).void }
|
|
8
|
+
def initialize(max_driver_operations: 64, max_operations_per_message: 8); end
|
|
9
|
+
|
|
10
|
+
sig { returns(Integer) }
|
|
11
|
+
def max_driver_operations; end
|
|
12
|
+
|
|
13
|
+
sig { returns(Integer) }
|
|
14
|
+
def max_operations_per_message; end
|
|
15
|
+
|
|
16
|
+
class << self
|
|
17
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::ExternalStorageConcurrency) }
|
|
18
|
+
def [](*args); end
|
|
19
|
+
|
|
20
|
+
sig { returns(T::Array[Symbol]) }
|
|
21
|
+
def members; end
|
|
22
|
+
|
|
23
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::ExternalStorageConcurrency) }
|
|
24
|
+
def new(*args); end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriver
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
sig { returns(String) }
|
|
7
|
+
def name; end
|
|
8
|
+
|
|
9
|
+
sig { returns(String) }
|
|
10
|
+
def type; end
|
|
11
|
+
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
context: Temporalio::Converters::StorageDriverStoreContext,
|
|
15
|
+
payloads: T::Enumerable[Temporalio::Api::Common::V1::Payload]
|
|
16
|
+
).returns(T::Array[Temporalio::Converters::StorageDriverClaim])
|
|
17
|
+
end
|
|
18
|
+
def store(context, payloads); end
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
context: Temporalio::Converters::StorageDriverRetrieveContext,
|
|
23
|
+
claims: T::Enumerable[Temporalio::Converters::StorageDriverClaim]
|
|
24
|
+
).returns(T::Array[Temporalio::Api::Common::V1::Payload])
|
|
25
|
+
end
|
|
26
|
+
def retrieve(context, claims); end
|
|
27
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverActivityInfo < ::Data
|
|
4
|
+
sig do
|
|
5
|
+
params(
|
|
6
|
+
namespace: String,
|
|
7
|
+
id: T.nilable(String),
|
|
8
|
+
run_id: T.nilable(String),
|
|
9
|
+
type: T.nilable(String)
|
|
10
|
+
).void
|
|
11
|
+
end
|
|
12
|
+
def initialize(namespace:, id: T.unsafe(nil), run_id: T.unsafe(nil), type: T.unsafe(nil)); end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
def namespace; end
|
|
16
|
+
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
def id; end
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
def run_id; end
|
|
22
|
+
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
def type; end
|
|
25
|
+
|
|
26
|
+
class << self
|
|
27
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverActivityInfo) }
|
|
28
|
+
def [](*args); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T::Array[Symbol]) }
|
|
31
|
+
def members; end
|
|
32
|
+
|
|
33
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverActivityInfo) }
|
|
34
|
+
def new(*args); end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverClaim < ::Data
|
|
4
|
+
sig { params(claim_data: T::Hash[String, String]).void }
|
|
5
|
+
def initialize(claim_data:); end
|
|
6
|
+
|
|
7
|
+
sig { returns(T::Hash[String, String]) }
|
|
8
|
+
def claim_data; end
|
|
9
|
+
|
|
10
|
+
class << self
|
|
11
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverClaim) }
|
|
12
|
+
def [](*args); end
|
|
13
|
+
|
|
14
|
+
sig { returns(T::Array[Symbol]) }
|
|
15
|
+
def members; end
|
|
16
|
+
|
|
17
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverClaim) }
|
|
18
|
+
def new(*args); end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverLimiter
|
|
4
|
+
sig do
|
|
5
|
+
type_parameters(:T)
|
|
6
|
+
.params(
|
|
7
|
+
item: T.any(Temporalio::Api::Common::V1::Payload, Temporalio::Converters::StorageDriverClaim),
|
|
8
|
+
blk: T.proc.returns(T.type_parameter(:T))
|
|
9
|
+
)
|
|
10
|
+
.returns(T.type_parameter(:T))
|
|
11
|
+
end
|
|
12
|
+
def permit(item, &blk); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverRetrieveContext < ::Data
|
|
4
|
+
sig { params(cancellation: Temporalio::Cancellation, limiter: Temporalio::Converters::StorageDriverLimiter).void }
|
|
5
|
+
def initialize(cancellation:, limiter:); end
|
|
6
|
+
|
|
7
|
+
sig { returns(Temporalio::Cancellation) }
|
|
8
|
+
def cancellation; end
|
|
9
|
+
|
|
10
|
+
sig { returns(Temporalio::Converters::StorageDriverLimiter) }
|
|
11
|
+
def limiter; end
|
|
12
|
+
|
|
13
|
+
class << self
|
|
14
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverRetrieveContext) }
|
|
15
|
+
def [](*args); end
|
|
16
|
+
|
|
17
|
+
sig { returns(T::Array[Symbol]) }
|
|
18
|
+
def members; end
|
|
19
|
+
|
|
20
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverRetrieveContext) }
|
|
21
|
+
def new(*args); end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverSelectContext < ::Data
|
|
4
|
+
sig do
|
|
5
|
+
params(
|
|
6
|
+
target: T.nilable(
|
|
7
|
+
T.any(
|
|
8
|
+
Temporalio::Converters::StorageDriverWorkflowInfo,
|
|
9
|
+
Temporalio::Converters::StorageDriverActivityInfo
|
|
10
|
+
)
|
|
11
|
+
),
|
|
12
|
+
cancellation: Temporalio::Cancellation
|
|
13
|
+
).void
|
|
14
|
+
end
|
|
15
|
+
def initialize(target:, cancellation:); end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
returns(
|
|
19
|
+
T.nilable(
|
|
20
|
+
T.any(
|
|
21
|
+
Temporalio::Converters::StorageDriverWorkflowInfo,
|
|
22
|
+
Temporalio::Converters::StorageDriverActivityInfo
|
|
23
|
+
)
|
|
24
|
+
)
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
def target; end
|
|
28
|
+
|
|
29
|
+
sig { returns(Temporalio::Cancellation) }
|
|
30
|
+
def cancellation; end
|
|
31
|
+
|
|
32
|
+
class << self
|
|
33
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverSelectContext) }
|
|
34
|
+
def [](*args); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T::Array[Symbol]) }
|
|
37
|
+
def members; end
|
|
38
|
+
|
|
39
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverSelectContext) }
|
|
40
|
+
def new(*args); end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverStoreContext < ::Data
|
|
4
|
+
sig do
|
|
5
|
+
params(
|
|
6
|
+
target: T.nilable(
|
|
7
|
+
T.any(
|
|
8
|
+
Temporalio::Converters::StorageDriverWorkflowInfo,
|
|
9
|
+
Temporalio::Converters::StorageDriverActivityInfo
|
|
10
|
+
)
|
|
11
|
+
),
|
|
12
|
+
cancellation: Temporalio::Cancellation,
|
|
13
|
+
limiter: Temporalio::Converters::StorageDriverLimiter
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(target:, cancellation:, limiter:); end
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
returns(
|
|
20
|
+
T.nilable(
|
|
21
|
+
T.any(
|
|
22
|
+
Temporalio::Converters::StorageDriverWorkflowInfo,
|
|
23
|
+
Temporalio::Converters::StorageDriverActivityInfo
|
|
24
|
+
)
|
|
25
|
+
)
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
def target; end
|
|
29
|
+
|
|
30
|
+
sig { returns(Temporalio::Cancellation) }
|
|
31
|
+
def cancellation; end
|
|
32
|
+
|
|
33
|
+
sig { returns(Temporalio::Converters::StorageDriverLimiter) }
|
|
34
|
+
def limiter; end
|
|
35
|
+
|
|
36
|
+
class << self
|
|
37
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverStoreContext) }
|
|
38
|
+
def [](*args); end
|
|
39
|
+
|
|
40
|
+
sig { returns(T::Array[Symbol]) }
|
|
41
|
+
def members; end
|
|
42
|
+
|
|
43
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverStoreContext) }
|
|
44
|
+
def new(*args); end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Converters::StorageDriverWorkflowInfo < ::Data
|
|
4
|
+
sig do
|
|
5
|
+
params(
|
|
6
|
+
namespace: String,
|
|
7
|
+
id: T.nilable(String),
|
|
8
|
+
run_id: T.nilable(String),
|
|
9
|
+
type: T.nilable(String)
|
|
10
|
+
).void
|
|
11
|
+
end
|
|
12
|
+
def initialize(namespace:, id: T.unsafe(nil), run_id: T.unsafe(nil), type: T.unsafe(nil)); end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
def namespace; end
|
|
16
|
+
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
def id; end
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
def run_id; end
|
|
22
|
+
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
def type; end
|
|
25
|
+
|
|
26
|
+
class << self
|
|
27
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverWorkflowInfo) }
|
|
28
|
+
def [](*args); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T::Array[Symbol]) }
|
|
31
|
+
def members; end
|
|
32
|
+
|
|
33
|
+
sig { params(args: T.untyped).returns(Temporalio::Converters::StorageDriverWorkflowInfo) }
|
|
34
|
+
def new(*args); end
|
|
35
|
+
end
|
|
36
|
+
end
|
data/rbi/temporalio/error.rbi
CHANGED
|
@@ -5,6 +5,16 @@ class Temporalio::Error < ::StandardError
|
|
|
5
5
|
def self.canceled?(error); end
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
+
class Temporalio::Error::InvalidVersioningOverrideError < ::Temporalio::Error::Failure
|
|
9
|
+
sig { void }
|
|
10
|
+
def initialize; end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class Temporalio::Error::NamespaceNotFoundError < ::Temporalio::Error::Failure
|
|
14
|
+
sig { void }
|
|
15
|
+
def initialize; end
|
|
16
|
+
end
|
|
17
|
+
|
|
8
18
|
class Temporalio::Error::WorkflowAlreadyStartedError < ::Temporalio::Error::Failure
|
|
9
19
|
sig { params(workflow_id: String, workflow_type: String, run_id: T.nilable(String)).void }
|
|
10
20
|
def initialize(workflow_id:, workflow_type:, run_id:); end
|
|
@@ -281,6 +291,13 @@ class Temporalio::Error::ScheduleAlreadyRunningError < ::Temporalio::Error
|
|
|
281
291
|
def initialize; end
|
|
282
292
|
end
|
|
283
293
|
|
|
294
|
+
class Temporalio::Error::ExternalStorageNotConfiguredError < ::Temporalio::Error
|
|
295
|
+
extend T::Sig
|
|
296
|
+
|
|
297
|
+
sig { params(message: String).void }
|
|
298
|
+
def initialize(message = T.unsafe(nil)); end
|
|
299
|
+
end
|
|
300
|
+
|
|
284
301
|
class Temporalio::Error::RPCError < ::Temporalio::Error
|
|
285
302
|
sig { params(message: String, code: Integer, raw_grpc_status: T.nilable(Object)).void }
|
|
286
303
|
def initialize(message, code:, raw_grpc_status:); end
|
|
@@ -282,11 +282,13 @@ class Temporalio::Internal::Bridge::Api::ActivityResult::Failure
|
|
|
282
282
|
|
|
283
283
|
sig do
|
|
284
284
|
params(
|
|
285
|
-
failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
|
|
285
|
+
failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
|
|
286
|
+
cause: T.nilable(T.any(Symbol, String, Integer))
|
|
286
287
|
).void
|
|
287
288
|
end
|
|
288
289
|
def initialize(
|
|
289
|
-
failure: nil
|
|
290
|
+
failure: nil,
|
|
291
|
+
cause: :ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED
|
|
290
292
|
)
|
|
291
293
|
end
|
|
292
294
|
|
|
@@ -302,6 +304,24 @@ class Temporalio::Internal::Bridge::Api::ActivityResult::Failure
|
|
|
302
304
|
def clear_failure
|
|
303
305
|
end
|
|
304
306
|
|
|
307
|
+
# Only meaningful on ActivityExecutionResult (lang -> core); ignored on ActivityResolution,
|
|
308
|
+
# which reuses this message.
|
|
309
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
310
|
+
def cause
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Only meaningful on ActivityExecutionResult (lang -> core); ignored on ActivityResolution,
|
|
314
|
+
# which reuses this message.
|
|
315
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
316
|
+
def cause=(value)
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Only meaningful on ActivityExecutionResult (lang -> core); ignored on ActivityResolution,
|
|
320
|
+
# which reuses this message.
|
|
321
|
+
sig { void }
|
|
322
|
+
def clear_cause
|
|
323
|
+
end
|
|
324
|
+
|
|
305
325
|
sig { params(field: String).returns(T.untyped) }
|
|
306
326
|
def [](field)
|
|
307
327
|
end
|
|
@@ -545,3 +565,22 @@ class Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff
|
|
|
545
565
|
def self.descriptor
|
|
546
566
|
end
|
|
547
567
|
end
|
|
568
|
+
|
|
569
|
+
module Temporalio::Internal::Bridge::Api::ActivityResult::ActivityTaskFailedCause
|
|
570
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED = T.let(0, Integer)
|
|
571
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE = T.let(1, Integer)
|
|
572
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE = T.let(2, Integer)
|
|
573
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_ACTIVITY_WORKER_UNHANDLED_FAILURE = T.let(3, Integer)
|
|
574
|
+
|
|
575
|
+
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
576
|
+
def self.lookup(value)
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
sig { params(value: Symbol).returns(T.nilable(Integer)) }
|
|
580
|
+
def self.resolve(value)
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
sig { returns(::Google::Protobuf::EnumDescriptor) }
|
|
584
|
+
def self.descriptor
|
|
585
|
+
end
|
|
586
|
+
end
|
|
@@ -298,6 +298,8 @@ end
|
|
|
298
298
|
module Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause
|
|
299
299
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = T.let(0, Integer)
|
|
300
300
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = T.let(1, Integer)
|
|
301
|
+
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = T.let(2, Integer)
|
|
302
|
+
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE = T.let(3, Integer)
|
|
301
303
|
|
|
302
304
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
303
305
|
def self.lookup(value)
|
|
@@ -14,7 +14,8 @@ class Temporalio::Internal::Bridge::Api::ExternalData::LocalActivityMarkerData
|
|
|
14
14
|
activity_type: T.nilable(String),
|
|
15
15
|
complete_time: T.nilable(Google::Protobuf::Timestamp),
|
|
16
16
|
backoff: T.nilable(Google::Protobuf::Duration),
|
|
17
|
-
original_schedule_time: T.nilable(Google::Protobuf::Timestamp)
|
|
17
|
+
original_schedule_time: T.nilable(Google::Protobuf::Timestamp),
|
|
18
|
+
activation_index: T.nilable(Integer)
|
|
18
19
|
).void
|
|
19
20
|
end
|
|
20
21
|
def initialize(
|
|
@@ -24,7 +25,8 @@ class Temporalio::Internal::Bridge::Api::ExternalData::LocalActivityMarkerData
|
|
|
24
25
|
activity_type: "",
|
|
25
26
|
complete_time: nil,
|
|
26
27
|
backoff: nil,
|
|
27
|
-
original_schedule_time: nil
|
|
28
|
+
original_schedule_time: nil,
|
|
29
|
+
activation_index: 0
|
|
28
30
|
)
|
|
29
31
|
end
|
|
30
32
|
|
|
@@ -142,6 +144,31 @@ class Temporalio::Internal::Bridge::Api::ExternalData::LocalActivityMarkerData
|
|
|
142
144
|
def clear_original_schedule_time
|
|
143
145
|
end
|
|
144
146
|
|
|
147
|
+
# Position, within the workflow task, of the activation this resolution was delivered in.
|
|
148
|
+
# Replay must deliver resolutions in the same activations because workflow code can branch on
|
|
149
|
+
# which handles are ready. Absent in markers written by Core versions that predate this field.
|
|
150
|
+
sig { returns(Integer) }
|
|
151
|
+
def activation_index
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Position, within the workflow task, of the activation this resolution was delivered in.
|
|
155
|
+
# Replay must deliver resolutions in the same activations because workflow code can branch on
|
|
156
|
+
# which handles are ready. Absent in markers written by Core versions that predate this field.
|
|
157
|
+
sig { params(value: Integer).void }
|
|
158
|
+
def activation_index=(value)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Position, within the workflow task, of the activation this resolution was delivered in.
|
|
162
|
+
# Replay must deliver resolutions in the same activations because workflow code can branch on
|
|
163
|
+
# which handles are ready. Absent in markers written by Core versions that predate this field.
|
|
164
|
+
sig { void }
|
|
165
|
+
def clear_activation_index
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
sig { returns(T::Boolean) }
|
|
169
|
+
def has_activation_index?
|
|
170
|
+
end
|
|
171
|
+
|
|
145
172
|
sig { params(field: String).returns(T.untyped) }
|
|
146
173
|
def [](field)
|
|
147
174
|
end
|