temporalio 1.11.0 → 1.12.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.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +33 -11
  3. data/Cargo.toml +1 -0
  4. data/README.md +168 -11
  5. data/ext/Cargo.toml +3 -3
  6. data/lib/temporalio/api/cloud/account/v1/message.rb +2 -1
  7. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +43 -1
  8. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  9. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  10. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  11. data/lib/temporalio/api/cloud/namespace/v1/message.rb +8 -1
  12. data/lib/temporalio/api/cloud/nexus/v1/message.rb +1 -1
  13. data/lib/temporalio/api/cloud/project/v1/message.rb +28 -0
  14. data/lib/temporalio/api/cloud/region/v1/message.rb +1 -1
  15. data/lib/temporalio/api/cloud/sink/v1/message.rb +2 -1
  16. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  17. data/lib/temporalio/api/enums/v1/namespace.rb +2 -1
  18. data/lib/temporalio/api/operatorservice/v1/request_response.rb +9 -1
  19. data/lib/temporalio/api/operatorservice/v1/service.rb +1 -1
  20. data/lib/temporalio/api/payload_visitor.rb +66 -0
  21. data/lib/temporalio/api/taskqueue/v1/message.rb +3 -1
  22. data/lib/temporalio/api/workflowservice/v1/request_response.rb +2 -1
  23. data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
  24. data/lib/temporalio/client/connection/cloud_service.rb +285 -0
  25. data/lib/temporalio/client/connection/operator_service.rb +45 -0
  26. data/lib/temporalio/client/schedule.rb +56 -8
  27. data/lib/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rb +0 -2
  28. data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver.rb +3 -5
  29. data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rb +0 -2
  30. data/lib/temporalio/contrib/aws/s3_driver.rb +0 -2
  31. data/lib/temporalio/converters/data_converter.rb +52 -1
  32. data/lib/temporalio/converters/external_storage.rb +6 -12
  33. data/lib/temporalio/converters/external_storage_concurrency.rb +4 -2
  34. data/lib/temporalio/converters/storage_driver.rb +3 -4
  35. data/lib/temporalio/converters/storage_driver_activity_info.rb +0 -2
  36. data/lib/temporalio/converters/storage_driver_claim.rb +0 -2
  37. data/lib/temporalio/converters/storage_driver_limiter.rb +16 -0
  38. data/lib/temporalio/converters/storage_driver_retrieve_context.rb +7 -6
  39. data/lib/temporalio/converters/storage_driver_select_context.rb +11 -5
  40. data/lib/temporalio/converters/storage_driver_store_context.rb +11 -7
  41. data/lib/temporalio/converters/storage_driver_workflow_info.rb +0 -2
  42. data/lib/temporalio/error.rb +10 -3
  43. data/lib/temporalio/internal/bridge/worker.rb +1 -0
  44. data/lib/temporalio/internal/client/described_schedule_action.rb +41 -0
  45. data/lib/temporalio/internal/client/implementation.rb +92 -48
  46. data/lib/temporalio/internal/external_storage_references.rb +5 -4
  47. data/lib/temporalio/internal/external_storage_runner.rb +177 -0
  48. data/lib/temporalio/internal/storage_operation_metrics.rb +76 -0
  49. data/lib/temporalio/internal/worker/activity_worker.rb +60 -24
  50. data/lib/temporalio/internal/worker/workflow_worker.rb +211 -15
  51. data/lib/temporalio/version.rb +1 -1
  52. data/lib/temporalio/worker/workflow_replayer.rb +5 -3
  53. data/lib/temporalio/worker.rb +4 -2
  54. data/rbi/temporalio/api/cloud/account/v1/message.rbi +84 -2
  55. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +5006 -1157
  56. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +171 -0
  57. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +71 -16
  58. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +789 -23
  59. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +765 -15
  60. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +19 -2
  61. data/rbi/temporalio/api/cloud/project/v1/message.rbi +334 -0
  62. data/rbi/temporalio/api/cloud/region/v1/message.rbi +1 -0
  63. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +147 -0
  64. data/rbi/temporalio/api/common/v1/message.rbi +6 -0
  65. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +2 -0
  66. data/rbi/temporalio/api/enums/v1/namespace.rbi +20 -0
  67. data/rbi/temporalio/api/history/v1/message.rbi +40 -18
  68. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +480 -0
  69. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +32 -0
  70. data/rbi/temporalio/api/payload_visitor.rbi +33 -0
  71. data/rbi/temporalio/api/schedule/v1/message.rbi +12 -6
  72. data/rbi/temporalio/api/taskqueue/v1/message.rbi +179 -13
  73. data/rbi/temporalio/api/worker/v1/message.rbi +6 -6
  74. data/rbi/temporalio/api/workflow/v1/message.rbi +12 -6
  75. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +140 -41
  76. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +3 -0
  77. data/rbi/temporalio/client/connection/cloud_service.rbi +57 -0
  78. data/rbi/temporalio/client/connection/operator_service.rbi +9 -0
  79. data/rbi/temporalio/converters/data_converter.rbi +43 -2
  80. data/rbi/temporalio/converters/external_storage.rbi +2 -7
  81. data/rbi/temporalio/converters/storage_driver_limiter.rbi +4 -0
  82. data/rbi/temporalio/converters/storage_driver_retrieve_context.rbi +1 -1
  83. data/rbi/temporalio/converters/storage_driver_select_context.rbi +6 -2
  84. data/rbi/temporalio/converters/storage_driver_store_context.rbi +6 -2
  85. data/rbi/temporalio/error.rbi +3 -1
  86. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +6 -0
  87. data/rbi/temporalio/internal/bridge/worker.rbi +4 -2
  88. data/rbi/temporalio/internal/client/described_schedule_action.rbi +22 -0
  89. data/rbi/temporalio/internal/client/implementation.rbi +30 -0
  90. data/rbi/temporalio/internal/external_storage_runner.rbi +36 -0
  91. data/rbi/temporalio/internal/storage_operation_metrics.rbi +27 -0
  92. data/rbi/temporalio/internal/worker/activity_worker.rbi +24 -4
  93. data/rbi/temporalio/internal/worker/workflow_worker.rbi +61 -1
  94. data/rbi/temporalio/workflow.rbi +0 -12
  95. data/sig/temporalio/api/cloud/account/v1/message.rbs +30 -0
  96. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +2122 -601
  97. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +29 -4
  98. data/sig/temporalio/api/cloud/identity/v1/message.rbs +342 -1
  99. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +341 -2
  100. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +9 -0
  101. data/sig/temporalio/api/cloud/project/v1/message.rbs +164 -0
  102. data/sig/temporalio/api/cloud/region/v1/message.rbs +5 -3
  103. data/sig/temporalio/api/cloud/sink/v1/message.rbs +66 -0
  104. data/sig/temporalio/api/common/v1/message.rbs +6 -0
  105. data/sig/temporalio/api/enums/v1/event_type.rbs +1 -0
  106. data/sig/temporalio/api/enums/v1/failed_cause.rbs +9 -3
  107. data/sig/temporalio/api/enums/v1/namespace.rbs +30 -2
  108. data/sig/temporalio/api/enums/v1/time_skipping.rbs +1 -0
  109. data/sig/temporalio/api/history/v1/message.rbs +8 -0
  110. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +188 -0
  111. data/sig/temporalio/api/payload_visitor.rbs +11 -0
  112. data/sig/temporalio/api/schedule/v1/message.rbs +2 -0
  113. data/sig/temporalio/api/taskqueue/v1/message.rbs +66 -5
  114. data/sig/temporalio/api/worker/v1/message.rbs +2 -2
  115. data/sig/temporalio/api/workflow/v1/message.rbs +2 -0
  116. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +53 -9
  117. data/sig/temporalio/client/connection/cloud_service.rbs +76 -0
  118. data/sig/temporalio/client/connection/operator_service.rbs +12 -0
  119. data/sig/temporalio/client/schedule.rbs +24 -3
  120. data/sig/temporalio/contrib/aws/s3_driver/s3_storage_driver.rbs +2 -1
  121. data/sig/temporalio/contrib/open_telemetry.rbs +4 -4
  122. data/sig/temporalio/converters/data_converter.rbs +19 -1
  123. data/sig/temporalio/converters/external_storage.rbs +1 -3
  124. data/sig/temporalio/converters/storage_driver_limiter.rbs +5 -0
  125. data/sig/temporalio/converters/storage_driver_retrieve_context.rbs +1 -1
  126. data/sig/temporalio/converters/storage_driver_select_context.rbs +3 -1
  127. data/sig/temporalio/converters/storage_driver_store_context.rbs +3 -1
  128. data/sig/temporalio/error.rbs +4 -1
  129. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +4 -0
  130. data/sig/temporalio/internal/bridge/worker.rbs +2 -0
  131. data/sig/temporalio/internal/client/described_schedule_action.rbs +18 -0
  132. data/sig/temporalio/internal/client/implementation.rbs +22 -0
  133. data/sig/temporalio/internal/external_storage_runner.rbs +32 -0
  134. data/sig/temporalio/internal/storage_operation_metrics.rbs +25 -0
  135. data/sig/temporalio/internal/worker/activity_worker.rbs +11 -2
  136. data/sig/temporalio/internal/worker/workflow_worker.rbs +32 -1
  137. metadata +13 -2
  138. data/sig/open_telemetry.rbs +0 -47
