temporalio 1.8.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/activity/info.rb +0 -3
- 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/activity_execution.rb +1 -5
- data/lib/temporalio/client/activity_execution_count.rb +0 -4
- data/lib/temporalio/client/activity_execution_status.rb +0 -2
- data/lib/temporalio/client/activity_handle.rb +9 -6
- data/lib/temporalio/client/activity_id_reference.rb +0 -4
- data/lib/temporalio/client/interceptor.rb +1 -29
- data/lib/temporalio/client/pending_activity_state.rb +0 -2
- data/lib/temporalio/client/schedule.rb +8 -7
- data/lib/temporalio/client/with_start_workflow_operation.rb +1 -1
- data/lib/temporalio/client.rb +10 -20
- data/lib/temporalio/common_enums.rb +0 -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 -2
- data/lib/temporalio/error.rb +17 -2
- 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/client/implementation.rb +6 -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/activity_execution.rbi +1 -1
- data/rbi/temporalio/client/interceptor.rbi +1 -1
- data/rbi/temporalio/client/schedule.rbi +2 -2
- data/rbi/temporalio/client.rbi +4 -4
- 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/activity_execution.rbs +1 -1
- data/sig/temporalio/client/interceptor.rbs +2 -2
- data/sig/temporalio/client/schedule.rbs +3 -2
- data/sig/temporalio/client.rbs +2 -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
data/rbi/temporalio/client.rbi
CHANGED
|
@@ -179,7 +179,7 @@ class Temporalio::Client
|
|
|
179
179
|
id_conflict_policy: Integer,
|
|
180
180
|
retry_policy: T.nilable(Temporalio::RetryPolicy),
|
|
181
181
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
182
|
-
|
|
182
|
+
summary: T.nilable(String),
|
|
183
183
|
static_details: T.nilable(String),
|
|
184
184
|
priority: Temporalio::Priority,
|
|
185
185
|
start_delay: T.nilable(T.any(Integer, Float)),
|
|
@@ -201,7 +201,7 @@ class Temporalio::Client
|
|
|
201
201
|
id_conflict_policy: T.unsafe(nil),
|
|
202
202
|
retry_policy: T.unsafe(nil),
|
|
203
203
|
search_attributes: T.unsafe(nil),
|
|
204
|
-
|
|
204
|
+
summary: T.unsafe(nil),
|
|
205
205
|
static_details: T.unsafe(nil),
|
|
206
206
|
priority: T.unsafe(nil),
|
|
207
207
|
start_delay: T.unsafe(nil),
|
|
@@ -225,7 +225,7 @@ class Temporalio::Client
|
|
|
225
225
|
id_conflict_policy: Integer,
|
|
226
226
|
retry_policy: T.nilable(Temporalio::RetryPolicy),
|
|
227
227
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
228
|
-
|
|
228
|
+
summary: T.nilable(String),
|
|
229
229
|
static_details: T.nilable(String),
|
|
230
230
|
priority: Temporalio::Priority,
|
|
231
231
|
start_delay: T.nilable(T.any(Integer, Float)),
|
|
@@ -247,7 +247,7 @@ class Temporalio::Client
|
|
|
247
247
|
id_conflict_policy: T.unsafe(nil),
|
|
248
248
|
retry_policy: T.unsafe(nil),
|
|
249
249
|
search_attributes: T.unsafe(nil),
|
|
250
|
-
|
|
250
|
+
summary: T.unsafe(nil),
|
|
251
251
|
static_details: T.unsafe(nil),
|
|
252
252
|
priority: T.unsafe(nil),
|
|
253
253
|
start_delay: T.unsafe(nil),
|
|
@@ -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
|