temporalio 1.6.0 → 1.8.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 +25 -2
- data/Rakefile +20 -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/activity_execution.rb +82 -1
- data/lib/temporalio/client/activity_execution_options.rb +39 -0
- data/lib/temporalio/client/activity_execution_status.rb +1 -0
- data/lib/temporalio/client/activity_handle.rb +122 -1
- data/lib/temporalio/client/activity_options.rb +113 -0
- data/lib/temporalio/client/connection/workflow_service.rb +15 -0
- data/lib/temporalio/client/connection.rb +33 -3
- data/lib/temporalio/client/interceptor.rb +65 -0
- 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/client/implementation.rb +54 -2
- 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 +18 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +11 -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/activity_execution.rbi +27 -0
- data/rbi/temporalio/client/activity_execution_options.rbi +58 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +1 -0
- data/rbi/temporalio/client/activity_handle.rbi +43 -2
- data/rbi/temporalio/client/activity_options.rbi +49 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +3 -0
- data/rbi/temporalio/client/connection.rbi +2 -0
- data/rbi/temporalio/client/interceptor.rbi +107 -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/activity_execution.rbs +10 -0
- data/sig/temporalio/client/activity_execution_options.rbs +27 -0
- data/sig/temporalio/client/activity_execution_status.rbs +1 -0
- data/sig/temporalio/client/activity_handle.rbs +23 -1
- data/sig/temporalio/client/activity_options.rbs +30 -0
- data/sig/temporalio/client/connection/workflow_service.rbs +4 -0
- data/sig/temporalio/client/connection.rbs +14 -1
- data/sig/temporalio/client/interceptor.rbs +62 -0
- 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/internal/client/implementation.rbs +7 -0
- data/sig/temporalio/runtime.rbs +14 -3
- data/sig/temporalio/scoped_logger.rbs +1 -1
- data/sig/temporalio/worker.rbs +8 -2
- metadata +10 -1
|
@@ -47,11 +47,17 @@ module Temporalio
|
|
|
47
47
|
attr_writer run_id(): ::String | ::Symbol
|
|
48
48
|
def clear_run_id: () -> void
|
|
49
49
|
|
|
50
|
+
attr_reader first_execution_run_id(): ::String
|
|
51
|
+
attr_writer first_execution_run_id(): ::String | ::Symbol
|
|
52
|
+
def clear_first_execution_run_id: () -> void
|
|
53
|
+
|
|
50
54
|
type init_map = {
|
|
51
55
|
start_request_id: (::String | ::Symbol)?,
|
|
52
56
|
"start_request_id" => (::String | ::Symbol)?,
|
|
53
57
|
run_id: (::String | ::Symbol)?,
|
|
54
58
|
"run_id" => (::String | ::Symbol)?,
|
|
59
|
+
first_execution_run_id: (::String | ::Symbol)?,
|
|
60
|
+
"first_execution_run_id" => (::String | ::Symbol)?,
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -59,10 +65,12 @@ module Temporalio
|
|
|
59
65
|
def []:
|
|
60
66
|
("start_request_id" name) -> ::String
|
|
61
67
|
| ("run_id" name) -> ::String
|
|
68
|
+
| ("first_execution_run_id" name) -> ::String
|
|
62
69
|
|
|
63
70
|
def []=:
|
|
64
71
|
("start_request_id" name, (::String | ::Symbol) value) -> void
|
|
65
72
|
| ("run_id" name, (::String | ::Symbol) value) -> void
|
|
73
|
+
| ("first_execution_run_id" name, (::String | ::Symbol) value) -> void
|
|
66
74
|
end
|
|
67
75
|
|
|
68
76
|
class NamespaceNotActiveFailure < ::Google::Protobuf::AbstractMessage
|
|
@@ -518,6 +526,17 @@ module Temporalio
|
|
|
518
526
|
("start_request_id" name, (::String | ::Symbol) value) -> void
|
|
519
527
|
| ("run_id" name, (::String | ::Symbol) value) -> void
|
|
520
528
|
end
|
|
529
|
+
|
|
530
|
+
# An error indicating that the server lost the buffered pages of a paginated workflow task
|
|
531
|
+
# completion. This is a transient error: the workflow task is still valid, and the client
|
|
532
|
+
# should resend all pages from page 0 using the same task token.
|
|
533
|
+
class WorkflowTaskCompletionBufferLostFailure < ::Google::Protobuf::AbstractMessage
|
|
534
|
+
|
|
535
|
+
type init_map = {
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
def initialize: (?init_map initial_value) -> void
|
|
539
|
+
end
|
|
521
540
|
end
|
|
522
541
|
end
|
|
523
542
|
end
|
|
@@ -2694,6 +2694,12 @@ module Temporalio
|
|
|
2694
2694
|
def has_time_skipping_state_propagation?: () -> bool
|
|
2695
2695
|
def clear_time_skipping_state_propagation: () -> void
|
|
2696
2696
|
|
|
2697
|
+
# Versioning override requested for the child workflow. If present, this explicit override
|
|
2698
|
+
# takes precedence over versioning behavior inherited from the parent workflow.
|
|
2699
|
+
attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride?
|
|
2700
|
+
def has_versioning_override?: () -> bool
|
|
2701
|
+
def clear_versioning_override: () -> void
|
|
2702
|
+
|
|
2697
2703
|
type init_map = {
|
|
2698
2704
|
namespace: (::String | ::Symbol)?,
|
|
2699
2705
|
"namespace" => (::String | ::Symbol)?,
|
|
@@ -2739,6 +2745,8 @@ module Temporalio
|
|
|
2739
2745
|
"time_skipping_config" => (::Temporalio::Api::Common::V1::TimeSkippingConfig | ::Temporalio::Api::Common::V1::TimeSkippingConfig::init_map)?,
|
|
2740
2746
|
time_skipping_state_propagation: (::Temporalio::Api::Common::V1::TimeSkippingStatePropagation | ::Temporalio::Api::Common::V1::TimeSkippingStatePropagation::init_map)?,
|
|
2741
2747
|
"time_skipping_state_propagation" => (::Temporalio::Api::Common::V1::TimeSkippingStatePropagation | ::Temporalio::Api::Common::V1::TimeSkippingStatePropagation::init_map)?,
|
|
2748
|
+
versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
|
|
2749
|
+
"versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?,
|
|
2742
2750
|
}
|
|
2743
2751
|
|
|
2744
2752
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -2766,6 +2774,7 @@ module Temporalio
|
|
|
2766
2774
|
| ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
|
|
2767
2775
|
| ("time_skipping_config" name) -> ::Temporalio::Api::Common::V1::TimeSkippingConfig?
|
|
2768
2776
|
| ("time_skipping_state_propagation" name) -> ::Temporalio::Api::Common::V1::TimeSkippingStatePropagation?
|
|
2777
|
+
| ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride?
|
|
2769
2778
|
|
|
2770
2779
|
def []=:
|
|
2771
2780
|
("namespace" name, (::String | ::Symbol) value) -> void
|
|
@@ -2790,6 +2799,7 @@ module Temporalio
|
|
|
2790
2799
|
| ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
|
|
2791
2800
|
| ("time_skipping_config" name, ::Temporalio::Api::Common::V1::TimeSkippingConfig? value) -> void
|
|
2792
2801
|
| ("time_skipping_state_propagation" name, ::Temporalio::Api::Common::V1::TimeSkippingStatePropagation? value) -> void
|
|
2802
|
+
| ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void
|
|
2793
2803
|
end
|
|
2794
2804
|
|
|
2795
2805
|
class StartChildWorkflowExecutionFailedEventAttributes < ::Google::Protobuf::AbstractMessage
|
|
@@ -3784,8 +3794,8 @@ module Temporalio
|
|
|
3784
3794
|
| ("request_id" name, (::String | ::Symbol) value) -> void
|
|
3785
3795
|
end
|
|
3786
3796
|
|
|
3787
|
-
# Attributes for an event indicating that time skipping state changed for a workflow execution
|
|
3788
|
-
# either time was advanced or time skipping was
|
|
3797
|
+
# Attributes for an event indicating that time skipping state changed for a workflow execution:
|
|
3798
|
+
# either time was advanced, or time skipping was stopped automatically due to the fast_forward completing.
|
|
3789
3799
|
# The worker_may_ignore field in HistoryEvent should always be set true for this event.
|
|
3790
3800
|
class WorkflowExecutionTimeSkippingTransitionedEventAttributes < ::Google::Protobuf::AbstractMessage
|
|
3791
3801
|
|
|
@@ -3795,7 +3805,7 @@ module Temporalio
|
|
|
3795
3805
|
def has_target_time?: () -> bool
|
|
3796
3806
|
def clear_target_time: () -> void
|
|
3797
3807
|
|
|
3798
|
-
# When true, time skipping has been
|
|
3808
|
+
# When true, time skipping has been stopped automatically due to a call to fast_forward completing.
|
|
3799
3809
|
# (-- api-linter: core::0140::prepositions=disabled
|
|
3800
3810
|
# aip.dev/not-precedent: "after" is used to indicate temporal ordering. --)
|
|
3801
3811
|
attr_accessor disabled_after_fast_forward(): bool
|
|
@@ -69,6 +69,22 @@ module Temporalio
|
|
|
69
69
|
attr_accessor poller_autoscaling_auto_enroll(): bool
|
|
70
70
|
def clear_poller_autoscaling_auto_enroll: () -> void
|
|
71
71
|
|
|
72
|
+
# True if the namespace supports pagination of `RespondWorkflowTaskCompleted` request.
|
|
73
|
+
attr_accessor workflow_task_completion_pagination(): bool
|
|
74
|
+
def clear_workflow_task_completion_pagination: () -> void
|
|
75
|
+
|
|
76
|
+
# True if the namespace supports start delay for standalone activities.
|
|
77
|
+
attr_accessor standalone_activity_start_delay(): bool
|
|
78
|
+
def clear_standalone_activity_start_delay: () -> void
|
|
79
|
+
|
|
80
|
+
# True if the namespace supports batch operations for standalone activities.
|
|
81
|
+
attr_accessor standalone_activity_batch_operations(): bool
|
|
82
|
+
def clear_standalone_activity_batch_operations: () -> void
|
|
83
|
+
|
|
84
|
+
# True if the namespace supports standalone activity operator commands.
|
|
85
|
+
attr_accessor standalone_activity_operator_commands(): bool
|
|
86
|
+
def clear_standalone_activity_operator_commands: () -> void
|
|
87
|
+
|
|
72
88
|
type init_map = {
|
|
73
89
|
eager_workflow_start: bool?,
|
|
74
90
|
"eager_workflow_start" => bool?,
|
|
@@ -96,6 +112,14 @@ module Temporalio
|
|
|
96
112
|
"workflow_update_callbacks" => bool?,
|
|
97
113
|
poller_autoscaling_auto_enroll: bool?,
|
|
98
114
|
"poller_autoscaling_auto_enroll" => bool?,
|
|
115
|
+
workflow_task_completion_pagination: bool?,
|
|
116
|
+
"workflow_task_completion_pagination" => bool?,
|
|
117
|
+
standalone_activity_start_delay: bool?,
|
|
118
|
+
"standalone_activity_start_delay" => bool?,
|
|
119
|
+
standalone_activity_batch_operations: bool?,
|
|
120
|
+
"standalone_activity_batch_operations" => bool?,
|
|
121
|
+
standalone_activity_operator_commands: bool?,
|
|
122
|
+
"standalone_activity_operator_commands" => bool?,
|
|
99
123
|
}
|
|
100
124
|
|
|
101
125
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -114,6 +138,10 @@ module Temporalio
|
|
|
114
138
|
| ("standalone_nexus_operation" name) -> bool
|
|
115
139
|
| ("workflow_update_callbacks" name) -> bool
|
|
116
140
|
| ("poller_autoscaling_auto_enroll" name) -> bool
|
|
141
|
+
| ("workflow_task_completion_pagination" name) -> bool
|
|
142
|
+
| ("standalone_activity_start_delay" name) -> bool
|
|
143
|
+
| ("standalone_activity_batch_operations" name) -> bool
|
|
144
|
+
| ("standalone_activity_operator_commands" name) -> bool
|
|
117
145
|
|
|
118
146
|
def []=:
|
|
119
147
|
("eager_workflow_start" name, bool value) -> void
|
|
@@ -129,6 +157,10 @@ module Temporalio
|
|
|
129
157
|
| ("standalone_nexus_operation" name, bool value) -> void
|
|
130
158
|
| ("workflow_update_callbacks" name, bool value) -> void
|
|
131
159
|
| ("poller_autoscaling_auto_enroll" name, bool value) -> void
|
|
160
|
+
| ("workflow_task_completion_pagination" name, bool value) -> void
|
|
161
|
+
| ("standalone_activity_start_delay" name, bool value) -> void
|
|
162
|
+
| ("standalone_activity_batch_operations" name, bool value) -> void
|
|
163
|
+
| ("standalone_activity_operator_commands" name, bool value) -> void
|
|
132
164
|
end
|
|
133
165
|
|
|
134
166
|
class Limits < ::Google::Protobuf::AbstractMessage
|
|
@@ -145,11 +177,20 @@ module Temporalio
|
|
|
145
177
|
attr_writer memo_size_limit_error(): ::Integer | ::Float
|
|
146
178
|
def clear_memo_size_limit_error: () -> void
|
|
147
179
|
|
|
180
|
+
# Maximum total size in bytes of a single RespondWorkflowTaskCompleted request.
|
|
181
|
+
# Requests exceeding this fail the workflow task with
|
|
182
|
+
# WORKFLOW_TASK_FAILED_CAUSE_REQUEST_TOO_LARGE. 0 means no explicit limit.
|
|
183
|
+
attr_reader workflow_task_completion_size_limit_error(): ::Integer
|
|
184
|
+
attr_writer workflow_task_completion_size_limit_error(): ::Integer | ::Float
|
|
185
|
+
def clear_workflow_task_completion_size_limit_error: () -> void
|
|
186
|
+
|
|
148
187
|
type init_map = {
|
|
149
188
|
blob_size_limit_error: (::Integer | ::Float)?,
|
|
150
189
|
"blob_size_limit_error" => (::Integer | ::Float)?,
|
|
151
190
|
memo_size_limit_error: (::Integer | ::Float)?,
|
|
152
191
|
"memo_size_limit_error" => (::Integer | ::Float)?,
|
|
192
|
+
workflow_task_completion_size_limit_error: (::Integer | ::Float)?,
|
|
193
|
+
"workflow_task_completion_size_limit_error" => (::Integer | ::Float)?,
|
|
153
194
|
}
|
|
154
195
|
|
|
155
196
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -157,10 +198,12 @@ module Temporalio
|
|
|
157
198
|
def []:
|
|
158
199
|
("blob_size_limit_error" name) -> ::Integer
|
|
159
200
|
| ("memo_size_limit_error" name) -> ::Integer
|
|
201
|
+
| ("workflow_task_completion_size_limit_error" name) -> ::Integer
|
|
160
202
|
|
|
161
203
|
def []=:
|
|
162
204
|
("blob_size_limit_error" name, (::Integer | ::Float) value) -> void
|
|
163
205
|
| ("memo_size_limit_error" name, (::Integer | ::Float) value) -> void
|
|
206
|
+
| ("workflow_task_completion_size_limit_error" name, (::Integer | ::Float) value) -> void
|
|
164
207
|
end
|
|
165
208
|
|
|
166
209
|
attr_reader name(): ::String
|
|
@@ -313,6 +313,13 @@ module Temporalio
|
|
|
313
313
|
attr_writer tasks_dispatch_rate(): ::Float | ::Integer
|
|
314
314
|
def clear_tasks_dispatch_rate: () -> void
|
|
315
315
|
|
|
316
|
+
# Whether rate limiting blocked any dispatches within the recent observation window (approximately
|
|
317
|
+
# 30 seconds). When true, adding more workers will not increase throughput — the bottleneck is the
|
|
318
|
+
# rate limit, not worker count. This field is useful for auto-scaling systems to avoid unnecessary
|
|
319
|
+
# scale-up.
|
|
320
|
+
attr_accessor rate_limiting_active(): bool
|
|
321
|
+
def clear_rate_limiting_active: () -> void
|
|
322
|
+
|
|
316
323
|
type init_map = {
|
|
317
324
|
approximate_backlog_count: (::Integer | ::Float)?,
|
|
318
325
|
"approximate_backlog_count" => (::Integer | ::Float)?,
|
|
@@ -322,6 +329,8 @@ module Temporalio
|
|
|
322
329
|
"tasks_add_rate" => (::Float | ::Integer)?,
|
|
323
330
|
tasks_dispatch_rate: (::Float | ::Integer)?,
|
|
324
331
|
"tasks_dispatch_rate" => (::Float | ::Integer)?,
|
|
332
|
+
rate_limiting_active: bool?,
|
|
333
|
+
"rate_limiting_active" => bool?,
|
|
325
334
|
}
|
|
326
335
|
|
|
327
336
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -331,12 +340,14 @@ module Temporalio
|
|
|
331
340
|
| ("approximate_backlog_age" name) -> ::Google::Protobuf::Duration?
|
|
332
341
|
| ("tasks_add_rate" name) -> ::Float
|
|
333
342
|
| ("tasks_dispatch_rate" name) -> ::Float
|
|
343
|
+
| ("rate_limiting_active" name) -> bool
|
|
334
344
|
|
|
335
345
|
def []=:
|
|
336
346
|
("approximate_backlog_count" name, (::Integer | ::Float) value) -> void
|
|
337
347
|
| ("approximate_backlog_age" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
338
348
|
| ("tasks_add_rate" name, (::Float | ::Integer) value) -> void
|
|
339
349
|
| ("tasks_dispatch_rate" name, (::Float | ::Integer) value) -> void
|
|
350
|
+
| ("rate_limiting_active" name, bool value) -> void
|
|
340
351
|
end
|
|
341
352
|
|
|
342
353
|
# Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior.
|
|
@@ -845,6 +856,39 @@ module Temporalio
|
|
|
845
856
|
| ("weight" name, (::Float | ::Integer) value) -> void
|
|
846
857
|
end
|
|
847
858
|
|
|
859
|
+
# A versioned snapshot of the poller groups the client should use for future polls to a task
|
|
860
|
+
# queue. The version is monotonically increasing so that a client can ignore a snapshot that is
|
|
861
|
+
# older than the one it has already applied.
|
|
862
|
+
class PollerGroupsInfo < ::Google::Protobuf::AbstractMessage
|
|
863
|
+
|
|
864
|
+
# Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
|
|
865
|
+
# version is not greater than the one it last applied.
|
|
866
|
+
attr_reader version(): ::Integer
|
|
867
|
+
attr_writer version(): ::Integer | ::Float
|
|
868
|
+
def clear_version: () -> void
|
|
869
|
+
|
|
870
|
+
# The weighted list of poller groups the client should use for future polls to this task queue.
|
|
871
|
+
attr_accessor poller_groups(): ::Google::Protobuf::RepeatedField
|
|
872
|
+
def clear_poller_groups: () -> void
|
|
873
|
+
|
|
874
|
+
type init_map = {
|
|
875
|
+
version: (::Integer | ::Float)?,
|
|
876
|
+
"version" => (::Integer | ::Float)?,
|
|
877
|
+
poller_groups: ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
|
|
878
|
+
"poller_groups" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
def initialize: (?init_map initial_value) -> void
|
|
882
|
+
|
|
883
|
+
def []:
|
|
884
|
+
("version" name) -> ::Integer
|
|
885
|
+
| ("poller_groups" name) -> ::Google::Protobuf::RepeatedField
|
|
886
|
+
|
|
887
|
+
def []=:
|
|
888
|
+
("version" name, (::Integer | ::Float) value) -> void
|
|
889
|
+
| ("poller_groups" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
890
|
+
end
|
|
891
|
+
|
|
848
892
|
# Attached to task responses to give hints to the SDK about how it may adjust its number of
|
|
849
893
|
# pollers.
|
|
850
894
|
class PollerScalingDecision < ::Google::Protobuf::AbstractMessage
|