@@ -84,6 +84,9 @@ sig { params(value: Object).void }
84
84
  sig { params(value: Object).void }
85
85
  def api_cloud_cloudservice_v1_create_billing_report_response(value); end
86
86
 
87
+ sig { params(value: Object).void }
88
+ def api_cloud_cloudservice_v1_create_caller_rate_limit_response(value); end
89
+
87
90
  sig { params(value: Object).void }
88
91
  def api_cloud_cloudservice_v1_create_connectivity_rule_response(value); end
89
92
 
@@ -102,6 +105,9 @@ sig { params(value: Object).void }
102
105
  sig { params(value: Object).void }
103
106
  def api_cloud_cloudservice_v1_create_nexus_endpoint_response(value); end
104
107
 
108
+ sig { params(value: Object).void }
109
+ def api_cloud_cloudservice_v1_create_project_response(value); end
110
+
105
111
  sig { params(value: Object).void }
106
112
  def api_cloud_cloudservice_v1_create_service_account_response(value); end
107
113
 
@@ -117,6 +123,9 @@ sig { params(value: Object).void }
117
123
  sig { params(value: Object).void }
118
124
  def api_cloud_cloudservice_v1_delete_api_key_response(value); end
119
125
 
126
+ sig { params(value: Object).void }
127
+ def api_cloud_cloudservice_v1_delete_caller_rate_limit_response(value); end
128
+
120
129
  sig { params(value: Object).void }
