temporalio 1.5.0 → 1.6.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 +1461 -621
- data/Cargo.toml +1 -1
- data/Gemfile +6 -5
- data/README.md +42 -1
- data/ext/Cargo.toml +9 -3
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
- data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -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/deployment/v1/message.rb +3 -1
- data/lib/temporalio/api/history/v1/message.rb +3 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/nexus/v1/message.rb +1 -1
- data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
- data/lib/temporalio/api/payload_visitor.rb +32 -0
- data/lib/temporalio/api/schedule/v1/message.rb +1 -1
- data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
- data/lib/temporalio/api/update/v1/message.rb +1 -1
- data/lib/temporalio/api/workflow/v1/message.rb +3 -2
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
- data/lib/temporalio/client/connection/cloud_service.rb +120 -0
- data/lib/temporalio/client/connection/workflow_service.rb +75 -0
- data/lib/temporalio/client/connection.rb +37 -2
- data/lib/temporalio/client.rb +10 -5
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +6 -1
- data/lib/temporalio/internal/bridge.rb +20 -0
- data/lib/temporalio/internal/google_protobuf.rb +11 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
- data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
- data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
- data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
- data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
- data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
- data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
- data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
- data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
- data/lib/temporalio/worker/workflow_replayer.rb +17 -4
- data/lib/temporalio/worker.rb +30 -5
- data/lib/temporalio/workflow/future.rb +5 -0
- data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
- data/lib/temporalio/workflow.rb +8 -0
- data/rbi/google/protobuf.rbi +25 -0
- data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
- data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
- data/rbi/temporalio/activity/context.rbi +42 -0
- data/rbi/temporalio/activity/definition.rbi +74 -0
- data/rbi/temporalio/activity/info.rbi +112 -0
- data/rbi/temporalio/activity.rbi +3 -0
- data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
- data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
- data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
- data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
- data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
- data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
- data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
- data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
- data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
- data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
- data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
- data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
- data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
- data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
- data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
- data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
- data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
- data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
- data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
- data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
- data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
- data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
- data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
- data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
- data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
- data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
- data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
- data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
- data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
- data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
- data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
- data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
- data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
- data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
- data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
- data/rbi/temporalio/api/export/v1/message.rbi +123 -0
- data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
- data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
- data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
- data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
- data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
- data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
- data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
- data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
- data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
- data/rbi/temporalio/api/operatorservice.rbi +5 -0
- data/rbi/temporalio/api/payload_visitor.rbi +876 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
- data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
- data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
- data/rbi/temporalio/api/query/v1/message.rbi +288 -0
- data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
- data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
- data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
- data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
- data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
- data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
- data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
- data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
- data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
- data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
- data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
- data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
- data/rbi/temporalio/api/update/v1/message.rbi +800 -0
- data/rbi/temporalio/api/version/v1/message.rbi +281 -0
- data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
- data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
- data/rbi/temporalio/api/workflowservice.rbi +5 -0
- data/rbi/temporalio/api.rbi +7 -0
- data/rbi/temporalio/cancellation.rbi +40 -0
- data/rbi/temporalio/client/activity_execution.rbi +134 -0
- data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
- data/rbi/temporalio/client/activity_handle.rbi +49 -0
- data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
- data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
- data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
- data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
- data/rbi/temporalio/client/connection/service.rbi +19 -0
- data/rbi/temporalio/client/connection/test_service.rbi +29 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
- data/rbi/temporalio/client/connection.rbi +284 -0
- data/rbi/temporalio/client/interceptor.rbi +1067 -0
- data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
- data/rbi/temporalio/client/plugin.rbi +17 -0
- data/rbi/temporalio/client/schedule.rbi +677 -0
- data/rbi/temporalio/client/schedule_handle.rbi +40 -0
- data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
- data/rbi/temporalio/client/workflow_execution.rbi +62 -0
- data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
- data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
- data/rbi/temporalio/client/workflow_handle.rbi +148 -0
- data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
- data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
- data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
- data/rbi/temporalio/client.rbi +534 -0
- data/rbi/temporalio/common_enums.rbi +45 -0
- data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
- data/rbi/temporalio/converters/data_converter.rbi +44 -0
- data/rbi/temporalio/converters/failure_converter.rbi +20 -0
- data/rbi/temporalio/converters/payload_codec.rbi +11 -0
- data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
- data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
- data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
- data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter.rbi +28 -0
- data/rbi/temporalio/converters/raw_value.rbi +11 -0
- data/rbi/temporalio/converters.rbi +3 -0
- data/rbi/temporalio/env_config.rbi +156 -0
- data/rbi/temporalio/error/failure.rbi +3 -0
- data/rbi/temporalio/error.rbi +313 -0
- data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
- data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
- data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
- data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
- data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
- data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
- data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
- data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
- data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
- data/rbi/temporalio/internal/bridge/api.rbi +3 -0
- data/rbi/temporalio/internal/bridge/client.rbi +346 -0
- data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
- data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
- data/rbi/temporalio/internal/bridge.rbi +47 -0
- data/rbi/temporalio/internal/client/implementation.rbi +53 -0
- data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
- data/rbi/temporalio/internal/metric.rbi +55 -0
- data/rbi/temporalio/internal/proto_utils.rbi +148 -0
- data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
- data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
- data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
- data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
- data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
- data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
- data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
- data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
- data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
- data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
- data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
- data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
- data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
- data/rbi/temporalio/internal.rbi +3 -0
- data/rbi/temporalio/metric.rbi +56 -0
- data/rbi/temporalio/priority.rbi +38 -0
- data/rbi/temporalio/retry_policy.rbi +40 -0
- data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
- data/rbi/temporalio/runtime.rbi +185 -0
- data/rbi/temporalio/scoped_logger.rbi +50 -0
- data/rbi/temporalio/search_attributes.rbi +94 -0
- data/rbi/temporalio/simple_plugin.rbi +41 -0
- data/rbi/temporalio/testing/activity_environment.rbi +43 -0
- data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
- data/rbi/temporalio/testing.rbi +3 -0
- data/rbi/temporalio/version.rbi +5 -0
- data/rbi/temporalio/versioning_override.rbi +13 -0
- data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor.rbi +20 -0
- data/rbi/temporalio/worker/deployment_options.rbi +23 -0
- data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
- data/rbi/temporalio/worker/interceptor.rbi +489 -0
- data/rbi/temporalio/worker/plugin.rbi +49 -0
- data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
- data/rbi/temporalio/worker/thread_pool.rbi +38 -0
- data/rbi/temporalio/worker/tuner.rbi +221 -0
- data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
- data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
- data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
- data/rbi/temporalio/worker.rbi +258 -0
- data/rbi/temporalio/worker_deployment_version.rbi +29 -0
- data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
- data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
- data/rbi/temporalio/workflow/definition.rbi +305 -0
- data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
- data/rbi/temporalio/workflow/future.rbi +62 -0
- data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
- data/rbi/temporalio/workflow/info.rbi +100 -0
- data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
- data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
- data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
- data/rbi/temporalio/workflow/update_info.rbi +14 -0
- data/rbi/temporalio/workflow.rbi +393 -0
- data/rbi/temporalio/workflow_history.rbi +21 -0
- data/rbi/temporalio.rbi +5 -0
- data/sig/common.rbs +1 -0
- data/sig/google/protobuf_compat.rbs +17 -0
- data/sig/open_telemetry.rbs +47 -0
- data/sig/temporalio/activity/cancellation_details.rbs +21 -0
- data/sig/temporalio/activity/complete_async_error.rbs +6 -0
- data/sig/temporalio/activity/context.rbs +26 -0
- data/sig/temporalio/activity/definition.rbs +60 -0
- data/sig/temporalio/activity/info.rbs +57 -0
- data/sig/temporalio/activity.rbs +4 -0
- data/sig/temporalio/api/activity/v1/message.rbs +708 -0
- data/sig/temporalio/api/batch/v1/message.rbs +594 -0
- data/sig/temporalio/api/callback/v1/message.rbs +112 -0
- data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
- data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
- data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
- data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
- data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
- data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
- data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
- data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
- data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
- data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
- data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
- data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
- data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
- data/sig/temporalio/api/command/v1/message.rbs +1211 -0
- data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
- data/sig/temporalio/api/common/v1/message.rbs +1238 -0
- data/sig/temporalio/api/compute/v1/config.rbs +176 -0
- data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
- data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
- data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
- data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
- data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
- data/sig/temporalio/api/enums/v1/common.rbs +271 -0
- data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
- data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
- data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
- data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
- data/sig/temporalio/api/enums/v1/query.rbs +69 -0
- data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
- data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
- data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
- data/sig/temporalio/api/enums/v1/update.rbs +87 -0
- data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
- data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
- data/sig/temporalio/api/export/v1/message.rbs +63 -0
- data/sig/temporalio/api/failure/v1/message.rbs +579 -0
- data/sig/temporalio/api/filter/v1/message.rbs +121 -0
- data/sig/temporalio/api/history/v1/message.rbs +4928 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
- data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
- data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
- data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
- data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
- data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/operatorservice.rbs +6 -0
- data/sig/temporalio/api/payload_visitor.rbs +298 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
- data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
- data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
- data/sig/temporalio/api/query/v1/message.rbs +138 -0
- data/sig/temporalio/api/replication/v1/message.rbs +109 -0
- data/sig/temporalio/api/rules/v1/message.rbs +213 -0
- data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
- data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
- data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
- data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
- data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
- data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
- data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
- data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
- data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
- data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/update/v1/message.rbs +349 -0
- data/sig/temporalio/api/version/v1/message.rbs +143 -0
- data/sig/temporalio/api/worker/v1/message.rbs +716 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
- data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/workflowservice.rbs +6 -0
- data/sig/temporalio/api.rbs +4 -0
- data/sig/temporalio/cancellation.rbs +20 -0
- data/sig/temporalio/client/activity_execution.rbs +50 -0
- data/sig/temporalio/client/activity_execution_count.rbs +17 -0
- data/sig/temporalio/client/activity_execution_status.rbs +15 -0
- data/sig/temporalio/client/activity_handle.rbs +26 -0
- data/sig/temporalio/client/activity_id_reference.rbs +16 -0
- data/sig/temporalio/client/async_activity_handle.rbs +41 -0
- data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
- data/sig/temporalio/client/connection/operator_service.rbs +59 -0
- data/sig/temporalio/client/connection/service.rbs +17 -0
- data/sig/temporalio/client/connection/test_service.rbs +35 -0
- data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
- data/sig/temporalio/client/connection.rbs +143 -0
- data/sig/temporalio/client/interceptor.rbs +622 -0
- data/sig/temporalio/client/pending_activity_state.rbs +14 -0
- data/sig/temporalio/client/plugin.rbs +14 -0
- data/sig/temporalio/client/schedule.rbs +337 -0
- data/sig/temporalio/client/schedule_handle.rbs +44 -0
- data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
- data/sig/temporalio/client/workflow_execution.rbs +37 -0
- data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
- data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
- data/sig/temporalio/client/workflow_handle.rbs +95 -0
- data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
- data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
- data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
- data/sig/temporalio/client.rbs +271 -0
- data/sig/temporalio/common_enums.rbs +60 -0
- data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
- data/sig/temporalio/converters/data_converter.rbs +32 -0
- data/sig/temporalio/converters/failure_converter.rbs +12 -0
- data/sig/temporalio/converters/payload_codec.rbs +8 -0
- data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
- data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
- data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
- data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter.rbs +24 -0
- data/sig/temporalio/converters/raw_value.rbs +9 -0
- data/sig/temporalio/converters.rbs +4 -0
- data/sig/temporalio/env_config.rbs +86 -0
- data/sig/temporalio/error/failure.rbs +170 -0
- data/sig/temporalio/error.rbs +88 -0
- data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
- data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
- data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
- data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
- data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
- data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
- data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
- data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
- data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
- data/sig/temporalio/internal/bridge/api.rbs +8 -0
- data/sig/temporalio/internal/bridge/client.rbs +144 -0
- data/sig/temporalio/internal/bridge/metric.rbs +28 -0
- data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
- data/sig/temporalio/internal/bridge/testing.rbs +91 -0
- data/sig/temporalio/internal/bridge/worker.rbs +199 -0
- data/sig/temporalio/internal/bridge.rbs +36 -0
- data/sig/temporalio/internal/client/implementation.rbs +33 -0
- data/sig/temporalio/internal/google_protobuf.rbs +7 -0
- data/sig/temporalio/internal/metric.rbs +35 -0
- data/sig/temporalio/internal/proto_utils.rbs +94 -0
- data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
- data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
- data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
- data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
- data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
- data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
- data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
- data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
- data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
- data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
- data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
- data/sig/temporalio/internal.rbs +4 -0
- data/sig/temporalio/metric.rbs +55 -0
- data/sig/temporalio/priority.rbs +17 -0
- data/sig/temporalio/retry_policy.rbs +21 -0
- data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
- data/sig/temporalio/runtime.rbs +118 -0
- data/sig/temporalio/scoped_logger.rbs +15 -0
- data/sig/temporalio/search_attributes.rbs +82 -0
- data/sig/temporalio/simple_plugin.rbs +65 -0
- data/sig/temporalio/testing/activity_environment.rbs +52 -0
- data/sig/temporalio/testing/workflow_environment.rbs +141 -0
- data/sig/temporalio/testing.rbs +4 -0
- data/sig/temporalio/version.rbs +3 -0
- data/sig/temporalio/versioning_override.rbs +17 -0
- data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
- data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
- data/sig/temporalio/worker/activity_executor.rbs +12 -0
- data/sig/temporalio/worker/deployment_options.rbs +17 -0
- data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
- data/sig/temporalio/worker/interceptor.rbs +373 -0
- data/sig/temporalio/worker/plugin.rbs +47 -0
- data/sig/temporalio/worker/poller_behavior.rbs +23 -0
- data/sig/temporalio/worker/thread_pool.rbs +44 -0
- data/sig/temporalio/worker/tuner.rbs +121 -0
- data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
- data/sig/temporalio/worker/workflow_executor.rbs +15 -0
- data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
- data/sig/temporalio/worker.rbs +168 -0
- data/sig/temporalio/worker_deployment_version.rbs +17 -0
- data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
- data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
- data/sig/temporalio/workflow/definition.rbs +181 -0
- data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
- data/sig/temporalio/workflow/future.rbs +24 -0
- data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
- data/sig/temporalio/workflow/info.rbs +79 -0
- data/sig/temporalio/workflow/nexus_client.rbs +34 -0
- data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
- data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
- data/sig/temporalio/workflow/update_info.rbs +15 -0
- data/sig/temporalio/workflow.rbs +215 -0
- data/sig/temporalio/workflow_history.rbs +13 -0
- data/sig/temporalio.rbs +3 -0
- data/temporalio.gemspec +1 -1
- metadata +445 -2
|
@@ -0,0 +1,1013 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# This RBS interface is provided for convenience, on a best-effort basis.
|
|
3
|
+
# The library is the definitive source for the API contract; if the RBS file
|
|
4
|
+
# and the library's behavior differ, the library behavior is authoritative.
|
|
5
|
+
# We welcome fixes to change the RBS file to match.
|
|
6
|
+
# source: temporal/api/taskqueue/v1/message.proto
|
|
7
|
+
|
|
8
|
+
module Temporalio
|
|
9
|
+
module Api
|
|
10
|
+
module TaskQueue
|
|
11
|
+
module V1
|
|
12
|
+
# See https://docs.temporal.io/docs/concepts/task-queues/
|
|
13
|
+
class TaskQueue < ::Google::Protobuf::AbstractMessage
|
|
14
|
+
|
|
15
|
+
attr_reader name(): ::String
|
|
16
|
+
attr_writer name(): ::String | ::Symbol
|
|
17
|
+
def clear_name: () -> void
|
|
18
|
+
|
|
19
|
+
# Default: TASK_QUEUE_KIND_NORMAL.
|
|
20
|
+
attr_reader kind(): ::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Integer
|
|
21
|
+
attr_writer kind(): ::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float
|
|
22
|
+
attr_reader kind_const(): ::Integer
|
|
23
|
+
def clear_kind: () -> void
|
|
24
|
+
|
|
25
|
+
# Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
|
|
26
|
+
# the normal task queue that the sticky worker is running on.
|
|
27
|
+
attr_reader normal_name(): ::String
|
|
28
|
+
attr_writer normal_name(): ::String | ::Symbol
|
|
29
|
+
def clear_normal_name: () -> void
|
|
30
|
+
|
|
31
|
+
type init_map = {
|
|
32
|
+
name: (::String | ::Symbol)?,
|
|
33
|
+
"name" => (::String | ::Symbol)?,
|
|
34
|
+
kind: (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float)?,
|
|
35
|
+
"kind" => (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float)?,
|
|
36
|
+
normal_name: (::String | ::Symbol)?,
|
|
37
|
+
"normal_name" => (::String | ::Symbol)?,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def initialize: (?init_map initial_value) -> void
|
|
41
|
+
|
|
42
|
+
def []:
|
|
43
|
+
("name" name) -> ::String
|
|
44
|
+
| ("kind" name) -> (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Integer)
|
|
45
|
+
| ("normal_name" name) -> ::String
|
|
46
|
+
|
|
47
|
+
def []=:
|
|
48
|
+
("name" name, (::String | ::Symbol) value) -> void
|
|
49
|
+
| ("kind" name, (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float) value) -> void
|
|
50
|
+
| ("normal_name" name, (::String | ::Symbol) value) -> void
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Only applies to activity task queues
|
|
54
|
+
class TaskQueueMetadata < ::Google::Protobuf::AbstractMessage
|
|
55
|
+
|
|
56
|
+
# Allows throttling dispatch of tasks from this queue
|
|
57
|
+
attr_accessor max_tasks_per_second(): ::Google::Protobuf::DoubleValue?
|
|
58
|
+
attr_reader max_tasks_per_second_as_value(): ::Float?
|
|
59
|
+
attr_writer max_tasks_per_second_as_value(): (::Float | ::Integer)?
|
|
60
|
+
def has_max_tasks_per_second?: () -> bool
|
|
61
|
+
def clear_max_tasks_per_second: () -> void
|
|
62
|
+
|
|
63
|
+
type init_map = {
|
|
64
|
+
max_tasks_per_second: (::Google::Protobuf::DoubleValue | ::Google::Protobuf::DoubleValue)?,
|
|
65
|
+
"max_tasks_per_second" => (::Google::Protobuf::DoubleValue | ::Google::Protobuf::DoubleValue)?,
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
def initialize: (?init_map initial_value) -> void
|
|
69
|
+
|
|
70
|
+
def []:
|
|
71
|
+
("max_tasks_per_second" name) -> ::Google::Protobuf::DoubleValue?
|
|
72
|
+
|
|
73
|
+
def []=:
|
|
74
|
+
("max_tasks_per_second" name, ::Google::Protobuf::DoubleValue? value) -> void
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
class TaskQueueVersioningInfo < ::Google::Protobuf::AbstractMessage
|
|
78
|
+
|
|
79
|
+
# Specifies which Deployment Version should receive new workflow executions and tasks of
|
|
80
|
+
# existing unversioned or AutoUpgrade workflows.
|
|
81
|
+
# Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
82
|
+
# Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
|
|
83
|
+
# is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
|
|
84
|
+
attr_accessor current_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
85
|
+
def has_current_deployment_version?: () -> bool
|
|
86
|
+
def clear_current_deployment_version: () -> void
|
|
87
|
+
|
|
88
|
+
# Deprecated. Use `current_deployment_version`.
|
|
89
|
+
# @deprecated
|
|
90
|
+
attr_reader current_version(): ::String
|
|
91
|
+
attr_writer current_version(): ::String | ::Symbol
|
|
92
|
+
def clear_current_version: () -> void
|
|
93
|
+
|
|
94
|
+
# When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
|
|
95
|
+
# Must always be different from `current_deployment_version` unless both are nil.
|
|
96
|
+
# Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
97
|
+
# Note that it is possible to ramp from one Version to another Version, or from unversioned
|
|
98
|
+
# workers to a particular Version, or from a particular Version to unversioned workers.
|
|
99
|
+
attr_accessor ramping_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
100
|
+
def has_ramping_deployment_version?: () -> bool
|
|
101
|
+
def clear_ramping_deployment_version: () -> void
|
|
102
|
+
|
|
103
|
+
# Deprecated. Use `ramping_deployment_version`.
|
|
104
|
+
# @deprecated
|
|
105
|
+
attr_reader ramping_version(): ::String
|
|
106
|
+
attr_writer ramping_version(): ::String | ::Symbol
|
|
107
|
+
def clear_ramping_version: () -> void
|
|
108
|
+
|
|
109
|
+
# Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
|
|
110
|
+
# Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
|
|
111
|
+
# not yet "promoted" to be the Current Version, likely due to pending validations.
|
|
112
|
+
# A 0% value means the Ramping Version is receiving no traffic.
|
|
113
|
+
attr_reader ramping_version_percentage(): ::Float
|
|
114
|
+
attr_writer ramping_version_percentage(): ::Float | ::Integer
|
|
115
|
+
def clear_ramping_version_percentage: () -> void
|
|
116
|
+
|
|
117
|
+
# Last time versioning information of this Task Queue changed.
|
|
118
|
+
attr_reader update_time(): ::Google::Protobuf::Timestamp?
|
|
119
|
+
attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
120
|
+
def has_update_time?: () -> bool
|
|
121
|
+
def clear_update_time: () -> void
|
|
122
|
+
|
|
123
|
+
type init_map = {
|
|
124
|
+
current_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
125
|
+
"current_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
126
|
+
current_version: (::String | ::Symbol)?,
|
|
127
|
+
"current_version" => (::String | ::Symbol)?,
|
|
128
|
+
ramping_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
129
|
+
"ramping_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
130
|
+
ramping_version: (::String | ::Symbol)?,
|
|
131
|
+
"ramping_version" => (::String | ::Symbol)?,
|
|
132
|
+
ramping_version_percentage: (::Float | ::Integer)?,
|
|
133
|
+
"ramping_version_percentage" => (::Float | ::Integer)?,
|
|
134
|
+
update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
135
|
+
"update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
def initialize: (?init_map initial_value) -> void
|
|
139
|
+
|
|
140
|
+
def []:
|
|
141
|
+
("current_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
142
|
+
| ("current_version" name) -> ::String
|
|
143
|
+
| ("ramping_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
144
|
+
| ("ramping_version" name) -> ::String
|
|
145
|
+
| ("ramping_version_percentage" name) -> ::Float
|
|
146
|
+
| ("update_time" name) -> ::Google::Protobuf::Timestamp?
|
|
147
|
+
|
|
148
|
+
def []=:
|
|
149
|
+
("current_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
|
|
150
|
+
| ("current_version" name, (::String | ::Symbol) value) -> void
|
|
151
|
+
| ("ramping_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
|
|
152
|
+
| ("ramping_version" name, (::String | ::Symbol) value) -> void
|
|
153
|
+
| ("ramping_version_percentage" name, (::Float | ::Integer) value) -> void
|
|
154
|
+
| ("update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Used for specifying versions the caller is interested in.
|
|
158
|
+
class TaskQueueVersionSelection < ::Google::Protobuf::AbstractMessage
|
|
159
|
+
|
|
160
|
+
# Include specific Build IDs.
|
|
161
|
+
attr_accessor build_ids(): ::Google::Protobuf::RepeatedField
|
|
162
|
+
def clear_build_ids: () -> void
|
|
163
|
+
|
|
164
|
+
# Include the unversioned queue.
|
|
165
|
+
attr_accessor unversioned(): bool
|
|
166
|
+
def clear_unversioned: () -> void
|
|
167
|
+
|
|
168
|
+
# Include all active versions. A version is considered active if, in the last few minutes,
|
|
169
|
+
# it has had new tasks or polls, or it has been the subject of certain task queue API calls.
|
|
170
|
+
attr_accessor all_active(): bool
|
|
171
|
+
def clear_all_active: () -> void
|
|
172
|
+
|
|
173
|
+
type init_map = {
|
|
174
|
+
build_ids: ::Array[::String | ::Symbol]?,
|
|
175
|
+
"build_ids" => ::Array[::String | ::Symbol]?,
|
|
176
|
+
unversioned: bool?,
|
|
177
|
+
"unversioned" => bool?,
|
|
178
|
+
all_active: bool?,
|
|
179
|
+
"all_active" => bool?,
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
def initialize: (?init_map initial_value) -> void
|
|
183
|
+
|
|
184
|
+
def []:
|
|
185
|
+
("build_ids" name) -> (::Google::Protobuf::RepeatedField)
|
|
186
|
+
| ("unversioned" name) -> bool
|
|
187
|
+
| ("all_active" name) -> bool
|
|
188
|
+
|
|
189
|
+
def []=:
|
|
190
|
+
("build_ids" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
191
|
+
| ("unversioned" name, bool value) -> void
|
|
192
|
+
| ("all_active" name, bool value) -> void
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
class TaskQueueVersionInfo < ::Google::Protobuf::AbstractMessage
|
|
196
|
+
|
|
197
|
+
# Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
|
|
198
|
+
attr_accessor types_info(): ::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]
|
|
199
|
+
def clear_types_info: () -> void
|
|
200
|
+
|
|
201
|
+
# Task Reachability is eventually consistent; there may be a delay until it converges to the most
|
|
202
|
+
# accurate value but it is designed in a way to take the more conservative side until it converges.
|
|
203
|
+
# For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
|
|
204
|
+
# Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
|
|
205
|
+
# accounted for reachability as server cannot know if they'll happen as they do not use
|
|
206
|
+
# assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
|
|
207
|
+
# who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
|
|
208
|
+
# sure to query reachability for the parent/previous workflow's Task Queue as well.
|
|
209
|
+
attr_reader task_reachability(): ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Integer
|
|
210
|
+
attr_writer task_reachability(): ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float
|
|
211
|
+
attr_reader task_reachability_const(): ::Integer
|
|
212
|
+
def clear_task_reachability: () -> void
|
|
213
|
+
|
|
214
|
+
type init_map = {
|
|
215
|
+
types_info: ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]?,
|
|
216
|
+
"types_info" => ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]?,
|
|
217
|
+
task_reachability: (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float)?,
|
|
218
|
+
"task_reachability" => (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float)?,
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
def initialize: (?init_map initial_value) -> void
|
|
222
|
+
|
|
223
|
+
def []:
|
|
224
|
+
("types_info" name) -> (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo])
|
|
225
|
+
| ("task_reachability" name) -> (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Integer)
|
|
226
|
+
|
|
227
|
+
def []=:
|
|
228
|
+
("types_info" name, (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]) value) -> void
|
|
229
|
+
| ("task_reachability" name, (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float) value) -> void
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
class TaskQueueTypeInfo < ::Google::Protobuf::AbstractMessage
|
|
233
|
+
|
|
234
|
+
# Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID.
|
|
235
|
+
attr_accessor pollers(): ::Google::Protobuf::RepeatedField
|
|
236
|
+
def clear_pollers: () -> void
|
|
237
|
+
|
|
238
|
+
attr_accessor stats(): ::Temporalio::Api::TaskQueue::V1::TaskQueueStats?
|
|
239
|
+
def has_stats?: () -> bool
|
|
240
|
+
def clear_stats: () -> void
|
|
241
|
+
|
|
242
|
+
type init_map = {
|
|
243
|
+
pollers: ::Array[::Temporalio::Api::TaskQueue::V1::PollerInfo]?,
|
|
244
|
+
"pollers" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerInfo]?,
|
|
245
|
+
stats: (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?,
|
|
246
|
+
"stats" => (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?,
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
def initialize: (?init_map initial_value) -> void
|
|
250
|
+
|
|
251
|
+
def []:
|
|
252
|
+
("pollers" name) -> ::Google::Protobuf::RepeatedField
|
|
253
|
+
| ("stats" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueStats?
|
|
254
|
+
|
|
255
|
+
def []=:
|
|
256
|
+
("pollers" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
257
|
+
| ("stats" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? value) -> void
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# TaskQueueStats contains statistics about task queue backlog and activity.
|
|
261
|
+
# For workflow task queue type, this result is partial because tasks sent to sticky queues are not included. Read
|
|
262
|
+
# comments above each metric to understand the impact of sticky queue exclusion on that metric accuracy.
|
|
263
|
+
class TaskQueueStats < ::Google::Protobuf::AbstractMessage
|
|
264
|
+
|
|
265
|
+
# The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually
|
|
266
|
+
# converges to the right value. Can be relied upon for scaling decisions.
|
|
267
|
+
# Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because
|
|
268
|
+
# those tasks only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog size
|
|
269
|
+
# grows.
|
|
270
|
+
attr_reader approximate_backlog_count(): ::Integer
|
|
271
|
+
attr_writer approximate_backlog_count(): ::Integer | ::Float
|
|
272
|
+
def clear_approximate_backlog_count: () -> void
|
|
273
|
+
|
|
274
|
+
# Approximate age of the oldest task in the backlog based on the creation time of the task at the head of
|
|
275
|
+
# the queue. Can be relied upon for scaling decisions.
|
|
276
|
+
# Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because
|
|
277
|
+
# those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than
|
|
278
|
+
# few seconds.
|
|
279
|
+
attr_reader approximate_backlog_age(): ::Google::Protobuf::Duration?
|
|
280
|
+
attr_writer approximate_backlog_age(): (::Google::Protobuf::Duration | ::int)?
|
|
281
|
+
def has_approximate_backlog_age?: () -> bool
|
|
282
|
+
def clear_approximate_backlog_age: () -> void
|
|
283
|
+
|
|
284
|
+
# The approximate tasks per second added to the task queue, averaging the last 30 seconds. These includes tasks
|
|
285
|
+
# whether or not they were added to/dispatched from the backlog or they were dispatched immediately without going
|
|
286
|
+
# to the backlog (sync-matched).
|
|
287
|
+
# The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which
|
|
288
|
+
# backlog grows/shrinks.
|
|
289
|
+
# Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by
|
|
290
|
+
# tasks_add_rate, because:
|
|
291
|
+
# - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is
|
|
292
|
+
# enable for activities by default in the latest SDKs.
|
|
293
|
+
# - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each
|
|
294
|
+
# workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific
|
|
295
|
+
# worker instance.
|
|
296
|
+
attr_reader tasks_add_rate(): ::Float
|
|
297
|
+
attr_writer tasks_add_rate(): ::Float | ::Integer
|
|
298
|
+
def clear_tasks_add_rate: () -> void
|
|
299
|
+
|
|
300
|
+
# The approximate tasks per second dispatched from the task queue, averaging the last 30 seconds. These includes
|
|
301
|
+
# tasks whether or not they were added to/dispatched from the backlog or they were dispatched immediately without
|
|
302
|
+
# going to the backlog (sync-matched).
|
|
303
|
+
# The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which
|
|
304
|
+
# backlog grows/shrinks.
|
|
305
|
+
# Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by
|
|
306
|
+
# tasks_dispatch_rate, because:
|
|
307
|
+
# - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is
|
|
308
|
+
# enable for activities by default in the latest SDKs.
|
|
309
|
+
# - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each
|
|
310
|
+
# workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific
|
|
311
|
+
# worker instance.
|
|
312
|
+
attr_reader tasks_dispatch_rate(): ::Float
|
|
313
|
+
attr_writer tasks_dispatch_rate(): ::Float | ::Integer
|
|
314
|
+
def clear_tasks_dispatch_rate: () -> void
|
|
315
|
+
|
|
316
|
+
type init_map = {
|
|
317
|
+
approximate_backlog_count: (::Integer | ::Float)?,
|
|
318
|
+
"approximate_backlog_count" => (::Integer | ::Float)?,
|
|
319
|
+
approximate_backlog_age: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
320
|
+
"approximate_backlog_age" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
321
|
+
tasks_add_rate: (::Float | ::Integer)?,
|
|
322
|
+
"tasks_add_rate" => (::Float | ::Integer)?,
|
|
323
|
+
tasks_dispatch_rate: (::Float | ::Integer)?,
|
|
324
|
+
"tasks_dispatch_rate" => (::Float | ::Integer)?,
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
def initialize: (?init_map initial_value) -> void
|
|
328
|
+
|
|
329
|
+
def []:
|
|
330
|
+
("approximate_backlog_count" name) -> ::Integer
|
|
331
|
+
| ("approximate_backlog_age" name) -> ::Google::Protobuf::Duration?
|
|
332
|
+
| ("tasks_add_rate" name) -> ::Float
|
|
333
|
+
| ("tasks_dispatch_rate" name) -> ::Float
|
|
334
|
+
|
|
335
|
+
def []=:
|
|
336
|
+
("approximate_backlog_count" name, (::Integer | ::Float) value) -> void
|
|
337
|
+
| ("approximate_backlog_age" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
338
|
+
| ("tasks_add_rate" name, (::Float | ::Integer) value) -> void
|
|
339
|
+
| ("tasks_dispatch_rate" name, (::Float | ::Integer) value) -> void
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior.
|
|
343
|
+
class TaskQueueStatus < ::Google::Protobuf::AbstractMessage
|
|
344
|
+
|
|
345
|
+
attr_reader backlog_count_hint(): ::Integer
|
|
346
|
+
attr_writer backlog_count_hint(): ::Integer | ::Float
|
|
347
|
+
def clear_backlog_count_hint: () -> void
|
|
348
|
+
|
|
349
|
+
attr_reader read_level(): ::Integer
|
|
350
|
+
attr_writer read_level(): ::Integer | ::Float
|
|
351
|
+
def clear_read_level: () -> void
|
|
352
|
+
|
|
353
|
+
attr_reader ack_level(): ::Integer
|
|
354
|
+
attr_writer ack_level(): ::Integer | ::Float
|
|
355
|
+
def clear_ack_level: () -> void
|
|
356
|
+
|
|
357
|
+
attr_reader rate_per_second(): ::Float
|
|
358
|
+
attr_writer rate_per_second(): ::Float | ::Integer
|
|
359
|
+
def clear_rate_per_second: () -> void
|
|
360
|
+
|
|
361
|
+
attr_accessor task_id_block(): ::Temporalio::Api::TaskQueue::V1::TaskIdBlock?
|
|
362
|
+
def has_task_id_block?: () -> bool
|
|
363
|
+
def clear_task_id_block: () -> void
|
|
364
|
+
|
|
365
|
+
type init_map = {
|
|
366
|
+
backlog_count_hint: (::Integer | ::Float)?,
|
|
367
|
+
"backlog_count_hint" => (::Integer | ::Float)?,
|
|
368
|
+
read_level: (::Integer | ::Float)?,
|
|
369
|
+
"read_level" => (::Integer | ::Float)?,
|
|
370
|
+
ack_level: (::Integer | ::Float)?,
|
|
371
|
+
"ack_level" => (::Integer | ::Float)?,
|
|
372
|
+
rate_per_second: (::Float | ::Integer)?,
|
|
373
|
+
"rate_per_second" => (::Float | ::Integer)?,
|
|
374
|
+
task_id_block: (::Temporalio::Api::TaskQueue::V1::TaskIdBlock | ::Temporalio::Api::TaskQueue::V1::TaskIdBlock::init_map)?,
|
|
375
|
+
"task_id_block" => (::Temporalio::Api::TaskQueue::V1::TaskIdBlock | ::Temporalio::Api::TaskQueue::V1::TaskIdBlock::init_map)?,
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
def initialize: (?init_map initial_value) -> void
|
|
379
|
+
|
|
380
|
+
def []:
|
|
381
|
+
("backlog_count_hint" name) -> ::Integer
|
|
382
|
+
| ("read_level" name) -> ::Integer
|
|
383
|
+
| ("ack_level" name) -> ::Integer
|
|
384
|
+
| ("rate_per_second" name) -> ::Float
|
|
385
|
+
| ("task_id_block" name) -> ::Temporalio::Api::TaskQueue::V1::TaskIdBlock?
|
|
386
|
+
|
|
387
|
+
def []=:
|
|
388
|
+
("backlog_count_hint" name, (::Integer | ::Float) value) -> void
|
|
389
|
+
| ("read_level" name, (::Integer | ::Float) value) -> void
|
|
390
|
+
| ("ack_level" name, (::Integer | ::Float) value) -> void
|
|
391
|
+
| ("rate_per_second" name, (::Float | ::Integer) value) -> void
|
|
392
|
+
| ("task_id_block" name, ::Temporalio::Api::TaskQueue::V1::TaskIdBlock? value) -> void
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
class TaskIdBlock < ::Google::Protobuf::AbstractMessage
|
|
396
|
+
|
|
397
|
+
attr_reader start_id(): ::Integer
|
|
398
|
+
attr_writer start_id(): ::Integer | ::Float
|
|
399
|
+
def clear_start_id: () -> void
|
|
400
|
+
|
|
401
|
+
attr_reader end_id(): ::Integer
|
|
402
|
+
attr_writer end_id(): ::Integer | ::Float
|
|
403
|
+
def clear_end_id: () -> void
|
|
404
|
+
|
|
405
|
+
type init_map = {
|
|
406
|
+
start_id: (::Integer | ::Float)?,
|
|
407
|
+
"start_id" => (::Integer | ::Float)?,
|
|
408
|
+
end_id: (::Integer | ::Float)?,
|
|
409
|
+
"end_id" => (::Integer | ::Float)?,
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
def initialize: (?init_map initial_value) -> void
|
|
413
|
+
|
|
414
|
+
def []:
|
|
415
|
+
("start_id" name) -> ::Integer
|
|
416
|
+
| ("end_id" name) -> ::Integer
|
|
417
|
+
|
|
418
|
+
def []=:
|
|
419
|
+
("start_id" name, (::Integer | ::Float) value) -> void
|
|
420
|
+
| ("end_id" name, (::Integer | ::Float) value) -> void
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
class TaskQueuePartitionMetadata < ::Google::Protobuf::AbstractMessage
|
|
424
|
+
|
|
425
|
+
attr_reader key(): ::String
|
|
426
|
+
attr_writer key(): ::String | ::Symbol
|
|
427
|
+
def clear_key: () -> void
|
|
428
|
+
|
|
429
|
+
attr_reader owner_host_name(): ::String
|
|
430
|
+
attr_writer owner_host_name(): ::String | ::Symbol
|
|
431
|
+
def clear_owner_host_name: () -> void
|
|
432
|
+
|
|
433
|
+
type init_map = {
|
|
434
|
+
key: (::String | ::Symbol)?,
|
|
435
|
+
"key" => (::String | ::Symbol)?,
|
|
436
|
+
owner_host_name: (::String | ::Symbol)?,
|
|
437
|
+
"owner_host_name" => (::String | ::Symbol)?,
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
def initialize: (?init_map initial_value) -> void
|
|
441
|
+
|
|
442
|
+
def []:
|
|
443
|
+
("key" name) -> ::String
|
|
444
|
+
| ("owner_host_name" name) -> ::String
|
|
445
|
+
|
|
446
|
+
def []=:
|
|
447
|
+
("key" name, (::String | ::Symbol) value) -> void
|
|
448
|
+
| ("owner_host_name" name, (::String | ::Symbol) value) -> void
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
class PollerInfo < ::Google::Protobuf::AbstractMessage
|
|
452
|
+
|
|
453
|
+
attr_reader last_access_time(): ::Google::Protobuf::Timestamp?
|
|
454
|
+
attr_writer last_access_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
455
|
+
def has_last_access_time?: () -> bool
|
|
456
|
+
def clear_last_access_time: () -> void
|
|
457
|
+
|
|
458
|
+
attr_reader identity(): ::String
|
|
459
|
+
attr_writer identity(): ::String | ::Symbol
|
|
460
|
+
def clear_identity: () -> void
|
|
461
|
+
|
|
462
|
+
attr_reader rate_per_second(): ::Float
|
|
463
|
+
attr_writer rate_per_second(): ::Float | ::Integer
|
|
464
|
+
def clear_rate_per_second: () -> void
|
|
465
|
+
|
|
466
|
+
# If a worker has opted into the worker versioning feature while polling, its capabilities will
|
|
467
|
+
# appear here.
|
|
468
|
+
# Deprecated. Replaced by deployment_options.
|
|
469
|
+
# @deprecated
|
|
470
|
+
attr_accessor worker_version_capabilities(): ::Temporalio::Api::Common::V1::WorkerVersionCapabilities?
|
|
471
|
+
def has_worker_version_capabilities?: () -> bool
|
|
472
|
+
def clear_worker_version_capabilities: () -> void
|
|
473
|
+
|
|
474
|
+
# Worker deployment options that SDK sent to server.
|
|
475
|
+
attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions?
|
|
476
|
+
def has_deployment_options?: () -> bool
|
|
477
|
+
def clear_deployment_options: () -> void
|
|
478
|
+
|
|
479
|
+
type init_map = {
|
|
480
|
+
last_access_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
481
|
+
"last_access_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
482
|
+
identity: (::String | ::Symbol)?,
|
|
483
|
+
"identity" => (::String | ::Symbol)?,
|
|
484
|
+
rate_per_second: (::Float | ::Integer)?,
|
|
485
|
+
"rate_per_second" => (::Float | ::Integer)?,
|
|
486
|
+
worker_version_capabilities: (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?,
|
|
487
|
+
"worker_version_capabilities" => (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?,
|
|
488
|
+
deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?,
|
|
489
|
+
"deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?,
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
def initialize: (?init_map initial_value) -> void
|
|
493
|
+
|
|
494
|
+
def []:
|
|
495
|
+
("last_access_time" name) -> ::Google::Protobuf::Timestamp?
|
|
496
|
+
| ("identity" name) -> ::String
|
|
497
|
+
| ("rate_per_second" name) -> ::Float
|
|
498
|
+
| ("worker_version_capabilities" name) -> ::Temporalio::Api::Common::V1::WorkerVersionCapabilities?
|
|
499
|
+
| ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions?
|
|
500
|
+
|
|
501
|
+
def []=:
|
|
502
|
+
("last_access_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
503
|
+
| ("identity" name, (::String | ::Symbol) value) -> void
|
|
504
|
+
| ("rate_per_second" name, (::Float | ::Integer) value) -> void
|
|
505
|
+
| ("worker_version_capabilities" name, ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? value) -> void
|
|
506
|
+
| ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
class StickyExecutionAttributes < ::Google::Protobuf::AbstractMessage
|
|
510
|
+
|
|
511
|
+
attr_accessor worker_task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue?
|
|
512
|
+
def has_worker_task_queue?: () -> bool
|
|
513
|
+
def clear_worker_task_queue: () -> void
|
|
514
|
+
|
|
515
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
516
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
517
|
+
attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration?
|
|
518
|
+
attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
519
|
+
def has_schedule_to_start_timeout?: () -> bool
|
|
520
|
+
def clear_schedule_to_start_timeout: () -> void
|
|
521
|
+
|
|
522
|
+
type init_map = {
|
|
523
|
+
worker_task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
|
|
524
|
+
"worker_task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?,
|
|
525
|
+
schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
526
|
+
"schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
def initialize: (?init_map initial_value) -> void
|
|
530
|
+
|
|
531
|
+
def []:
|
|
532
|
+
("worker_task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue?
|
|
533
|
+
| ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration?
|
|
534
|
+
|
|
535
|
+
def []=:
|
|
536
|
+
("worker_task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void
|
|
537
|
+
| ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
# Used by the worker versioning APIs, represents an unordered set of one or more versions which are
|
|
541
|
+
# considered to be compatible with each other. Currently the versions are always worker build IDs.
|
|
542
|
+
class CompatibleVersionSet < ::Google::Protobuf::AbstractMessage
|
|
543
|
+
|
|
544
|
+
# All the compatible versions, unordered, except for the last element, which is considered the set "default".
|
|
545
|
+
attr_accessor build_ids(): ::Google::Protobuf::RepeatedField
|
|
546
|
+
def clear_build_ids: () -> void
|
|
547
|
+
|
|
548
|
+
type init_map = {
|
|
549
|
+
build_ids: ::Array[::String | ::Symbol]?,
|
|
550
|
+
"build_ids" => ::Array[::String | ::Symbol]?,
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
def initialize: (?init_map initial_value) -> void
|
|
554
|
+
|
|
555
|
+
def []:
|
|
556
|
+
("build_ids" name) -> (::Google::Protobuf::RepeatedField)
|
|
557
|
+
|
|
558
|
+
def []=:
|
|
559
|
+
("build_ids" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# Reachability of tasks for a worker on a single task queue.
|
|
563
|
+
class TaskQueueReachability < ::Google::Protobuf::AbstractMessage
|
|
564
|
+
|
|
565
|
+
attr_reader task_queue(): ::String
|
|
566
|
+
attr_writer task_queue(): ::String | ::Symbol
|
|
567
|
+
def clear_task_queue: () -> void
|
|
568
|
+
|
|
569
|
+
# Task reachability for a worker in a single task queue.
|
|
570
|
+
# See the TaskReachability docstring for information about each enum variant.
|
|
571
|
+
# If reachability is empty, this worker is considered unreachable in this task queue.
|
|
572
|
+
attr_accessor reachability(): ::Google::Protobuf::RepeatedField
|
|
573
|
+
attr_reader reachability_const(): ::Array[::Integer]
|
|
574
|
+
def clear_reachability: () -> void
|
|
575
|
+
|
|
576
|
+
type init_map = {
|
|
577
|
+
task_queue: (::String | ::Symbol)?,
|
|
578
|
+
"task_queue" => (::String | ::Symbol)?,
|
|
579
|
+
reachability: ::Array[::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float]?,
|
|
580
|
+
"reachability" => ::Array[::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float]?,
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
def initialize: (?init_map initial_value) -> void
|
|
584
|
+
|
|
585
|
+
def []:
|
|
586
|
+
("task_queue" name) -> ::String
|
|
587
|
+
| ("reachability" name) -> (::Google::Protobuf::RepeatedField)
|
|
588
|
+
|
|
589
|
+
def []=:
|
|
590
|
+
("task_queue" name, (::String | ::Symbol) value) -> void
|
|
591
|
+
| ("reachability" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# Reachability of tasks for a worker by build id, in one or more task queues.
|
|
595
|
+
class BuildIdReachability < ::Google::Protobuf::AbstractMessage
|
|
596
|
+
|
|
597
|
+
# A build id or empty if unversioned.
|
|
598
|
+
attr_reader build_id(): ::String
|
|
599
|
+
attr_writer build_id(): ::String | ::Symbol
|
|
600
|
+
def clear_build_id: () -> void
|
|
601
|
+
|
|
602
|
+
# Reachability per task queue.
|
|
603
|
+
attr_accessor task_queue_reachability(): ::Google::Protobuf::RepeatedField
|
|
604
|
+
def clear_task_queue_reachability: () -> void
|
|
605
|
+
|
|
606
|
+
type init_map = {
|
|
607
|
+
build_id: (::String | ::Symbol)?,
|
|
608
|
+
"build_id" => (::String | ::Symbol)?,
|
|
609
|
+
task_queue_reachability: ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueueReachability]?,
|
|
610
|
+
"task_queue_reachability" => ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueueReachability]?,
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
def initialize: (?init_map initial_value) -> void
|
|
614
|
+
|
|
615
|
+
def []:
|
|
616
|
+
("build_id" name) -> ::String
|
|
617
|
+
| ("task_queue_reachability" name) -> ::Google::Protobuf::RepeatedField
|
|
618
|
+
|
|
619
|
+
def []=:
|
|
620
|
+
("build_id" name, (::String | ::Symbol) value) -> void
|
|
621
|
+
| ("task_queue_reachability" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
class RampByPercentage < ::Google::Protobuf::AbstractMessage
|
|
625
|
+
|
|
626
|
+
# Acceptable range is [0,100).
|
|
627
|
+
attr_reader ramp_percentage(): ::Float
|
|
628
|
+
attr_writer ramp_percentage(): ::Float | ::Integer
|
|
629
|
+
def clear_ramp_percentage: () -> void
|
|
630
|
+
|
|
631
|
+
type init_map = {
|
|
632
|
+
ramp_percentage: (::Float | ::Integer)?,
|
|
633
|
+
"ramp_percentage" => (::Float | ::Integer)?,
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
def initialize: (?init_map initial_value) -> void
|
|
637
|
+
|
|
638
|
+
def []:
|
|
639
|
+
("ramp_percentage" name) -> ::Float
|
|
640
|
+
|
|
641
|
+
def []=:
|
|
642
|
+
("ramp_percentage" name, (::Float | ::Integer) value) -> void
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Assignment rules are applied to *new* Workflow and Activity executions at
|
|
646
|
+
# schedule time to assign them to a Build ID.
|
|
647
|
+
# Assignment rules will not be used in the following cases:
|
|
648
|
+
# - Child Workflows or Continue-As-New Executions who inherit their
|
|
649
|
+
# parent/previous Workflow's assigned Build ID (by setting the
|
|
650
|
+
# `inherit_build_id` flag - default behavior in SDKs when the same Task Queue
|
|
651
|
+
# is used.)
|
|
652
|
+
# - An Activity that inherits the assigned Build ID of its Workflow (by
|
|
653
|
+
# setting the `use_workflow_build_id` flag - default behavior in SDKs
|
|
654
|
+
# when the same Task Queue is used.)
|
|
655
|
+
# In absence of (applicable) redirect rules (`CompatibleBuildIdRedirectRule`s)
|
|
656
|
+
# the task will be dispatched to Workers of the Build ID determined by the
|
|
657
|
+
# assignment rules (or inherited). Otherwise, the final Build ID will be
|
|
658
|
+
# determined by the redirect rules.
|
|
659
|
+
# Once a Workflow completes its first Workflow Task in a particular Build ID it
|
|
660
|
+
# stays in that Build ID regardless of changes to assignment rules. Redirect
|
|
661
|
+
# rules can be used to move the workflow to another compatible Build ID.
|
|
662
|
+
# When using Worker Versioning on a Task Queue, in the steady state,
|
|
663
|
+
# there should typically be a single assignment rule to send all new executions
|
|
664
|
+
# to the latest Build ID. Existence of at least one such "unconditional"
|
|
665
|
+
# rule at all times is enforces by the system, unless the `force` flag is used
|
|
666
|
+
# by the user when replacing/deleting these rules (for exceptional cases).
|
|
667
|
+
# During a deployment, one or more additional rules can be added to assign a
|
|
668
|
+
# subset of the tasks to a new Build ID based on a "ramp percentage".
|
|
669
|
+
# When there are multiple assignment rules for a Task Queue, the rules are
|
|
670
|
+
# evaluated in order, starting from index 0. The first applicable rule will be
|
|
671
|
+
# applied and the rest will be ignored.
|
|
672
|
+
# In the event that no assignment rule is applicable on a task (or the Task
|
|
673
|
+
# Queue is simply not versioned), the tasks will be dispatched to an
|
|
674
|
+
# unversioned Worker.
|
|
675
|
+
class BuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage
|
|
676
|
+
|
|
677
|
+
attr_reader target_build_id(): ::String
|
|
678
|
+
attr_writer target_build_id(): ::String | ::Symbol
|
|
679
|
+
def clear_target_build_id: () -> void
|
|
680
|
+
|
|
681
|
+
# This ramp is useful for gradual Blue/Green deployments (and similar)
|
|
682
|
+
# where you want to send a certain portion of the traffic to the target
|
|
683
|
+
# Build ID.
|
|
684
|
+
attr_accessor percentage_ramp(): ::Temporalio::Api::TaskQueue::V1::RampByPercentage?
|
|
685
|
+
def has_percentage_ramp?: () -> bool
|
|
686
|
+
def clear_percentage_ramp: () -> void
|
|
687
|
+
|
|
688
|
+
# If a ramp is provided, this rule will be applied only to a sample of
|
|
689
|
+
# tasks according to the provided percentage.
|
|
690
|
+
# This option can be used only on "terminal" Build IDs (the ones not used
|
|
691
|
+
# as source in any redirect rules).
|
|
692
|
+
attr_reader ramp(): ::Temporalio::Api::TaskQueue::V1::RampByPercentage?
|
|
693
|
+
def has_ramp?: () -> bool
|
|
694
|
+
def clear_ramp: () -> void
|
|
695
|
+
|
|
696
|
+
type init_map = {
|
|
697
|
+
target_build_id: (::String | ::Symbol)?,
|
|
698
|
+
"target_build_id" => (::String | ::Symbol)?,
|
|
699
|
+
percentage_ramp: (::Temporalio::Api::TaskQueue::V1::RampByPercentage | ::Temporalio::Api::TaskQueue::V1::RampByPercentage::init_map)?,
|
|
700
|
+
"percentage_ramp" => (::Temporalio::Api::TaskQueue::V1::RampByPercentage | ::Temporalio::Api::TaskQueue::V1::RampByPercentage::init_map)?,
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
def initialize: (?init_map initial_value) -> void
|
|
704
|
+
|
|
705
|
+
def []:
|
|
706
|
+
("target_build_id" name) -> ::String
|
|
707
|
+
| ("percentage_ramp" name) -> ::Temporalio::Api::TaskQueue::V1::RampByPercentage?
|
|
708
|
+
|
|
709
|
+
def []=:
|
|
710
|
+
("target_build_id" name, (::String | ::Symbol) value) -> void
|
|
711
|
+
| ("percentage_ramp" name, ::Temporalio::Api::TaskQueue::V1::RampByPercentage? value) -> void
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
# These rules apply to tasks assigned to a particular Build ID
|
|
715
|
+
# (`source_build_id`) to redirect them to another *compatible* Build ID
|
|
716
|
+
# (`target_build_id`).
|
|
717
|
+
# It is user's responsibility to ensure that the target Build ID is compatible
|
|
718
|
+
# with the source Build ID (e.g. by using the Patching API).
|
|
719
|
+
# Most deployments are not expected to need these rules, however following
|
|
720
|
+
# situations can greatly benefit from redirects:
|
|
721
|
+
# - Need to move long-running Workflow Executions from an old Build ID to a
|
|
722
|
+
# newer one.
|
|
723
|
+
# - Need to hotfix some broken or stuck Workflow Executions.
|
|
724
|
+
# In steady state, redirect rules are beneficial when dealing with old
|
|
725
|
+
# Executions ran on now-decommissioned Build IDs:
|
|
726
|
+
# - To redirecting the Workflow Queries to the current (compatible) Build ID.
|
|
727
|
+
# - To be able to Reset an old Execution so it can run on the current
|
|
728
|
+
# (compatible) Build ID.
|
|
729
|
+
# Redirect rules can be chained.
|
|
730
|
+
class CompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage
|
|
731
|
+
|
|
732
|
+
attr_reader source_build_id(): ::String
|
|
733
|
+
attr_writer source_build_id(): ::String | ::Symbol
|
|
734
|
+
def clear_source_build_id: () -> void
|
|
735
|
+
|
|
736
|
+
# Target Build ID must be compatible with the Source Build ID; that is it
|
|
737
|
+
# must be able to process event histories made by the Source Build ID by
|
|
738
|
+
# using [Patching](https://docs.temporal.io/workflows#patching) or other
|
|
739
|
+
# means.
|
|
740
|
+
attr_reader target_build_id(): ::String
|
|
741
|
+
attr_writer target_build_id(): ::String | ::Symbol
|
|
742
|
+
def clear_target_build_id: () -> void
|
|
743
|
+
|
|
744
|
+
type init_map = {
|
|
745
|
+
source_build_id: (::String | ::Symbol)?,
|
|
746
|
+
"source_build_id" => (::String | ::Symbol)?,
|
|
747
|
+
target_build_id: (::String | ::Symbol)?,
|
|
748
|
+
"target_build_id" => (::String | ::Symbol)?,
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
def initialize: (?init_map initial_value) -> void
|
|
752
|
+
|
|
753
|
+
def []:
|
|
754
|
+
("source_build_id" name) -> ::String
|
|
755
|
+
| ("target_build_id" name) -> ::String
|
|
756
|
+
|
|
757
|
+
def []=:
|
|
758
|
+
("source_build_id" name, (::String | ::Symbol) value) -> void
|
|
759
|
+
| ("target_build_id" name, (::String | ::Symbol) value) -> void
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
class TimestampedBuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage
|
|
763
|
+
|
|
764
|
+
attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule?
|
|
765
|
+
def has_rule?: () -> bool
|
|
766
|
+
def clear_rule: () -> void
|
|
767
|
+
|
|
768
|
+
attr_reader create_time(): ::Google::Protobuf::Timestamp?
|
|
769
|
+
attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
770
|
+
def has_create_time?: () -> bool
|
|
771
|
+
def clear_create_time: () -> void
|
|
772
|
+
|
|
773
|
+
type init_map = {
|
|
774
|
+
rule: (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?,
|
|
775
|
+
"rule" => (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?,
|
|
776
|
+
create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
777
|
+
"create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
def initialize: (?init_map initial_value) -> void
|
|
781
|
+
|
|
782
|
+
def []:
|
|
783
|
+
("rule" name) -> ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule?
|
|
784
|
+
| ("create_time" name) -> ::Google::Protobuf::Timestamp?
|
|
785
|
+
|
|
786
|
+
def []=:
|
|
787
|
+
("rule" name, ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? value) -> void
|
|
788
|
+
| ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
class TimestampedCompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage
|
|
792
|
+
|
|
793
|
+
attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule?
|
|
794
|
+
def has_rule?: () -> bool
|
|
795
|
+
def clear_rule: () -> void
|
|
796
|
+
|
|
797
|
+
attr_reader create_time(): ::Google::Protobuf::Timestamp?
|
|
798
|
+
attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
799
|
+
def has_create_time?: () -> bool
|
|
800
|
+
def clear_create_time: () -> void
|
|
801
|
+
|
|
802
|
+
type init_map = {
|
|
803
|
+
rule: (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?,
|
|
804
|
+
"rule" => (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?,
|
|
805
|
+
create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
806
|
+
"create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
def initialize: (?init_map initial_value) -> void
|
|
810
|
+
|
|
811
|
+
def []:
|
|
812
|
+
("rule" name) -> ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule?
|
|
813
|
+
| ("create_time" name) -> ::Google::Protobuf::Timestamp?
|
|
814
|
+
|
|
815
|
+
def []=:
|
|
816
|
+
("rule" name, ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? value) -> void
|
|
817
|
+
| ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
class PollerGroupInfo < ::Google::Protobuf::AbstractMessage
|
|
821
|
+
|
|
822
|
+
attr_reader id(): ::String
|
|
823
|
+
attr_writer id(): ::String | ::Symbol
|
|
824
|
+
def clear_id: () -> void
|
|
825
|
+
|
|
826
|
+
attr_reader weight(): ::Float
|
|
827
|
+
attr_writer weight(): ::Float | ::Integer
|
|
828
|
+
def clear_weight: () -> void
|
|
829
|
+
|
|
830
|
+
type init_map = {
|
|
831
|
+
id: (::String | ::Symbol)?,
|
|
832
|
+
"id" => (::String | ::Symbol)?,
|
|
833
|
+
weight: (::Float | ::Integer)?,
|
|
834
|
+
"weight" => (::Float | ::Integer)?,
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
def initialize: (?init_map initial_value) -> void
|
|
838
|
+
|
|
839
|
+
def []:
|
|
840
|
+
("id" name) -> ::String
|
|
841
|
+
| ("weight" name) -> ::Float
|
|
842
|
+
|
|
843
|
+
def []=:
|
|
844
|
+
("id" name, (::String | ::Symbol) value) -> void
|
|
845
|
+
| ("weight" name, (::Float | ::Integer) value) -> void
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# Attached to task responses to give hints to the SDK about how it may adjust its number of
|
|
849
|
+
# pollers.
|
|
850
|
+
class PollerScalingDecision < ::Google::Protobuf::AbstractMessage
|
|
851
|
+
|
|
852
|
+
# How many poll requests to suggest should be added or removed, if any. As of now, server only
|
|
853
|
+
# scales up or down by 1. However, SDKs should allow for other values (while staying within
|
|
854
|
+
# defined min/max).
|
|
855
|
+
# The SDK is free to ignore this suggestion, EX: making more polls would not make sense because
|
|
856
|
+
# all slots are already occupied.
|
|
857
|
+
attr_reader poll_request_delta_suggestion(): ::Integer
|
|
858
|
+
attr_writer poll_request_delta_suggestion(): ::Integer | ::Float
|
|
859
|
+
def clear_poll_request_delta_suggestion: () -> void
|
|
860
|
+
|
|
861
|
+
type init_map = {
|
|
862
|
+
poll_request_delta_suggestion: (::Integer | ::Float)?,
|
|
863
|
+
"poll_request_delta_suggestion" => (::Integer | ::Float)?,
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
def initialize: (?init_map initial_value) -> void
|
|
867
|
+
|
|
868
|
+
def []:
|
|
869
|
+
("poll_request_delta_suggestion" name) -> ::Integer
|
|
870
|
+
|
|
871
|
+
def []=:
|
|
872
|
+
("poll_request_delta_suggestion" name, (::Integer | ::Float) value) -> void
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
class RateLimit < ::Google::Protobuf::AbstractMessage
|
|
876
|
+
|
|
877
|
+
# Zero is a valid rate limit.
|
|
878
|
+
attr_reader requests_per_second(): ::Float
|
|
879
|
+
attr_writer requests_per_second(): ::Float | ::Integer
|
|
880
|
+
def clear_requests_per_second: () -> void
|
|
881
|
+
|
|
882
|
+
type init_map = {
|
|
883
|
+
requests_per_second: (::Float | ::Integer)?,
|
|
884
|
+
"requests_per_second" => (::Float | ::Integer)?,
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
def initialize: (?init_map initial_value) -> void
|
|
888
|
+
|
|
889
|
+
def []:
|
|
890
|
+
("requests_per_second" name) -> ::Float
|
|
891
|
+
|
|
892
|
+
def []=:
|
|
893
|
+
("requests_per_second" name, (::Float | ::Integer) value) -> void
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
class ConfigMetadata < ::Google::Protobuf::AbstractMessage
|
|
897
|
+
|
|
898
|
+
# Reason for why the config was set.
|
|
899
|
+
attr_reader reason(): ::String
|
|
900
|
+
attr_writer reason(): ::String | ::Symbol
|
|
901
|
+
def clear_reason: () -> void
|
|
902
|
+
|
|
903
|
+
# Identity of the last updater.
|
|
904
|
+
# Set by the request's identity field.
|
|
905
|
+
attr_reader update_identity(): ::String
|
|
906
|
+
attr_writer update_identity(): ::String | ::Symbol
|
|
907
|
+
def clear_update_identity: () -> void
|
|
908
|
+
|
|
909
|
+
# Time of the last update.
|
|
910
|
+
attr_reader update_time(): ::Google::Protobuf::Timestamp?
|
|
911
|
+
attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
912
|
+
def has_update_time?: () -> bool
|
|
913
|
+
def clear_update_time: () -> void
|
|
914
|
+
|
|
915
|
+
type init_map = {
|
|
916
|
+
reason: (::String | ::Symbol)?,
|
|
917
|
+
"reason" => (::String | ::Symbol)?,
|
|
918
|
+
update_identity: (::String | ::Symbol)?,
|
|
919
|
+
"update_identity" => (::String | ::Symbol)?,
|
|
920
|
+
update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
921
|
+
"update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
def initialize: (?init_map initial_value) -> void
|
|
925
|
+
|
|
926
|
+
def []:
|
|
927
|
+
("reason" name) -> ::String
|
|
928
|
+
| ("update_identity" name) -> ::String
|
|
929
|
+
| ("update_time" name) -> ::Google::Protobuf::Timestamp?
|
|
930
|
+
|
|
931
|
+
def []=:
|
|
932
|
+
("reason" name, (::String | ::Symbol) value) -> void
|
|
933
|
+
| ("update_identity" name, (::String | ::Symbol) value) -> void
|
|
934
|
+
| ("update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
class RateLimitConfig < ::Google::Protobuf::AbstractMessage
|
|
938
|
+
|
|
939
|
+
attr_accessor rate_limit(): ::Temporalio::Api::TaskQueue::V1::RateLimit?
|
|
940
|
+
def has_rate_limit?: () -> bool
|
|
941
|
+
def clear_rate_limit: () -> void
|
|
942
|
+
|
|
943
|
+
attr_accessor metadata(): ::Temporalio::Api::TaskQueue::V1::ConfigMetadata?
|
|
944
|
+
def has_metadata?: () -> bool
|
|
945
|
+
def clear_metadata: () -> void
|
|
946
|
+
|
|
947
|
+
type init_map = {
|
|
948
|
+
rate_limit: (::Temporalio::Api::TaskQueue::V1::RateLimit | ::Temporalio::Api::TaskQueue::V1::RateLimit::init_map)?,
|
|
949
|
+
"rate_limit" => (::Temporalio::Api::TaskQueue::V1::RateLimit | ::Temporalio::Api::TaskQueue::V1::RateLimit::init_map)?,
|
|
950
|
+
metadata: (::Temporalio::Api::TaskQueue::V1::ConfigMetadata | ::Temporalio::Api::TaskQueue::V1::ConfigMetadata::init_map)?,
|
|
951
|
+
"metadata" => (::Temporalio::Api::TaskQueue::V1::ConfigMetadata | ::Temporalio::Api::TaskQueue::V1::ConfigMetadata::init_map)?,
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
def initialize: (?init_map initial_value) -> void
|
|
955
|
+
|
|
956
|
+
def []:
|
|
957
|
+
("rate_limit" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimit?
|
|
958
|
+
| ("metadata" name) -> ::Temporalio::Api::TaskQueue::V1::ConfigMetadata?
|
|
959
|
+
|
|
960
|
+
def []=:
|
|
961
|
+
("rate_limit" name, ::Temporalio::Api::TaskQueue::V1::RateLimit? value) -> void
|
|
962
|
+
| ("metadata" name, ::Temporalio::Api::TaskQueue::V1::ConfigMetadata? value) -> void
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
class TaskQueueConfig < ::Google::Protobuf::AbstractMessage
|
|
966
|
+
|
|
967
|
+
# Unless modified, this is the system-defined rate limit.
|
|
968
|
+
attr_accessor queue_rate_limit(): ::Temporalio::Api::TaskQueue::V1::RateLimitConfig?
|
|
969
|
+
def has_queue_rate_limit?: () -> bool
|
|
970
|
+
def clear_queue_rate_limit: () -> void
|
|
971
|
+
|
|
972
|
+
# If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key.
|
|
973
|
+
attr_accessor fairness_keys_rate_limit_default(): ::Temporalio::Api::TaskQueue::V1::RateLimitConfig?
|
|
974
|
+
def has_fairness_keys_rate_limit_default?: () -> bool
|
|
975
|
+
def clear_fairness_keys_rate_limit_default: () -> void
|
|
976
|
+
|
|
977
|
+
# If set, overrides the fairness weights for the corresponding fairness keys.
|
|
978
|
+
attr_accessor fairness_weight_overrides(): ::Google::Protobuf::Map[::String, ::Float]
|
|
979
|
+
def clear_fairness_weight_overrides: () -> void
|
|
980
|
+
|
|
981
|
+
type init_map = {
|
|
982
|
+
queue_rate_limit: (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?,
|
|
983
|
+
"queue_rate_limit" => (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?,
|
|
984
|
+
fairness_keys_rate_limit_default: (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?,
|
|
985
|
+
"fairness_keys_rate_limit_default" => (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?,
|
|
986
|
+
fairness_weight_overrides: ::Hash[::String | ::Symbol, ::Float | ::Integer]?,
|
|
987
|
+
"fairness_weight_overrides" => ::Hash[::String | ::Symbol, ::Float | ::Integer]?,
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
def initialize: (?init_map initial_value) -> void
|
|
991
|
+
|
|
992
|
+
def []:
|
|
993
|
+
("queue_rate_limit" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimitConfig?
|
|
994
|
+
| ("fairness_keys_rate_limit_default" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimitConfig?
|
|
995
|
+
| ("fairness_weight_overrides" name) -> (::Google::Protobuf::Map[::String, ::Float])
|
|
996
|
+
|
|
997
|
+
def []=:
|
|
998
|
+
("queue_rate_limit" name, ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? value) -> void
|
|
999
|
+
| ("fairness_keys_rate_limit_default" name, ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? value) -> void
|
|
1000
|
+
| ("fairness_weight_overrides" name, (::Google::Protobuf::Map[::String, ::Float]) value) -> void
|
|
1001
|
+
end
|
|
1002
|
+
end
|
|
1003
|
+
end
|
|
1004
|
+
end
|
|
1005
|
+
end
|
|
1006
|
+
|
|
1007
|
+
module Google
|
|
1008
|
+
module Protobuf
|
|
1009
|
+
class DescriptorPool
|
|
1010
|
+
def lookup: (::String name) -> ::Google::Protobuf::Descriptor
|
|
1011
|
+
end
|
|
1012
|
+
end
|
|
1013
|
+
end
|