temporalio 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +37 -67
- data/Gemfile +3 -0
- data/README.md +17 -2
- data/Rakefile +1 -1
- data/ext/Cargo.toml +3 -3
- 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 +5 -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/enums/v1/time_skipping.rb +21 -0
- 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/worker/v1/message.rb +13 -1
- data/lib/temporalio/api/workflow/v1/message.rb +1 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +4 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
- data/lib/temporalio/client/connection/workflow_service.rb +15 -0
- 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 +2 -1
- data/lib/temporalio/client.rb +4 -6
- data/lib/temporalio/converters/data_converter.rb +1 -0
- data/lib/temporalio/converters/failure_converter.rb +7 -4
- data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
- data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +3 -1
- data/lib/temporalio/internal/bridge/runtime.rb +4 -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 +25 -7
- data/lib/temporalio/scoped_logger.rb +15 -0
- 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 +100 -14
- 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 +548 -74
- 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 +4 -0
- data/rbi/temporalio/api/enums/v1/time_skipping.rbi +22 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
- data/rbi/temporalio/api/history/v1/message.rbi +27 -7
- data/rbi/temporalio/api/namespace/v1/message.rbi +95 -4
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
- data/rbi/temporalio/api/worker/v1/message.rbi +742 -2
- data/rbi/temporalio/api/workflow/v1/message.rbi +22 -2
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +701 -117
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +8 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +3 -0
- data/rbi/temporalio/client/connection.rbi +2 -0
- data/rbi/temporalio/converters/failure_converter.rbi +7 -2
- data/rbi/temporalio/internal/bridge/api/common/common.rbi +115 -0
- data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +42 -2
- data/rbi/temporalio/internal/bridge/runtime.rbi +24 -4
- data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
- data/rbi/temporalio/runtime.rbi +13 -4
- data/rbi/temporalio/scoped_logger.rbi +1 -1
- data/rbi/temporalio/worker.rbi +9 -2
- data/rbi/temporalio/workflow/future.rbi +1 -1
- data/sig/temporalio/api/activity/v1/message.rbs +48 -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 +240 -39
- 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 +18 -6
- data/sig/temporalio/api/enums/v1/time_skipping.rbs +58 -0
- data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
- data/sig/temporalio/api/history/v1/message.rbs +13 -3
- data/sig/temporalio/api/namespace/v1/message.rbs +43 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
- data/sig/temporalio/api/worker/v1/message.rbs +410 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +10 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +311 -40
- data/sig/temporalio/client/connection/workflow_service.rbs +4 -0
- data/sig/temporalio/client/connection.rbs +14 -1
- data/sig/temporalio/converters/failure_converter.rbs +4 -1
- data/sig/temporalio/internal/bridge/api/common/common.rbs +50 -0
- data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +20 -0
- data/sig/temporalio/internal/bridge/client.rbs +5 -1
- data/sig/temporalio/internal/bridge/runtime.rbs +9 -3
- data/sig/temporalio/internal/bridge/worker.rbs +5 -1
- data/sig/temporalio/runtime.rbs +14 -3
- data/sig/temporalio/scoped_logger.rbs +1 -1
- data/sig/temporalio/worker.rbs +8 -2
- metadata +4 -1
|
@@ -493,6 +493,10 @@ module Temporalio
|
|
|
493
493
|
Temporalio::Api::WorkflowService::V1::DeleteNexusOperationExecutionRequest request,
|
|
494
494
|
?rpc_options: RPCOptions?
|
|
495
495
|
) -> Temporalio::Api::WorkflowService::V1::DeleteNexusOperationExecutionResponse
|
|
496
|
+
def poll_workflow_execution_time_skipping: (
|
|
497
|
+
Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingRequest request,
|
|
498
|
+
?rpc_options: RPCOptions?
|
|
499
|
+
) -> Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingResponse
|
|
496
500
|
end
|
|
497
501
|
end
|
|
498
502
|
end
|
|
@@ -14,6 +14,7 @@ module Temporalio
|
|
|
14
14
|
attr_reader lazy_connect: bool
|
|
15
15
|
attr_reader dns_load_balancing: DnsLoadBalancingOptions?
|
|
16
16
|
attr_reader grpc_compression: GrpcCompressionOptions::Gzip | GrpcCompressionOptions::None
|
|
17
|
+
attr_reader payload_limits: PayloadLimitsOptions
|
|
17
18
|
|
|
18
19
|
def initialize: (
|
|
19
20
|
target_host: String,
|
|
@@ -27,7 +28,8 @@ module Temporalio
|
|
|
27
28
|
runtime: Runtime,
|
|
28
29
|
lazy_connect: bool,
|
|
29
30
|
dns_load_balancing: DnsLoadBalancingOptions?,
|
|
30
|
-
grpc_compression: GrpcCompressionOptions::Gzip | GrpcCompressionOptions::None
|
|
31
|
+
grpc_compression: GrpcCompressionOptions::Gzip | GrpcCompressionOptions::None,
|
|
32
|
+
payload_limits: PayloadLimitsOptions
|
|
31
33
|
) -> void
|
|
32
34
|
|
|
33
35
|
def to_h: -> Hash[Symbol, untyped]
|
|
@@ -107,6 +109,16 @@ module Temporalio
|
|
|
107
109
|
end
|
|
108
110
|
end
|
|
109
111
|
|
|
112
|
+
class PayloadLimitsOptions
|
|
113
|
+
attr_reader payloads_warn_size: Integer?
|
|
114
|
+
attr_reader memo_warn_size: Integer?
|
|
115
|
+
|
|
116
|
+
def initialize: (
|
|
117
|
+
?payloads_warn_size: Integer?,
|
|
118
|
+
?memo_warn_size: Integer?
|
|
119
|
+
) -> void
|
|
120
|
+
end
|
|
121
|
+
|
|
110
122
|
attr_reader options: Options
|
|
111
123
|
|
|
112
124
|
attr_reader workflow_service: WorkflowService
|
|
@@ -126,6 +138,7 @@ module Temporalio
|
|
|
126
138
|
?lazy_connect: bool,
|
|
127
139
|
?dns_load_balancing: DnsLoadBalancingOptions?,
|
|
128
140
|
?grpc_compression: GrpcCompressionOptions::Gzip | GrpcCompressionOptions::None,
|
|
141
|
+
?payload_limits: PayloadLimitsOptions,
|
|
129
142
|
?around_connect: nil | ^(Options) { (Options) -> void } -> void
|
|
130
143
|
) -> void
|
|
131
144
|
|
|
@@ -3,7 +3,10 @@ module Temporalio
|
|
|
3
3
|
class FailureConverter
|
|
4
4
|
def self.default: -> FailureConverter
|
|
5
5
|
|
|
6
|
-
def initialize: (
|
|
6
|
+
def initialize: (
|
|
7
|
+
?encode_common_attributes: bool,
|
|
8
|
+
?process_common_attributes: ^(Hash[Symbol, String?]) -> untyped
|
|
9
|
+
) -> void
|
|
7
10
|
|
|
8
11
|
def to_failure: (Exception error, DataConverter | PayloadConverter converter) -> Api::Failure::V1::Failure
|
|
9
12
|
def from_failure: (Api::Failure::V1::Failure failure, DataConverter | PayloadConverter converter) -> Exception
|
|
@@ -78,6 +78,56 @@ module Temporalio
|
|
|
78
78
|
| ("build_id" name, (::String | ::Symbol) value) -> void
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
+
# Metrics for a set of external payload storage operations (all uploads and downloads)
|
|
82
|
+
# performed while processing a task, so core can emit unified logging and metrics.
|
|
83
|
+
class ExternalStorageMetrics < ::Google::Protobuf::AbstractMessage
|
|
84
|
+
|
|
85
|
+
# Number of payloads stored or retrieved externally.
|
|
86
|
+
attr_reader payload_count(): ::Integer
|
|
87
|
+
attr_writer payload_count(): ::Integer | ::Float
|
|
88
|
+
def clear_payload_count: () -> void
|
|
89
|
+
|
|
90
|
+
# Total size in bytes of the externally stored or retrieved payloads.
|
|
91
|
+
attr_reader total_size_bytes(): ::Integer
|
|
92
|
+
attr_writer total_size_bytes(): ::Integer | ::Float
|
|
93
|
+
def clear_total_size_bytes: () -> void
|
|
94
|
+
|
|
95
|
+
# Wall-clock time spent on the external storage operations.
|
|
96
|
+
attr_reader total_duration(): ::Google::Protobuf::Duration?
|
|
97
|
+
attr_writer total_duration(): (::Google::Protobuf::Duration | ::int)?
|
|
98
|
+
def has_total_duration?: () -> bool
|
|
99
|
+
def clear_total_duration: () -> void
|
|
100
|
+
|
|
101
|
+
# Names of the drivers that participated in the operations.
|
|
102
|
+
attr_accessor driver_names(): ::Google::Protobuf::RepeatedField
|
|
103
|
+
def clear_driver_names: () -> void
|
|
104
|
+
|
|
105
|
+
type init_map = {
|
|
106
|
+
payload_count: (::Integer | ::Float)?,
|
|
107
|
+
"payload_count" => (::Integer | ::Float)?,
|
|
108
|
+
total_size_bytes: (::Integer | ::Float)?,
|
|
109
|
+
"total_size_bytes" => (::Integer | ::Float)?,
|
|
110
|
+
total_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
111
|
+
"total_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
112
|
+
driver_names: ::Array[::String | ::Symbol]?,
|
|
113
|
+
"driver_names" => ::Array[::String | ::Symbol]?,
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
def initialize: (?init_map initial_value) -> void
|
|
117
|
+
|
|
118
|
+
def []:
|
|
119
|
+
("payload_count" name) -> ::Integer
|
|
120
|
+
| ("total_size_bytes" name) -> ::Integer
|
|
121
|
+
| ("total_duration" name) -> ::Google::Protobuf::Duration?
|
|
122
|
+
| ("driver_names" name) -> (::Google::Protobuf::RepeatedField)
|
|
123
|
+
|
|
124
|
+
def []=:
|
|
125
|
+
("payload_count" name, (::Integer | ::Float) value) -> void
|
|
126
|
+
| ("total_size_bytes" name, (::Integer | ::Float) value) -> void
|
|
127
|
+
| ("total_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
128
|
+
| ("driver_names" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
129
|
+
end
|
|
130
|
+
|
|
81
131
|
# An indication of user's intent concerning what Build ID versioning approach should be used for
|
|
82
132
|
# a specific command
|
|
83
133
|
module VersioningIntent
|
|
@@ -26,6 +26,18 @@ module Temporalio
|
|
|
26
26
|
def has_failed?: () -> bool
|
|
27
27
|
def clear_failed: () -> void
|
|
28
28
|
|
|
29
|
+
# Metrics for external payload storage downloads (retrievals) performed while processing
|
|
30
|
+
# this activation. Only set when external storage retrieved payloads.
|
|
31
|
+
attr_accessor payload_download_metrics(): ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics?
|
|
32
|
+
def has_payload_download_metrics?: () -> bool
|
|
33
|
+
def clear_payload_download_metrics: () -> void
|
|
34
|
+
|
|
35
|
+
# Metrics for external payload storage uploads (stores) performed while processing this
|
|
36
|
+
# activation. Only set when external storage stored payloads.
|
|
37
|
+
attr_accessor payload_upload_metrics(): ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics?
|
|
38
|
+
def has_payload_upload_metrics?: () -> bool
|
|
39
|
+
def clear_payload_upload_metrics: () -> void
|
|
40
|
+
|
|
29
41
|
attr_reader status(): (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure)?
|
|
30
42
|
def has_status?: () -> bool
|
|
31
43
|
def clear_status: () -> void
|
|
@@ -37,6 +49,10 @@ module Temporalio
|
|
|
37
49
|
"successful" => (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success::init_map)?,
|
|
38
50
|
failed: (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure::init_map)?,
|
|
39
51
|
"failed" => (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure::init_map)?,
|
|
52
|
+
payload_download_metrics: (::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics | ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics::init_map)?,
|
|
53
|
+
"payload_download_metrics" => (::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics | ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics::init_map)?,
|
|
54
|
+
payload_upload_metrics: (::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics | ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics::init_map)?,
|
|
55
|
+
"payload_upload_metrics" => (::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics | ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics::init_map)?,
|
|
40
56
|
}
|
|
41
57
|
|
|
42
58
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -45,11 +61,15 @@ module Temporalio
|
|
|
45
61
|
("run_id" name) -> ::String
|
|
46
62
|
| ("successful" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success?
|
|
47
63
|
| ("failed" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure?
|
|
64
|
+
| ("payload_download_metrics" name) -> ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics?
|
|
65
|
+
| ("payload_upload_metrics" name) -> ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics?
|
|
48
66
|
|
|
49
67
|
def []=:
|
|
50
68
|
("run_id" name, (::String | ::Symbol) value) -> void
|
|
51
69
|
| ("successful" name, ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success? value) -> void
|
|
52
70
|
| ("failed" name, ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure? value) -> void
|
|
71
|
+
| ("payload_download_metrics" name, ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics? value) -> void
|
|
72
|
+
| ("payload_upload_metrics" name, ::Temporalio::Internal::Bridge::Api::Common::ExternalStorageMetrics? value) -> void
|
|
53
73
|
end
|
|
54
74
|
|
|
55
75
|
# Successful workflow activation with a list of commands generated by the workflow execution
|
|
@@ -15,6 +15,8 @@ module Temporalio
|
|
|
15
15
|
attr_accessor http_connect_proxy: HTTPConnectProxyOptions?
|
|
16
16
|
attr_accessor dns_load_balancing: DnsLoadBalancingOptions?
|
|
17
17
|
attr_accessor grpc_compression: GrpcCompressionOptions?
|
|
18
|
+
attr_accessor payloads_warn_size: Integer?
|
|
19
|
+
attr_accessor memo_warn_size: Integer?
|
|
18
20
|
|
|
19
21
|
def initialize: (
|
|
20
22
|
target_host: String,
|
|
@@ -28,7 +30,9 @@ module Temporalio
|
|
|
28
30
|
?keep_alive: KeepAliveOptions?,
|
|
29
31
|
?http_connect_proxy: HTTPConnectProxyOptions?,
|
|
30
32
|
?dns_load_balancing: DnsLoadBalancingOptions?,
|
|
31
|
-
?grpc_compression: GrpcCompressionOptions
|
|
33
|
+
?grpc_compression: GrpcCompressionOptions?,
|
|
34
|
+
?payloads_warn_size: Integer?,
|
|
35
|
+
?memo_warn_size: Integer?
|
|
32
36
|
) -> void
|
|
33
37
|
end
|
|
34
38
|
|
|
@@ -5,10 +5,14 @@ module Temporalio
|
|
|
5
5
|
class Options
|
|
6
6
|
attr_accessor telemetry: TelemetryOptions
|
|
7
7
|
attr_accessor worker_heartbeat_interval: Float?
|
|
8
|
+
attr_accessor disable_environment_info: bool
|
|
9
|
+
attr_accessor runtime_version: String?
|
|
8
10
|
|
|
9
11
|
def initialize: (
|
|
10
12
|
telemetry: TelemetryOptions,
|
|
11
|
-
worker_heartbeat_interval: Float
|
|
13
|
+
worker_heartbeat_interval: Float?,
|
|
14
|
+
disable_environment_info: bool,
|
|
15
|
+
runtime_version: String?
|
|
12
16
|
) -> void
|
|
13
17
|
end
|
|
14
18
|
|
|
@@ -24,9 +28,11 @@ module Temporalio
|
|
|
24
28
|
|
|
25
29
|
class LoggingOptions
|
|
26
30
|
attr_accessor log_filter: String?
|
|
31
|
+
attr_accessor log_format: String?
|
|
27
32
|
|
|
28
33
|
def initialize: (
|
|
29
|
-
log_filter: String
|
|
34
|
+
log_filter: String?,
|
|
35
|
+
log_format: String?
|
|
30
36
|
) -> void
|
|
31
37
|
end
|
|
32
38
|
|
|
@@ -94,4 +100,4 @@ module Temporalio
|
|
|
94
100
|
end
|
|
95
101
|
end
|
|
96
102
|
end
|
|
97
|
-
end
|
|
103
|
+
end
|
|
@@ -20,11 +20,13 @@ module Temporalio
|
|
|
20
20
|
attr_accessor default_heartbeat_throttle_interval: Float
|
|
21
21
|
attr_accessor max_worker_activities_per_second: Float?
|
|
22
22
|
attr_accessor max_task_queue_activities_per_second: Float?
|
|
23
|
+
attr_accessor max_eager_activity_reservations_per_workflow_task: Integer
|
|
23
24
|
attr_accessor graceful_shutdown_period: Float
|
|
24
25
|
attr_accessor nondeterminism_as_workflow_fail: bool
|
|
25
26
|
attr_accessor nondeterminism_as_workflow_fail_for_types: Array[String]
|
|
26
27
|
attr_accessor deployment_options: DeploymentOptions?
|
|
27
28
|
attr_accessor plugins: Array[String]
|
|
29
|
+
attr_accessor disable_payload_error_limit: bool
|
|
28
30
|
|
|
29
31
|
def initialize: (
|
|
30
32
|
namespace: String,
|
|
@@ -44,11 +46,13 @@ module Temporalio
|
|
|
44
46
|
default_heartbeat_throttle_interval: Float,
|
|
45
47
|
max_worker_activities_per_second: Float?,
|
|
46
48
|
max_task_queue_activities_per_second: Float?,
|
|
49
|
+
max_eager_activity_reservations_per_workflow_task: Integer,
|
|
47
50
|
graceful_shutdown_period: Float,
|
|
48
51
|
nondeterminism_as_workflow_fail: bool,
|
|
49
52
|
nondeterminism_as_workflow_fail_for_types: Array[String],
|
|
50
53
|
deployment_options: DeploymentOptions?,
|
|
51
|
-
plugins: Array[String]
|
|
54
|
+
plugins: Array[String],
|
|
55
|
+
disable_payload_error_limit: bool
|
|
52
56
|
) -> void
|
|
53
57
|
end
|
|
54
58
|
|
data/sig/temporalio/runtime.rbs
CHANGED
|
@@ -14,14 +14,24 @@ module Temporalio
|
|
|
14
14
|
|
|
15
15
|
class LoggingOptions
|
|
16
16
|
attr_reader log_filter: LoggingFilterOptions | String
|
|
17
|
+
attr_reader log_format: ConsoleLogFormat::enum?
|
|
17
18
|
|
|
18
19
|
def initialize: (
|
|
19
|
-
?log_filter: LoggingFilterOptions | String
|
|
20
|
+
?log_filter: LoggingFilterOptions | String,
|
|
21
|
+
?log_format: ConsoleLogFormat::enum?
|
|
20
22
|
) -> void
|
|
21
23
|
|
|
22
24
|
def _to_bridge: -> Internal::Bridge::Runtime::LoggingOptions
|
|
23
25
|
end
|
|
24
26
|
|
|
27
|
+
module ConsoleLogFormat
|
|
28
|
+
COMPACT: :compact
|
|
29
|
+
PRETTY: :pretty
|
|
30
|
+
JSON: :json
|
|
31
|
+
|
|
32
|
+
type enum = :compact | :pretty | :json
|
|
33
|
+
end
|
|
34
|
+
|
|
25
35
|
type logging_filter_level = 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR'
|
|
26
36
|
|
|
27
37
|
class LoggingFilterOptions
|
|
@@ -110,9 +120,10 @@ module Temporalio
|
|
|
110
120
|
|
|
111
121
|
def initialize: (
|
|
112
122
|
?telemetry: TelemetryOptions,
|
|
113
|
-
?worker_heartbeat_interval: Float
|
|
123
|
+
?worker_heartbeat_interval: Float?,
|
|
124
|
+
?disable_environment_info: bool
|
|
114
125
|
) -> void
|
|
115
126
|
|
|
116
127
|
def _core_runtime: -> Internal::Bridge::Runtime
|
|
117
128
|
end
|
|
118
|
-
end
|
|
129
|
+
end
|
data/sig/temporalio/worker.rbs
CHANGED
|
@@ -30,6 +30,7 @@ module Temporalio
|
|
|
30
30
|
attr_reader default_heartbeat_throttle_interval: Float
|
|
31
31
|
attr_reader max_activities_per_second: Float?
|
|
32
32
|
attr_reader max_task_queue_activities_per_second: Float?
|
|
33
|
+
attr_reader max_eager_activity_reservations_per_workflow_task: Integer
|
|
33
34
|
attr_reader graceful_shutdown_period: Float
|
|
34
35
|
attr_reader disable_eager_activity_execution: bool
|
|
35
36
|
attr_reader illegal_workflow_calls: Hash[String, :all | Array[Symbol | IllegalWorkflowCallValidator] | IllegalWorkflowCallValidator]
|
|
@@ -41,6 +42,7 @@ module Temporalio
|
|
|
41
42
|
attr_reader deployment_options: Worker::DeploymentOptions
|
|
42
43
|
attr_reader patch_activation_callback: Proc?
|
|
43
44
|
attr_reader debug_mode: bool
|
|
45
|
+
attr_reader disable_payload_error_limit: bool
|
|
44
46
|
|
|
45
47
|
def initialize: (
|
|
46
48
|
client: Client,
|
|
@@ -64,6 +66,7 @@ module Temporalio
|
|
|
64
66
|
default_heartbeat_throttle_interval: Float,
|
|
65
67
|
max_activities_per_second: Float?,
|
|
66
68
|
max_task_queue_activities_per_second: Float?,
|
|
69
|
+
max_eager_activity_reservations_per_workflow_task: Integer,
|
|
67
70
|
graceful_shutdown_period: Float,
|
|
68
71
|
disable_eager_activity_execution: bool,
|
|
69
72
|
illegal_workflow_calls: Hash[String, :all | Array[Symbol | IllegalWorkflowCallValidator] | IllegalWorkflowCallValidator],
|
|
@@ -74,7 +77,8 @@ module Temporalio
|
|
|
74
77
|
activity_task_poller_behavior: PollerBehavior,
|
|
75
78
|
deployment_options: Worker::DeploymentOptions,
|
|
76
79
|
patch_activation_callback: Proc?,
|
|
77
|
-
debug_mode: bool
|
|
80
|
+
debug_mode: bool,
|
|
81
|
+
disable_payload_error_limit: bool
|
|
78
82
|
) -> void
|
|
79
83
|
|
|
80
84
|
def with: (**Object kwargs) -> Options
|
|
@@ -128,6 +132,7 @@ module Temporalio
|
|
|
128
132
|
?default_heartbeat_throttle_interval: Float,
|
|
129
133
|
?max_activities_per_second: Float?,
|
|
130
134
|
?max_task_queue_activities_per_second: Float?,
|
|
135
|
+
?max_eager_activity_reservations_per_workflow_task: Integer,
|
|
131
136
|
?graceful_shutdown_period: Float,
|
|
132
137
|
?disable_eager_activity_execution: bool,
|
|
133
138
|
?illegal_workflow_calls: Hash[String, :all | Array[Symbol | IllegalWorkflowCallValidator] | IllegalWorkflowCallValidator],
|
|
@@ -138,7 +143,8 @@ module Temporalio
|
|
|
138
143
|
?activity_task_poller_behavior: PollerBehavior,
|
|
139
144
|
?deployment_options: Worker::DeploymentOptions,
|
|
140
145
|
?patch_activation_callback: Proc?,
|
|
141
|
-
?debug_mode: bool
|
|
146
|
+
?debug_mode: bool,
|
|
147
|
+
?disable_payload_error_limit: bool
|
|
142
148
|
) -> void
|
|
143
149
|
|
|
144
150
|
def _initialize_from_options: -> void
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: temporalio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Temporal Technologies Inc
|
|
@@ -98,6 +98,7 @@ files:
|
|
|
98
98
|
- lib/temporalio/api/enums/v1/reset.rb
|
|
99
99
|
- lib/temporalio/api/enums/v1/schedule.rb
|
|
100
100
|
- lib/temporalio/api/enums/v1/task_queue.rb
|
|
101
|
+
- lib/temporalio/api/enums/v1/time_skipping.rb
|
|
101
102
|
- lib/temporalio/api/enums/v1/update.rb
|
|
102
103
|
- lib/temporalio/api/enums/v1/workflow.rb
|
|
103
104
|
- lib/temporalio/api/errordetails/v1/message.rb
|
|
@@ -315,6 +316,7 @@ files:
|
|
|
315
316
|
- rbi/temporalio/api/enums/v1/reset.rbi
|
|
316
317
|
- rbi/temporalio/api/enums/v1/schedule.rbi
|
|
317
318
|
- rbi/temporalio/api/enums/v1/task_queue.rbi
|
|
319
|
+
- rbi/temporalio/api/enums/v1/time_skipping.rbi
|
|
318
320
|
- rbi/temporalio/api/enums/v1/update.rbi
|
|
319
321
|
- rbi/temporalio/api/enums/v1/workflow.rbi
|
|
320
322
|
- rbi/temporalio/api/errordetails/v1/message.rbi
|
|
@@ -536,6 +538,7 @@ files:
|
|
|
536
538
|
- sig/temporalio/api/enums/v1/reset.rbs
|
|
537
539
|
- sig/temporalio/api/enums/v1/schedule.rbs
|
|
538
540
|
- sig/temporalio/api/enums/v1/task_queue.rbs
|
|
541
|
+
- sig/temporalio/api/enums/v1/time_skipping.rbs
|
|
539
542
|
- sig/temporalio/api/enums/v1/update.rbs
|
|
540
543
|
- sig/temporalio/api/enums/v1/workflow.rbs
|
|
541
544
|
- sig/temporalio/api/errordetails/v1/message.rbs
|