121
130
  def api_cloud_cloudservice_v1_delete_connectivity_rule_response(value); end
122
131
 
@@ -135,6 +144,9 @@ sig { params(value: Object).void }
135
144
  sig { params(value: Object).void }
136
145
  def api_cloud_cloudservice_v1_delete_nexus_endpoint_response(value); end
137
146
 
147
+ sig { params(value: Object).void }
148
+ def api_cloud_cloudservice_v1_delete_project_response(value); end
149
+
138
150
  sig { params(value: Object).void }
139
151
  def api_cloud_cloudservice_v1_delete_service_account_response(value); end
140
152
 
@@ -156,6 +168,12 @@ sig { params(value: Object).void }
156
168
  sig { params(value: Object).void }
157
169
  def api_cloud_cloudservice_v1_get_nexus_endpoints_response(value); end
158
170
 
171
+ sig { params(value: Object).void }
172
+ def api_cloud_cloudservice_v1_move_namespace_to_project_response(value); end
173
+
174
+ sig { params(value: Object).void }
175
+ def api_cloud_cloudservice_v1_move_nexus_endpoint_to_project_response(value); end
176
+
159
177
  sig { params(value: Object).void }
160
178
  def api_cloud_cloudservice_v1_remove_user_group_member_response(value); end
161
179
 
@@ -165,12 +183,21 @@ sig { params(value: Object).void }
165
183
  sig { params(value: Object).void }
166
184
  def api_cloud_cloudservice_v1_set_service_account_namespace_access_response(value); end
167
185
 
186
+ sig { params(value: Object).void }
187
+ def api_cloud_cloudservice_v1_set_service_account_project_access_response(value); end
188
+
168
189
  sig { params(value: Object).void }
169
190
  def api_cloud_cloudservice_v1_set_user_group_namespace_access_response(value); end
170
191
 
192
+ sig { params(value: Object).void }
193
+ def api_cloud_cloudservice_v1_set_user_group_project_access_response(value); end
194
+
171
195
  sig { params(value: Object).void }
172
196
  def api_cloud_cloudservice_v1_set_user_namespace_access_response(value); end
173
197
 
198
+ sig { params(value: Object).void }
199
+ def api_cloud_cloudservice_v1_set_user_project_access_response(value); end
200
+
174
201
  sig { params(value: Object).void }
175
202
  def api_cloud_cloudservice_v1_update_account_audit_log_sink_response(value); end
176
203
 
@@ -180,6 +207,9 @@ sig { params(value: Object).void }
180
207
  sig { params(value: Object).void }
181
208
  def api_cloud_cloudservice_v1_update_api_key_response(value); end
182
209
 
210
+ sig { params(value: Object).void }
211
+ def api_cloud_cloudservice_v1_update_caller_rate_limit_response(value); end
212
+
183
213
  sig { params(value: Object).void }
184
214
  def api_cloud_cloudservice_v1_update_custom_role_response(value); end
185
215
 
@@ -198,6 +228,9 @@ sig { params(value: Object).void }
198
228
  sig { params(value: Object).void }
199
229
  def api_cloud_cloudservice_v1_update_nexus_endpoint_response(value); end
200
230
 
231
+ sig { params(value: Object).void }
232
+ def api_cloud_cloudservice_v1_update_project_response(value); end
233
+
201
234
  sig { params(value: Object).void }
202
235
  def api_cloud_cloudservice_v1_update_service_account_response(value); end
203
236
 
@@ -1709,19 +1709,22 @@ class Temporalio::Api::Schedule::V1::SchedulePatch
1709
1709
  def clear_unpause
1710
1710
  end
1711
1711
 
1712
- # If set, applies the specified time-skipping configuration to this schedule,
1712
+ # Experimental.
1713
+ # If set, applies the specified time-skipping configuration to this schedule,
1713
1714
  # replacing any existing time-skipping configuration.
1714
1715
  sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)) }
1715
1716
  def time_skipping_config
1716
1717
  end
1717
1718
 
1718
- # If set, applies the specified time-skipping configuration to this schedule,
1719
+ # Experimental.
1720
+ # If set, applies the specified time-skipping configuration to this schedule,
1719
1721
  # replacing any existing time-skipping configuration.
1720
1722
  sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)).void }
1721
1723
  def time_skipping_config=(value)
1722
1724
  end
1723
1725
 
1724
- # If set, applies the specified time-skipping configuration to this schedule,
1726
+ # Experimental.
1727
+ # If set, applies the specified time-skipping configuration to this schedule,
1725
1728
  # replacing any existing time-skipping configuration.
1726
1729
  sig { void }
1727
1730
  def clear_time_skipping_config
@@ -1993,19 +1996,22 @@ class Temporalio::Api::Schedule::V1::ScheduleInfo
1993
1996
  def clear_state_size_bytes
1994
1997
  end
1995
1998
 
1996
- # Information about time skipping for this schedule.
1999
+ # Experimental.
2000
+ # Information about time skipping for this schedule.
1997
2001
  # If the schedule has never enabled time skipping, this will be unset.
1998
2002
  sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)) }
1999
2003
  def time_skipping_info
2000
2004
  end
2001
2005
 
2002
- # Information about time skipping for this schedule.
2006
+ # Experimental.
2007
+ # Information about time skipping for this schedule.
2003
2008
  # If the schedule has never enabled time skipping, this will be unset.
2004
2009
  sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)).void }
2005
2010
  def time_skipping_info=(value)
2006
2011
  end
2007
2012
 
2008
- # Information about time skipping for this schedule.
2013
+ # Experimental.
2014
+ # Information about time skipping for this schedule.
2009
2015
  # If the schedule has never enabled time skipping, this will be unset.
2010
2016
  sig { void }
2011
2017
  def clear_time_skipping_info
@@ -162,8 +162,7 @@ class Temporalio::Api::TaskQueue::V1::TaskQueueMetadata
162
162
  end
163
163
  end
164
164
 
165
- # Worker-reported state about the poller pool issuing a poll, used by the server to spread
166
- # poller scaling suggestions across a fleet.
165
+ # Worker-reported state about the poller pool issuing a poll.
167
166
  class Temporalio::Api::TaskQueue::V1::PollerPoolInfo
168
167
  include ::Google::Protobuf::MessageExts
169
168
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -178,20 +177,20 @@ class Temporalio::Api::TaskQueue::V1::PollerPoolInfo
178
177
  )
179
178
  end
180
179
 
181
- # Number of concurrent poll requests this worker is currently targeting for this task
182
- # queue and task type. 0 if unknown, such as a poller pool of fixed size.
180
+ # Number of pollers this worker is targeting for this task queue and task type.
181
+ # 0 if unknown, such as a poller pool of fixed size.
183
182
  sig { returns(Integer) }
184
183
  def target_pollers
185
184
  end
186
185
 
187
- # Number of concurrent poll requests this worker is currently targeting for this task
188
- # queue and task type. 0 if unknown, such as a poller pool of fixed size.
186
+ # Number of pollers this worker is targeting for this task queue and task type.
187
+ # 0 if unknown, such as a poller pool of fixed size.
189
188
  sig { params(value: Integer).void }
190
189
  def target_pollers=(value)
191
190
  end
192
191
 
193
- # Number of concurrent poll requests this worker is currently targeting for this task
194
- # queue and task type. 0 if unknown, such as a poller pool of fixed size.
192
+ # Number of pollers this worker is targeting for this task queue and task type.
193
+ # 0 if unknown, such as a poller pool of fixed size.
195
194
  sig { void }
196
195
  def clear_target_pollers
197
196
  end
@@ -2369,6 +2368,83 @@ class Temporalio::Api::TaskQueue::V1::RateLimit
2369
2368
  end
2370
2369
  end
2371
2370
 
2371
+ class Temporalio::Api::TaskQueue::V1::ConcurrencyLimit
2372
+ include ::Google::Protobuf::MessageExts
2373
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2374
+
2375
+ sig do
2376
+ params(
2377
+ concurrent_tasks: T.nilable(Integer)
2378
+ ).void
2379
+ end
2380
+ def initialize(
2381
+ concurrent_tasks: 0
2382
+ )
2383
+ end
2384
+
2385
+ # Maximum number of concurrent tasks that may be running at a time across the scope of the
2386
+ # limit. e.g. in TaskQueueConfig, the scope is the whole task queue.
2387
+ #
2388
+ # Note that in situations like network partitions, the server's idea of what is running on
2389
+ # workers may be out of date, and this limit could be exceeded from the point of view of
2390
+ # workers.
2391
+ sig { returns(Integer) }
2392
+ def concurrent_tasks
2393
+ end
2394
+
2395
+ # Maximum number of concurrent tasks that may be running at a time across the scope of the
2396
+ # limit. e.g. in TaskQueueConfig, the scope is the whole task queue.
2397
+ #
2398
+ # Note that in situations like network partitions, the server's idea of what is running on
2399
+ # workers may be out of date, and this limit could be exceeded from the point of view of
2400
+ # workers.
2401
+ sig { params(value: Integer).void }
2402
+ def concurrent_tasks=(value)
2403
+ end
2404
+
2405
+ # Maximum number of concurrent tasks that may be running at a time across the scope of the
2406
+ # limit. e.g. in TaskQueueConfig, the scope is the whole task queue.
2407
+ #
2408
+ # Note that in situations like network partitions, the server's idea of what is running on
2409
+ # workers may be out of date, and this limit could be exceeded from the point of view of
2410
+ # workers.
2411
+ sig { void }
2412
+ def clear_concurrent_tasks
2413
+ end
2414
+
2415
+ sig { params(field: String).returns(T.untyped) }
2416
+ def [](field)
2417
+ end
2418
+
2419
+ sig { params(field: String, value: T.untyped).void }
2420
+ def []=(field, value)
2421
+ end
2422
+
2423
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2424
+ def to_h
2425
+ end
2426
+
2427
+ sig { params(str: String).returns(Temporalio::Api::TaskQueue::V1::ConcurrencyLimit) }
2428
+ def self.decode(str)
2429
+ end
2430
+
2431
+ sig { params(msg: Temporalio::Api::TaskQueue::V1::ConcurrencyLimit).returns(String) }
2432
+ def self.encode(msg)
2433
+ end
2434
+
2435
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::TaskQueue::V1::ConcurrencyLimit) }
2436
+ def self.decode_json(str, **kw)
2437
+ end
2438
+
2439
+ sig { params(msg: Temporalio::Api::TaskQueue::V1::ConcurrencyLimit, kw: T.untyped).returns(String) }
2440
+ def self.encode_json(msg, **kw)
2441
+ end
2442
+
2443
+ sig { returns(::Google::Protobuf::Descriptor) }
2444
+ def self.descriptor
2445
+ end
2446
+ end
2447
+
2372
2448
  class Temporalio::Api::TaskQueue::V1::ConfigMetadata
2373
2449
  include ::Google::Protobuf::MessageExts
2374
2450
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2541,6 +2617,79 @@ class Temporalio::Api::TaskQueue::V1::RateLimitConfig
2541
2617
  end
2542
2618
  end
2543
2619
 
2620
+ class Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig
2621
+ include ::Google::Protobuf::MessageExts
2622
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2623
+
2624
+ sig do
2625
+ params(
2626
+ concurrency_limit: T.nilable(Temporalio::Api::TaskQueue::V1::ConcurrencyLimit),
2627
+ metadata: T.nilable(Temporalio::Api::TaskQueue::V1::ConfigMetadata)
2628
+ ).void
2629
+ end
2630
+ def initialize(
2631
+ concurrency_limit: nil,
2632
+ metadata: nil
2633
+ )
2634
+ end
2635
+
2636
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::ConcurrencyLimit)) }
2637
+ def concurrency_limit
2638
+ end
2639
+
2640
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::ConcurrencyLimit)).void }
2641
+ def concurrency_limit=(value)
2642
+ end
2643
+
2644
+ sig { void }
2645
+ def clear_concurrency_limit
2646
+ end
2647
+
2648
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::ConfigMetadata)) }
2649
+ def metadata
2650
+ end
2651
+
2652
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::ConfigMetadata)).void }
2653
+ def metadata=(value)
2654
+ end
2655
+
2656
+ sig { void }
2657
+ def clear_metadata
2658
+ end
2659
+
2660
+ sig { params(field: String).returns(T.untyped) }
2661
+ def [](field)
2662
+ end
2663
+
2664
+ sig { params(field: String, value: T.untyped).void }
2665
+ def []=(field, value)
2666
+ end
2667
+
2668
+ sig { returns(T::Hash[Symbol, T.untyped]) }
2669
+ def to_h
2670
+ end
2671
+
2672
+ sig { params(str: String).returns(Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig) }
2673
+ def self.decode(str)
2674
+ end
2675
+
2676
+ sig { params(msg: Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig).returns(String) }
2677
+ def self.encode(msg)
2678
+ end
2679
+
2680
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig) }
2681
+ def self.decode_json(str, **kw)
2682
+ end
2683
+
2684
+ sig { params(msg: Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig, kw: T.untyped).returns(String) }
2685
+ def self.encode_json(msg, **kw)
2686
+ end
2687
+
2688
+ sig { returns(::Google::Protobuf::Descriptor) }
2689
+ def self.descriptor
2690
+ end
2691
+ end
2692
+
2544
2693
  class Temporalio::Api::TaskQueue::V1::TaskQueueConfig
2545
2694
  include ::Google::Protobuf::MessageExts
2546
2695
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2549,27 +2698,29 @@ class Temporalio::Api::TaskQueue::V1::TaskQueueConfig
2549
2698
  params(
2550
2699
  queue_rate_limit: T.nilable(Temporalio::Api::TaskQueue::V1::RateLimitConfig),
2551
2700
  fairness_keys_rate_limit_default: T.nilable(Temporalio::Api::TaskQueue::V1::RateLimitConfig),
2552
- fairness_weight_overrides: T.nilable(T::Hash[String, Float])
2701
+ fairness_weight_overrides: T.nilable(T::Hash[String, Float]),
2702
+ queue_concurrency_limit: T.nilable(Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig)
2553
2703
  ).void
2554
2704
  end
2555
2705
  def initialize(
2556
2706
  queue_rate_limit: nil,
2557
2707
  fairness_keys_rate_limit_default: nil,
2558
- fairness_weight_overrides: ::Google::Protobuf::Map.new(:string, :float)
2708
+ fairness_weight_overrides: ::Google::Protobuf::Map.new(:string, :float),
2709
+ queue_concurrency_limit: nil
2559
2710
  )
2560
2711
  end
2561
2712
 
2562
- # Unless modified, this is the system-defined rate limit.
2713
+ # Rate limit for the whole queue.
2563
2714
  sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::RateLimitConfig)) }
2564
2715
  def queue_rate_limit
2565
2716
  end
2566
2717
 
2567
- # Unless modified, this is the system-defined rate limit.
2718
+ # Rate limit for the whole queue.
2568
2719
  sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::RateLimitConfig)).void }
2569
2720
  def queue_rate_limit=(value)
2570
2721
  end
2571
2722
 
2572
- # Unless modified, this is the system-defined rate limit.
2723
+ # Rate limit for the whole queue.
2573
2724
  sig { void }
2574
2725
  def clear_queue_rate_limit
2575
2726
  end
@@ -2604,6 +2755,21 @@ class Temporalio::Api::TaskQueue::V1::TaskQueueConfig
2604
2755
  def clear_fairness_weight_overrides
2605
2756
  end
2606
2757
 
2758
+ # Concurrency limit for the whole queue.
2759
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig)) }
2760
+ def queue_concurrency_limit
2761
+ end
2762
+
2763
+ # Concurrency limit for the whole queue.
2764
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::ConcurrencyLimitConfig)).void }
2765
+ def queue_concurrency_limit=(value)
2766
+ end
2767
+
2768
+ # Concurrency limit for the whole queue.
2769
+ sig { void }
2770
+ def clear_queue_concurrency_limit
2771
+ end
2772
+
2607
2773
  sig { params(field: String).returns(T.untyped) }
2608
2774
  def [](field)
2609
2775
  end
@@ -64,20 +64,20 @@ class Temporalio::Api::Worker::V1::WorkerPollerInfo
64
64
  def clear_is_autoscaling
65
65
  end
66
66
 
67
- # Number of concurrent poll requests this poller pool is currently targeting, which may
68
- # differ from current_pollers. 0 if unknown, such as a poller pool of fixed size.
67
+ # Number of pollers this poller pool is currently targeting, which may differ from current_pollers.
68
+ # 0 if unknown, such as a poller pool of fixed size.
69
69
  sig { returns(Integer) }
70
70
  def target_pollers
71
71
  end
72
72
 
73
- # Number of concurrent poll requests this poller pool is currently targeting, which may
74
- # differ from current_pollers. 0 if unknown, such as a poller pool of fixed size.
73
+ # Number of pollers this poller pool is currently targeting, which may differ from current_pollers.
74
+ # 0 if unknown, such as a poller pool of fixed size.
75
75
  sig { params(value: Integer).void }
76
76
  def target_pollers=(value)
77
77
  end
78
78
 
79
- # Number of concurrent poll requests this poller pool is currently targeting, which may
80
- # differ from current_pollers. 0 if unknown, such as a poller pool of fixed size.
79
+ # Number of pollers this poller pool is currently targeting, which may differ from current_pollers.
80
+ # 0 if unknown, such as a poller pool of fixed size.
81
81
  sig { void }
82
82
  def clear_target_pollers
83
83
  end
@@ -710,19 +710,22 @@ class Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo
710
710
  def clear_pause_info
711
711
  end
712
712
 
713
- # Information about time skipping of the workflow execution.
713
+ # Experimental.
714
+ # Information about time skipping of the workflow execution.
714
715
  # If the execution has never enabled time skipping, it will be nil.
715
716
  sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)) }
716
717
  def time_skipping_info
717
718
  end
718
719
 
719
- # Information about time skipping of the workflow execution.
720
+ # Experimental.
721
+ # Information about time skipping of the workflow execution.
720
722
  # If the execution has never enabled time skipping, it will be nil.
721
723
  sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingInfo)).void }
722
724
  def time_skipping_info=(value)
723
725
  end
724
726
 
725
- # Information about time skipping of the workflow execution.
727
+ # Experimental.
728
+ # Information about time skipping of the workflow execution.
726
729
  # If the execution has never enabled time skipping, it will be nil.
727
730
  sig { void }
728
731
  def clear_time_skipping_info
@@ -3562,7 +3565,8 @@ class Temporalio::Api::Workflow::V1::WorkflowExecutionOptions
3562
3565
  def clear_priority
3563
3566
  end
3564
3567
 
3565
- # The time-skipping configuration for this workflow execution.
3568
+ # Experimental.
3569
+ # The time-skipping configuration for this workflow execution.
3566
3570
  # When `fast_forward` is set, time will be fast-forwarded to a future point relative
3567
3571
  # to the current workflow timestamp. Each call takes effect, even if
3568
3572
  # `fast_forward` is set to the same duration, since the target time is recalculated
@@ -3575,7 +3579,8 @@ class Temporalio::Api::Workflow::V1::WorkflowExecutionOptions
3575
3579
  def time_skipping_config
3576
3580
  end
3577
3581
 
3578
- # The time-skipping configuration for this workflow execution.
3582
+ # Experimental.
3583
+ # The time-skipping configuration for this workflow execution.
3579
3584
  # When `fast_forward` is set, time will be fast-forwarded to a future point relative
3580
3585
  # to the current workflow timestamp. Each call takes effect, even if
3581
3586
  # `fast_forward` is set to the same duration, since the target time is recalculated
@@ -3588,7 +3593,8 @@ class Temporalio::Api::Workflow::V1::WorkflowExecutionOptions
3588
3593
  def time_skipping_config=(value)
3589
3594
  end
3590
3595
 
3591
- # The time-skipping configuration for this workflow execution.
3596
+ # Experimental.
3597
+ # The time-skipping configuration for this workflow execution.
3592
3598
  # When `fast_forward` is set, time will be fast-forwarded to a future point relative
3593
3599
  # to the current workflow timestamp. Each call takes effect, even if
3594
3600
  # `fast_forward` is set to the same duration, since the target time is recalculated