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,1565 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/worker/v1/message.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
class Temporalio::Api::Worker::V1::WorkerPollerInfo
|
|
6
|
+
include ::Google::Protobuf::MessageExts
|
|
7
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
8
|
+
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
current_pollers: T.nilable(Integer),
|
|
12
|
+
last_successful_poll_time: T.nilable(Google::Protobuf::Timestamp),
|
|
13
|
+
is_autoscaling: T.nilable(T::Boolean)
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(
|
|
17
|
+
current_pollers: 0,
|
|
18
|
+
last_successful_poll_time: nil,
|
|
19
|
+
is_autoscaling: false
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Number of polling RPCs that are currently in flight.
|
|
24
|
+
sig { returns(Integer) }
|
|
25
|
+
def current_pollers
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Number of polling RPCs that are currently in flight.
|
|
29
|
+
sig { params(value: Integer).void }
|
|
30
|
+
def current_pollers=(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Number of polling RPCs that are currently in flight.
|
|
34
|
+
sig { void }
|
|
35
|
+
def clear_current_pollers
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
39
|
+
def last_successful_poll_time
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
43
|
+
def last_successful_poll_time=(value)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
sig { void }
|
|
47
|
+
def clear_last_successful_poll_time
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Set true if the number of concurrent pollers is auto-scaled
|
|
51
|
+
sig { returns(T::Boolean) }
|
|
52
|
+
def is_autoscaling
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Set true if the number of concurrent pollers is auto-scaled
|
|
56
|
+
sig { params(value: T::Boolean).void }
|
|
57
|
+
def is_autoscaling=(value)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Set true if the number of concurrent pollers is auto-scaled
|
|
61
|
+
sig { void }
|
|
62
|
+
def clear_is_autoscaling
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
sig { params(field: String).returns(T.untyped) }
|
|
66
|
+
def [](field)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig { params(field: String, value: T.untyped).void }
|
|
70
|
+
def []=(field, value)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
74
|
+
def to_h
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerPollerInfo) }
|
|
78
|
+
def self.decode(str)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerPollerInfo).returns(String) }
|
|
82
|
+
def self.encode(msg)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerPollerInfo) }
|
|
86
|
+
def self.decode_json(str, **kw)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerPollerInfo, kw: T.untyped).returns(String) }
|
|
90
|
+
def self.encode_json(msg, **kw)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
94
|
+
def self.descriptor
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
class Temporalio::Api::Worker::V1::WorkerSlotsInfo
|
|
99
|
+
include ::Google::Protobuf::MessageExts
|
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
101
|
+
|
|
102
|
+
sig do
|
|
103
|
+
params(
|
|
104
|
+
current_available_slots: T.nilable(Integer),
|
|
105
|
+
current_used_slots: T.nilable(Integer),
|
|
106
|
+
slot_supplier_kind: T.nilable(String),
|
|
107
|
+
total_processed_tasks: T.nilable(Integer),
|
|
108
|
+
total_failed_tasks: T.nilable(Integer),
|
|
109
|
+
last_interval_processed_tasks: T.nilable(Integer),
|
|
110
|
+
last_interval_failure_tasks: T.nilable(Integer)
|
|
111
|
+
).void
|
|
112
|
+
end
|
|
113
|
+
def initialize(
|
|
114
|
+
current_available_slots: 0,
|
|
115
|
+
current_used_slots: 0,
|
|
116
|
+
slot_supplier_kind: "",
|
|
117
|
+
total_processed_tasks: 0,
|
|
118
|
+
total_failed_tasks: 0,
|
|
119
|
+
last_interval_processed_tasks: 0,
|
|
120
|
+
last_interval_failure_tasks: 0
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Number of slots available for the worker to specific tasks.
|
|
125
|
+
# May be -1 if the upper bound is not known.
|
|
126
|
+
sig { returns(Integer) }
|
|
127
|
+
def current_available_slots
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Number of slots available for the worker to specific tasks.
|
|
131
|
+
# May be -1 if the upper bound is not known.
|
|
132
|
+
sig { params(value: Integer).void }
|
|
133
|
+
def current_available_slots=(value)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Number of slots available for the worker to specific tasks.
|
|
137
|
+
# May be -1 if the upper bound is not known.
|
|
138
|
+
sig { void }
|
|
139
|
+
def clear_current_available_slots
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Number of slots used by the worker for specific tasks.
|
|
143
|
+
sig { returns(Integer) }
|
|
144
|
+
def current_used_slots
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Number of slots used by the worker for specific tasks.
|
|
148
|
+
sig { params(value: Integer).void }
|
|
149
|
+
def current_used_slots=(value)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Number of slots used by the worker for specific tasks.
|
|
153
|
+
sig { void }
|
|
154
|
+
def clear_current_used_slots
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Kind of the slot supplier, which is used to determine how the slots are allocated.
|
|
158
|
+
# Possible values: "Fixed | ResourceBased | Custom String"
|
|
159
|
+
sig { returns(String) }
|
|
160
|
+
def slot_supplier_kind
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Kind of the slot supplier, which is used to determine how the slots are allocated.
|
|
164
|
+
# Possible values: "Fixed | ResourceBased | Custom String"
|
|
165
|
+
sig { params(value: String).void }
|
|
166
|
+
def slot_supplier_kind=(value)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Kind of the slot supplier, which is used to determine how the slots are allocated.
|
|
170
|
+
# Possible values: "Fixed | ResourceBased | Custom String"
|
|
171
|
+
sig { void }
|
|
172
|
+
def clear_slot_supplier_kind
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
|
|
176
|
+
# by the worker since the worker started. This is a cumulative counter.
|
|
177
|
+
sig { returns(Integer) }
|
|
178
|
+
def total_processed_tasks
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
|
|
182
|
+
# by the worker since the worker started. This is a cumulative counter.
|
|
183
|
+
sig { params(value: Integer).void }
|
|
184
|
+
def total_processed_tasks=(value)
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
|
|
188
|
+
# by the worker since the worker started. This is a cumulative counter.
|
|
189
|
+
sig { void }
|
|
190
|
+
def clear_total_processed_tasks
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Total number of failed tasks processed by the worker so far.
|
|
194
|
+
sig { returns(Integer) }
|
|
195
|
+
def total_failed_tasks
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Total number of failed tasks processed by the worker so far.
|
|
199
|
+
sig { params(value: Integer).void }
|
|
200
|
+
def total_failed_tasks=(value)
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Total number of failed tasks processed by the worker so far.
|
|
204
|
+
sig { void }
|
|
205
|
+
def clear_total_failed_tasks
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Number of tasks processed in since the last heartbeat from the worker.
|
|
209
|
+
# This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
|
|
210
|
+
# Contains both successful and failed tasks.
|
|
211
|
+
sig { returns(Integer) }
|
|
212
|
+
def last_interval_processed_tasks
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Number of tasks processed in since the last heartbeat from the worker.
|
|
216
|
+
# This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
|
|
217
|
+
# Contains both successful and failed tasks.
|
|
218
|
+
sig { params(value: Integer).void }
|
|
219
|
+
def last_interval_processed_tasks=(value)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Number of tasks processed in since the last heartbeat from the worker.
|
|
223
|
+
# This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
|
|
224
|
+
# Contains both successful and failed tasks.
|
|
225
|
+
sig { void }
|
|
226
|
+
def clear_last_interval_processed_tasks
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Number of failed tasks processed since the last heartbeat from the worker.
|
|
230
|
+
sig { returns(Integer) }
|
|
231
|
+
def last_interval_failure_tasks
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Number of failed tasks processed since the last heartbeat from the worker.
|
|
235
|
+
sig { params(value: Integer).void }
|
|
236
|
+
def last_interval_failure_tasks=(value)
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Number of failed tasks processed since the last heartbeat from the worker.
|
|
240
|
+
sig { void }
|
|
241
|
+
def clear_last_interval_failure_tasks
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
sig { params(field: String).returns(T.untyped) }
|
|
245
|
+
def [](field)
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
sig { params(field: String, value: T.untyped).void }
|
|
249
|
+
def []=(field, value)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
253
|
+
def to_h
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerSlotsInfo) }
|
|
257
|
+
def self.decode(str)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerSlotsInfo).returns(String) }
|
|
261
|
+
def self.encode(msg)
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerSlotsInfo) }
|
|
265
|
+
def self.decode_json(str, **kw)
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerSlotsInfo, kw: T.untyped).returns(String) }
|
|
269
|
+
def self.encode_json(msg, **kw)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
273
|
+
def self.descriptor
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Holds everything needed to identify the worker host/process context
|
|
278
|
+
class Temporalio::Api::Worker::V1::WorkerHostInfo
|
|
279
|
+
include ::Google::Protobuf::MessageExts
|
|
280
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
281
|
+
|
|
282
|
+
sig do
|
|
283
|
+
params(
|
|
284
|
+
host_name: T.nilable(String),
|
|
285
|
+
worker_grouping_key: T.nilable(String),
|
|
286
|
+
process_id: T.nilable(String),
|
|
287
|
+
current_host_cpu_usage: T.nilable(Float),
|
|
288
|
+
current_host_mem_usage: T.nilable(Float)
|
|
289
|
+
).void
|
|
290
|
+
end
|
|
291
|
+
def initialize(
|
|
292
|
+
host_name: "",
|
|
293
|
+
worker_grouping_key: "",
|
|
294
|
+
process_id: "",
|
|
295
|
+
current_host_cpu_usage: 0.0,
|
|
296
|
+
current_host_mem_usage: 0.0
|
|
297
|
+
)
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Worker host identifier.
|
|
301
|
+
sig { returns(String) }
|
|
302
|
+
def host_name
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Worker host identifier.
|
|
306
|
+
sig { params(value: String).void }
|
|
307
|
+
def host_name=(value)
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Worker host identifier.
|
|
311
|
+
sig { void }
|
|
312
|
+
def clear_host_name
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
316
|
+
# This will be used to build the worker command nexus task queue name:
|
|
317
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
318
|
+
sig { returns(String) }
|
|
319
|
+
def worker_grouping_key
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
323
|
+
# This will be used to build the worker command nexus task queue name:
|
|
324
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
325
|
+
sig { params(value: String).void }
|
|
326
|
+
def worker_grouping_key=(value)
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
330
|
+
# This will be used to build the worker command nexus task queue name:
|
|
331
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
332
|
+
sig { void }
|
|
333
|
+
def clear_worker_grouping_key
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Worker process identifier. This id only needs to be unique
|
|
337
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
338
|
+
sig { returns(String) }
|
|
339
|
+
def process_id
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Worker process identifier. This id only needs to be unique
|
|
343
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
344
|
+
sig { params(value: String).void }
|
|
345
|
+
def process_id=(value)
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Worker process identifier. This id only needs to be unique
|
|
349
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
350
|
+
sig { void }
|
|
351
|
+
def clear_process_id
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
|
|
355
|
+
# cores on the host pegged.
|
|
356
|
+
sig { returns(Float) }
|
|
357
|
+
def current_host_cpu_usage
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
|
|
361
|
+
# cores on the host pegged.
|
|
362
|
+
sig { params(value: Float).void }
|
|
363
|
+
def current_host_cpu_usage=(value)
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
|
|
367
|
+
# cores on the host pegged.
|
|
368
|
+
sig { void }
|
|
369
|
+
def clear_current_host_cpu_usage
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
|
|
373
|
+
# all available memory on the host is used.
|
|
374
|
+
sig { returns(Float) }
|
|
375
|
+
def current_host_mem_usage
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
|
|
379
|
+
# all available memory on the host is used.
|
|
380
|
+
sig { params(value: Float).void }
|
|
381
|
+
def current_host_mem_usage=(value)
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
|
|
385
|
+
# all available memory on the host is used.
|
|
386
|
+
sig { void }
|
|
387
|
+
def clear_current_host_mem_usage
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
sig { params(field: String).returns(T.untyped) }
|
|
391
|
+
def [](field)
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
sig { params(field: String, value: T.untyped).void }
|
|
395
|
+
def []=(field, value)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
399
|
+
def to_h
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerHostInfo) }
|
|
403
|
+
def self.decode(str)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerHostInfo).returns(String) }
|
|
407
|
+
def self.encode(msg)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerHostInfo) }
|
|
411
|
+
def self.decode_json(str, **kw)
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerHostInfo, kw: T.untyped).returns(String) }
|
|
415
|
+
def self.encode_json(msg, **kw)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
419
|
+
def self.descriptor
|
|
420
|
+
end
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Worker info message, contains information about the worker and its current state.
|
|
424
|
+
# All information is provided by the worker itself.
|
|
425
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
426
|
+
# aip.dev/not-precedent: Removing those words make names less clear. --)
|
|
427
|
+
class Temporalio::Api::Worker::V1::WorkerHeartbeat
|
|
428
|
+
include ::Google::Protobuf::MessageExts
|
|
429
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
430
|
+
|
|
431
|
+
sig do
|
|
432
|
+
params(
|
|
433
|
+
worker_instance_key: T.nilable(String),
|
|
434
|
+
worker_identity: T.nilable(String),
|
|
435
|
+
host_info: T.nilable(Temporalio::Api::Worker::V1::WorkerHostInfo),
|
|
436
|
+
task_queue: T.nilable(String),
|
|
437
|
+
deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
438
|
+
sdk_name: T.nilable(String),
|
|
439
|
+
sdk_version: T.nilable(String),
|
|
440
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
441
|
+
start_time: T.nilable(Google::Protobuf::Timestamp),
|
|
442
|
+
heartbeat_time: T.nilable(Google::Protobuf::Timestamp),
|
|
443
|
+
elapsed_since_last_heartbeat: T.nilable(Google::Protobuf::Duration),
|
|
444
|
+
workflow_task_slots_info: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo),
|
|
445
|
+
activity_task_slots_info: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo),
|
|
446
|
+
nexus_task_slots_info: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo),
|
|
447
|
+
local_activity_slots_info: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo),
|
|
448
|
+
workflow_poller_info: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo),
|
|
449
|
+
workflow_sticky_poller_info: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo),
|
|
450
|
+
activity_poller_info: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo),
|
|
451
|
+
nexus_poller_info: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo),
|
|
452
|
+
total_sticky_cache_hit: T.nilable(Integer),
|
|
453
|
+
total_sticky_cache_miss: T.nilable(Integer),
|
|
454
|
+
current_sticky_cache_size: T.nilable(Integer),
|
|
455
|
+
plugins: T.nilable(T::Array[T.nilable(Temporalio::Api::Worker::V1::PluginInfo)]),
|
|
456
|
+
drivers: T.nilable(T::Array[T.nilable(Temporalio::Api::Worker::V1::StorageDriverInfo)])
|
|
457
|
+
).void
|
|
458
|
+
end
|
|
459
|
+
def initialize(
|
|
460
|
+
worker_instance_key: "",
|
|
461
|
+
worker_identity: "",
|
|
462
|
+
host_info: nil,
|
|
463
|
+
task_queue: "",
|
|
464
|
+
deployment_version: nil,
|
|
465
|
+
sdk_name: "",
|
|
466
|
+
sdk_version: "",
|
|
467
|
+
status: :WORKER_STATUS_UNSPECIFIED,
|
|
468
|
+
start_time: nil,
|
|
469
|
+
heartbeat_time: nil,
|
|
470
|
+
elapsed_since_last_heartbeat: nil,
|
|
471
|
+
workflow_task_slots_info: nil,
|
|
472
|
+
activity_task_slots_info: nil,
|
|
473
|
+
nexus_task_slots_info: nil,
|
|
474
|
+
local_activity_slots_info: nil,
|
|
475
|
+
workflow_poller_info: nil,
|
|
476
|
+
workflow_sticky_poller_info: nil,
|
|
477
|
+
activity_poller_info: nil,
|
|
478
|
+
nexus_poller_info: nil,
|
|
479
|
+
total_sticky_cache_hit: 0,
|
|
480
|
+
total_sticky_cache_miss: 0,
|
|
481
|
+
current_sticky_cache_size: 0,
|
|
482
|
+
plugins: [],
|
|
483
|
+
drivers: []
|
|
484
|
+
)
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Worker identifier, should be unique for the namespace.
|
|
488
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
489
|
+
sig { returns(String) }
|
|
490
|
+
def worker_instance_key
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Worker identifier, should be unique for the namespace.
|
|
494
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
495
|
+
sig { params(value: String).void }
|
|
496
|
+
def worker_instance_key=(value)
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# Worker identifier, should be unique for the namespace.
|
|
500
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
501
|
+
sig { void }
|
|
502
|
+
def clear_worker_instance_key
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
# Worker identity, set by the client, may not be unique.
|
|
506
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
507
|
+
sig { returns(String) }
|
|
508
|
+
def worker_identity
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Worker identity, set by the client, may not be unique.
|
|
512
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
513
|
+
sig { params(value: String).void }
|
|
514
|
+
def worker_identity=(value)
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Worker identity, set by the client, may not be unique.
|
|
518
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
519
|
+
sig { void }
|
|
520
|
+
def clear_worker_identity
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Worker host information.
|
|
524
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerHostInfo)) }
|
|
525
|
+
def host_info
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# Worker host information.
|
|
529
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerHostInfo)).void }
|
|
530
|
+
def host_info=(value)
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Worker host information.
|
|
534
|
+
sig { void }
|
|
535
|
+
def clear_host_info
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
# Task queue this worker is polling for tasks.
|
|
539
|
+
sig { returns(String) }
|
|
540
|
+
def task_queue
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Task queue this worker is polling for tasks.
|
|
544
|
+
sig { params(value: String).void }
|
|
545
|
+
def task_queue=(value)
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
# Task queue this worker is polling for tasks.
|
|
549
|
+
sig { void }
|
|
550
|
+
def clear_task_queue
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
554
|
+
def deployment_version
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
558
|
+
def deployment_version=(value)
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
sig { void }
|
|
562
|
+
def clear_deployment_version
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
sig { returns(String) }
|
|
566
|
+
def sdk_name
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
sig { params(value: String).void }
|
|
570
|
+
def sdk_name=(value)
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
sig { void }
|
|
574
|
+
def clear_sdk_name
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
sig { returns(String) }
|
|
578
|
+
def sdk_version
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
sig { params(value: String).void }
|
|
582
|
+
def sdk_version=(value)
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
sig { void }
|
|
586
|
+
def clear_sdk_version
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Worker status. Defined by SDK.
|
|
590
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
591
|
+
def status
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# Worker status. Defined by SDK.
|
|
595
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
596
|
+
def status=(value)
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
# Worker status. Defined by SDK.
|
|
600
|
+
sig { void }
|
|
601
|
+
def clear_status
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
# Worker start time.
|
|
605
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
606
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
607
|
+
def start_time
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# Worker start time.
|
|
611
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
612
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
613
|
+
def start_time=(value)
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
# Worker start time.
|
|
617
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
618
|
+
sig { void }
|
|
619
|
+
def clear_start_time
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
|
|
623
|
+
# Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
|
|
624
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
625
|
+
def heartbeat_time
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
# Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
|
|
629
|
+
# Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
|
|
630
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
631
|
+
def heartbeat_time=(value)
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
|
|
635
|
+
# Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
|
|
636
|
+
sig { void }
|
|
637
|
+
def clear_heartbeat_time
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# Elapsed time since the last heartbeat from the worker.
|
|
641
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
642
|
+
def elapsed_since_last_heartbeat
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Elapsed time since the last heartbeat from the worker.
|
|
646
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
647
|
+
def elapsed_since_last_heartbeat=(value)
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# Elapsed time since the last heartbeat from the worker.
|
|
651
|
+
sig { void }
|
|
652
|
+
def clear_elapsed_since_last_heartbeat
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)) }
|
|
656
|
+
def workflow_task_slots_info
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)).void }
|
|
660
|
+
def workflow_task_slots_info=(value)
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
sig { void }
|
|
664
|
+
def clear_workflow_task_slots_info
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)) }
|
|
668
|
+
def activity_task_slots_info
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)).void }
|
|
672
|
+
def activity_task_slots_info=(value)
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
sig { void }
|
|
676
|
+
def clear_activity_task_slots_info
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)) }
|
|
680
|
+
def nexus_task_slots_info
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)).void }
|
|
684
|
+
def nexus_task_slots_info=(value)
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
sig { void }
|
|
688
|
+
def clear_nexus_task_slots_info
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)) }
|
|
692
|
+
def local_activity_slots_info
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerSlotsInfo)).void }
|
|
696
|
+
def local_activity_slots_info=(value)
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
sig { void }
|
|
700
|
+
def clear_local_activity_slots_info
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)) }
|
|
704
|
+
def workflow_poller_info
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)).void }
|
|
708
|
+
def workflow_poller_info=(value)
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
sig { void }
|
|
712
|
+
def clear_workflow_poller_info
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)) }
|
|
716
|
+
def workflow_sticky_poller_info
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)).void }
|
|
720
|
+
def workflow_sticky_poller_info=(value)
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
sig { void }
|
|
724
|
+
def clear_workflow_sticky_poller_info
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)) }
|
|
728
|
+
def activity_poller_info
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)).void }
|
|
732
|
+
def activity_poller_info=(value)
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
sig { void }
|
|
736
|
+
def clear_activity_poller_info
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)) }
|
|
740
|
+
def nexus_poller_info
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerPollerInfo)).void }
|
|
744
|
+
def nexus_poller_info=(value)
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
sig { void }
|
|
748
|
+
def clear_nexus_poller_info
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
# A Workflow Task found a cached Workflow Execution to run against.
|
|
752
|
+
sig { returns(Integer) }
|
|
753
|
+
def total_sticky_cache_hit
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# A Workflow Task found a cached Workflow Execution to run against.
|
|
757
|
+
sig { params(value: Integer).void }
|
|
758
|
+
def total_sticky_cache_hit=(value)
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
# A Workflow Task found a cached Workflow Execution to run against.
|
|
762
|
+
sig { void }
|
|
763
|
+
def clear_total_sticky_cache_hit
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
# A Workflow Task did not find a cached Workflow execution to run against.
|
|
767
|
+
sig { returns(Integer) }
|
|
768
|
+
def total_sticky_cache_miss
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# A Workflow Task did not find a cached Workflow execution to run against.
|
|
772
|
+
sig { params(value: Integer).void }
|
|
773
|
+
def total_sticky_cache_miss=(value)
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# A Workflow Task did not find a cached Workflow execution to run against.
|
|
777
|
+
sig { void }
|
|
778
|
+
def clear_total_sticky_cache_miss
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# Current cache size, expressed in number of Workflow Executions.
|
|
782
|
+
sig { returns(Integer) }
|
|
783
|
+
def current_sticky_cache_size
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
# Current cache size, expressed in number of Workflow Executions.
|
|
787
|
+
sig { params(value: Integer).void }
|
|
788
|
+
def current_sticky_cache_size=(value)
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# Current cache size, expressed in number of Workflow Executions.
|
|
792
|
+
sig { void }
|
|
793
|
+
def clear_current_sticky_cache_size
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
# Plugins currently in use by this SDK.
|
|
797
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Worker::V1::PluginInfo)]) }
|
|
798
|
+
def plugins
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# Plugins currently in use by this SDK.
|
|
802
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
803
|
+
def plugins=(value)
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
# Plugins currently in use by this SDK.
|
|
807
|
+
sig { void }
|
|
808
|
+
def clear_plugins
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# Storage drivers in use by this SDK.
|
|
812
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Worker::V1::StorageDriverInfo)]) }
|
|
813
|
+
def drivers
|
|
814
|
+
end
|
|
815
|
+
|
|
816
|
+
# Storage drivers in use by this SDK.
|
|
817
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
818
|
+
def drivers=(value)
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
# Storage drivers in use by this SDK.
|
|
822
|
+
sig { void }
|
|
823
|
+
def clear_drivers
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
sig { params(field: String).returns(T.untyped) }
|
|
827
|
+
def [](field)
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
sig { params(field: String, value: T.untyped).void }
|
|
831
|
+
def []=(field, value)
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
835
|
+
def to_h
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerHeartbeat) }
|
|
839
|
+
def self.decode(str)
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerHeartbeat).returns(String) }
|
|
843
|
+
def self.encode(msg)
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerHeartbeat) }
|
|
847
|
+
def self.decode_json(str, **kw)
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerHeartbeat, kw: T.untyped).returns(String) }
|
|
851
|
+
def self.encode_json(msg, **kw)
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
855
|
+
def self.descriptor
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Detailed worker information.
|
|
860
|
+
class Temporalio::Api::Worker::V1::WorkerInfo
|
|
861
|
+
include ::Google::Protobuf::MessageExts
|
|
862
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
863
|
+
|
|
864
|
+
sig do
|
|
865
|
+
params(
|
|
866
|
+
worker_heartbeat: T.nilable(Temporalio::Api::Worker::V1::WorkerHeartbeat)
|
|
867
|
+
).void
|
|
868
|
+
end
|
|
869
|
+
def initialize(
|
|
870
|
+
worker_heartbeat: nil
|
|
871
|
+
)
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::WorkerHeartbeat)) }
|
|
875
|
+
def worker_heartbeat
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::WorkerHeartbeat)).void }
|
|
879
|
+
def worker_heartbeat=(value)
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
sig { void }
|
|
883
|
+
def clear_worker_heartbeat
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
sig { params(field: String).returns(T.untyped) }
|
|
887
|
+
def [](field)
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
sig { params(field: String, value: T.untyped).void }
|
|
891
|
+
def []=(field, value)
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
895
|
+
def to_h
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerInfo) }
|
|
899
|
+
def self.decode(str)
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerInfo).returns(String) }
|
|
903
|
+
def self.encode(msg)
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerInfo) }
|
|
907
|
+
def self.decode_json(str, **kw)
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerInfo, kw: T.untyped).returns(String) }
|
|
911
|
+
def self.encode_json(msg, **kw)
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
915
|
+
def self.descriptor
|
|
916
|
+
end
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
# Limited worker information returned in the list response.
|
|
920
|
+
# When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).
|
|
921
|
+
class Temporalio::Api::Worker::V1::WorkerListInfo
|
|
922
|
+
include ::Google::Protobuf::MessageExts
|
|
923
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
924
|
+
|
|
925
|
+
sig do
|
|
926
|
+
params(
|
|
927
|
+
worker_instance_key: T.nilable(String),
|
|
928
|
+
worker_identity: T.nilable(String),
|
|
929
|
+
task_queue: T.nilable(String),
|
|
930
|
+
deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
931
|
+
sdk_name: T.nilable(String),
|
|
932
|
+
sdk_version: T.nilable(String),
|
|
933
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
934
|
+
start_time: T.nilable(Google::Protobuf::Timestamp),
|
|
935
|
+
host_name: T.nilable(String),
|
|
936
|
+
worker_grouping_key: T.nilable(String),
|
|
937
|
+
process_id: T.nilable(String),
|
|
938
|
+
plugins: T.nilable(T::Array[T.nilable(Temporalio::Api::Worker::V1::PluginInfo)]),
|
|
939
|
+
drivers: T.nilable(T::Array[T.nilable(Temporalio::Api::Worker::V1::StorageDriverInfo)])
|
|
940
|
+
).void
|
|
941
|
+
end
|
|
942
|
+
def initialize(
|
|
943
|
+
worker_instance_key: "",
|
|
944
|
+
worker_identity: "",
|
|
945
|
+
task_queue: "",
|
|
946
|
+
deployment_version: nil,
|
|
947
|
+
sdk_name: "",
|
|
948
|
+
sdk_version: "",
|
|
949
|
+
status: :WORKER_STATUS_UNSPECIFIED,
|
|
950
|
+
start_time: nil,
|
|
951
|
+
host_name: "",
|
|
952
|
+
worker_grouping_key: "",
|
|
953
|
+
process_id: "",
|
|
954
|
+
plugins: [],
|
|
955
|
+
drivers: []
|
|
956
|
+
)
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
# Worker identifier, should be unique for the namespace.
|
|
960
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
961
|
+
sig { returns(String) }
|
|
962
|
+
def worker_instance_key
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# Worker identifier, should be unique for the namespace.
|
|
966
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
967
|
+
sig { params(value: String).void }
|
|
968
|
+
def worker_instance_key=(value)
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
# Worker identifier, should be unique for the namespace.
|
|
972
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
973
|
+
sig { void }
|
|
974
|
+
def clear_worker_instance_key
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
# Worker identity, set by the client, may not be unique.
|
|
978
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
979
|
+
sig { returns(String) }
|
|
980
|
+
def worker_identity
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
# Worker identity, set by the client, may not be unique.
|
|
984
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
985
|
+
sig { params(value: String).void }
|
|
986
|
+
def worker_identity=(value)
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
# Worker identity, set by the client, may not be unique.
|
|
990
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
991
|
+
sig { void }
|
|
992
|
+
def clear_worker_identity
|
|
993
|
+
end
|
|
994
|
+
|
|
995
|
+
# Task queue this worker is polling for tasks.
|
|
996
|
+
sig { returns(String) }
|
|
997
|
+
def task_queue
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
# Task queue this worker is polling for tasks.
|
|
1001
|
+
sig { params(value: String).void }
|
|
1002
|
+
def task_queue=(value)
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
# Task queue this worker is polling for tasks.
|
|
1006
|
+
sig { void }
|
|
1007
|
+
def clear_task_queue
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
1011
|
+
def deployment_version
|
|
1012
|
+
end
|
|
1013
|
+
|
|
1014
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
1015
|
+
def deployment_version=(value)
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
sig { void }
|
|
1019
|
+
def clear_deployment_version
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
sig { returns(String) }
|
|
1023
|
+
def sdk_name
|
|
1024
|
+
end
|
|
1025
|
+
|
|
1026
|
+
sig { params(value: String).void }
|
|
1027
|
+
def sdk_name=(value)
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
sig { void }
|
|
1031
|
+
def clear_sdk_name
|
|
1032
|
+
end
|
|
1033
|
+
|
|
1034
|
+
sig { returns(String) }
|
|
1035
|
+
def sdk_version
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
sig { params(value: String).void }
|
|
1039
|
+
def sdk_version=(value)
|
|
1040
|
+
end
|
|
1041
|
+
|
|
1042
|
+
sig { void }
|
|
1043
|
+
def clear_sdk_version
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
# Worker status. Defined by SDK.
|
|
1047
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1048
|
+
def status
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
# Worker status. Defined by SDK.
|
|
1052
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1053
|
+
def status=(value)
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
# Worker status. Defined by SDK.
|
|
1057
|
+
sig { void }
|
|
1058
|
+
def clear_status
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
# Worker start time.
|
|
1062
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
1063
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1064
|
+
def start_time
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
# Worker start time.
|
|
1068
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
1069
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1070
|
+
def start_time=(value)
|
|
1071
|
+
end
|
|
1072
|
+
|
|
1073
|
+
# Worker start time.
|
|
1074
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
1075
|
+
sig { void }
|
|
1076
|
+
def clear_start_time
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
# Worker host identifier.
|
|
1080
|
+
sig { returns(String) }
|
|
1081
|
+
def host_name
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
# Worker host identifier.
|
|
1085
|
+
sig { params(value: String).void }
|
|
1086
|
+
def host_name=(value)
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
# Worker host identifier.
|
|
1090
|
+
sig { void }
|
|
1091
|
+
def clear_host_name
|
|
1092
|
+
end
|
|
1093
|
+
|
|
1094
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
1095
|
+
# This will be used to build the worker command nexus task queue name:
|
|
1096
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
1097
|
+
sig { returns(String) }
|
|
1098
|
+
def worker_grouping_key
|
|
1099
|
+
end
|
|
1100
|
+
|
|
1101
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
1102
|
+
# This will be used to build the worker command nexus task queue name:
|
|
1103
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
1104
|
+
sig { params(value: String).void }
|
|
1105
|
+
def worker_grouping_key=(value)
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
1109
|
+
# This will be used to build the worker command nexus task queue name:
|
|
1110
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
1111
|
+
sig { void }
|
|
1112
|
+
def clear_worker_grouping_key
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# Worker process identifier. This id only needs to be unique
|
|
1116
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
1117
|
+
sig { returns(String) }
|
|
1118
|
+
def process_id
|
|
1119
|
+
end
|
|
1120
|
+
|
|
1121
|
+
# Worker process identifier. This id only needs to be unique
|
|
1122
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
1123
|
+
sig { params(value: String).void }
|
|
1124
|
+
def process_id=(value)
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
# Worker process identifier. This id only needs to be unique
|
|
1128
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
1129
|
+
sig { void }
|
|
1130
|
+
def clear_process_id
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
# Plugins currently in use by this SDK.
|
|
1134
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Worker::V1::PluginInfo)]) }
|
|
1135
|
+
def plugins
|
|
1136
|
+
end
|
|
1137
|
+
|
|
1138
|
+
# Plugins currently in use by this SDK.
|
|
1139
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1140
|
+
def plugins=(value)
|
|
1141
|
+
end
|
|
1142
|
+
|
|
1143
|
+
# Plugins currently in use by this SDK.
|
|
1144
|
+
sig { void }
|
|
1145
|
+
def clear_plugins
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# Storage drivers in use by this SDK.
|
|
1149
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Worker::V1::StorageDriverInfo)]) }
|
|
1150
|
+
def drivers
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
# Storage drivers in use by this SDK.
|
|
1154
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1155
|
+
def drivers=(value)
|
|
1156
|
+
end
|
|
1157
|
+
|
|
1158
|
+
# Storage drivers in use by this SDK.
|
|
1159
|
+
sig { void }
|
|
1160
|
+
def clear_drivers
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1164
|
+
def [](field)
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1168
|
+
def []=(field, value)
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1172
|
+
def to_h
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerListInfo) }
|
|
1176
|
+
def self.decode(str)
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1179
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerListInfo).returns(String) }
|
|
1180
|
+
def self.encode(msg)
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1183
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerListInfo) }
|
|
1184
|
+
def self.decode_json(str, **kw)
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerListInfo, kw: T.untyped).returns(String) }
|
|
1188
|
+
def self.encode_json(msg, **kw)
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1192
|
+
def self.descriptor
|
|
1193
|
+
end
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
class Temporalio::Api::Worker::V1::PluginInfo
|
|
1197
|
+
include ::Google::Protobuf::MessageExts
|
|
1198
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1199
|
+
|
|
1200
|
+
sig do
|
|
1201
|
+
params(
|
|
1202
|
+
name: T.nilable(String),
|
|
1203
|
+
version: T.nilable(String)
|
|
1204
|
+
).void
|
|
1205
|
+
end
|
|
1206
|
+
def initialize(
|
|
1207
|
+
name: "",
|
|
1208
|
+
version: ""
|
|
1209
|
+
)
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
# The name of the plugin, required.
|
|
1213
|
+
sig { returns(String) }
|
|
1214
|
+
def name
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
# The name of the plugin, required.
|
|
1218
|
+
sig { params(value: String).void }
|
|
1219
|
+
def name=(value)
|
|
1220
|
+
end
|
|
1221
|
+
|
|
1222
|
+
# The name of the plugin, required.
|
|
1223
|
+
sig { void }
|
|
1224
|
+
def clear_name
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1227
|
+
# The version of the plugin, may be empty.
|
|
1228
|
+
sig { returns(String) }
|
|
1229
|
+
def version
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1232
|
+
# The version of the plugin, may be empty.
|
|
1233
|
+
sig { params(value: String).void }
|
|
1234
|
+
def version=(value)
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1237
|
+
# The version of the plugin, may be empty.
|
|
1238
|
+
sig { void }
|
|
1239
|
+
def clear_version
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1243
|
+
def [](field)
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1247
|
+
def []=(field, value)
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1251
|
+
def to_h
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::PluginInfo) }
|
|
1255
|
+
def self.decode(str)
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
sig { params(msg: Temporalio::Api::Worker::V1::PluginInfo).returns(String) }
|
|
1259
|
+
def self.encode(msg)
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::PluginInfo) }
|
|
1263
|
+
def self.decode_json(str, **kw)
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
sig { params(msg: Temporalio::Api::Worker::V1::PluginInfo, kw: T.untyped).returns(String) }
|
|
1267
|
+
def self.encode_json(msg, **kw)
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1271
|
+
def self.descriptor
|
|
1272
|
+
end
|
|
1273
|
+
end
|
|
1274
|
+
|
|
1275
|
+
class Temporalio::Api::Worker::V1::StorageDriverInfo
|
|
1276
|
+
include ::Google::Protobuf::MessageExts
|
|
1277
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1278
|
+
|
|
1279
|
+
sig do
|
|
1280
|
+
params(
|
|
1281
|
+
type: T.nilable(String)
|
|
1282
|
+
).void
|
|
1283
|
+
end
|
|
1284
|
+
def initialize(
|
|
1285
|
+
type: ""
|
|
1286
|
+
)
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1289
|
+
# The type of the driver, required.
|
|
1290
|
+
sig { returns(String) }
|
|
1291
|
+
def type
|
|
1292
|
+
end
|
|
1293
|
+
|
|
1294
|
+
# The type of the driver, required.
|
|
1295
|
+
sig { params(value: String).void }
|
|
1296
|
+
def type=(value)
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
|
+
# The type of the driver, required.
|
|
1300
|
+
sig { void }
|
|
1301
|
+
def clear_type
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1305
|
+
def [](field)
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1309
|
+
def []=(field, value)
|
|
1310
|
+
end
|
|
1311
|
+
|
|
1312
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1313
|
+
def to_h
|
|
1314
|
+
end
|
|
1315
|
+
|
|
1316
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::StorageDriverInfo) }
|
|
1317
|
+
def self.decode(str)
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
sig { params(msg: Temporalio::Api::Worker::V1::StorageDriverInfo).returns(String) }
|
|
1321
|
+
def self.encode(msg)
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::StorageDriverInfo) }
|
|
1325
|
+
def self.decode_json(str, **kw)
|
|
1326
|
+
end
|
|
1327
|
+
|
|
1328
|
+
sig { params(msg: Temporalio::Api::Worker::V1::StorageDriverInfo, kw: T.untyped).returns(String) }
|
|
1329
|
+
def self.encode_json(msg, **kw)
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1333
|
+
def self.descriptor
|
|
1334
|
+
end
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# A command sent from the server to a worker.
|
|
1338
|
+
class Temporalio::Api::Worker::V1::WorkerCommand
|
|
1339
|
+
include ::Google::Protobuf::MessageExts
|
|
1340
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1341
|
+
|
|
1342
|
+
sig do
|
|
1343
|
+
params(
|
|
1344
|
+
cancel_activity: T.nilable(Temporalio::Api::Worker::V1::CancelActivityCommand)
|
|
1345
|
+
).void
|
|
1346
|
+
end
|
|
1347
|
+
def initialize(
|
|
1348
|
+
cancel_activity: nil
|
|
1349
|
+
)
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::CancelActivityCommand)) }
|
|
1353
|
+
def cancel_activity
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1356
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::CancelActivityCommand)).void }
|
|
1357
|
+
def cancel_activity=(value)
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
sig { void }
|
|
1361
|
+
def clear_cancel_activity
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1365
|
+
def type
|
|
1366
|
+
end
|
|
1367
|
+
|
|
1368
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1369
|
+
def [](field)
|
|
1370
|
+
end
|
|
1371
|
+
|
|
1372
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1373
|
+
def []=(field, value)
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1377
|
+
def to_h
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerCommand) }
|
|
1381
|
+
def self.decode(str)
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1384
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerCommand).returns(String) }
|
|
1385
|
+
def self.encode(msg)
|
|
1386
|
+
end
|
|
1387
|
+
|
|
1388
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerCommand) }
|
|
1389
|
+
def self.decode_json(str, **kw)
|
|
1390
|
+
end
|
|
1391
|
+
|
|
1392
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerCommand, kw: T.untyped).returns(String) }
|
|
1393
|
+
def self.encode_json(msg, **kw)
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1397
|
+
def self.descriptor
|
|
1398
|
+
end
|
|
1399
|
+
end
|
|
1400
|
+
|
|
1401
|
+
# Cancel an activity if it is still running. Otherwise, do nothing.
|
|
1402
|
+
class Temporalio::Api::Worker::V1::CancelActivityCommand
|
|
1403
|
+
include ::Google::Protobuf::MessageExts
|
|
1404
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1405
|
+
|
|
1406
|
+
sig do
|
|
1407
|
+
params(
|
|
1408
|
+
task_token: T.nilable(String)
|
|
1409
|
+
).void
|
|
1410
|
+
end
|
|
1411
|
+
def initialize(
|
|
1412
|
+
task_token: ""
|
|
1413
|
+
)
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
sig { returns(String) }
|
|
1417
|
+
def task_token
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
sig { params(value: String).void }
|
|
1421
|
+
def task_token=(value)
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1424
|
+
sig { void }
|
|
1425
|
+
def clear_task_token
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1429
|
+
def [](field)
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1433
|
+
def []=(field, value)
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1437
|
+
def to_h
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::CancelActivityCommand) }
|
|
1441
|
+
def self.decode(str)
|
|
1442
|
+
end
|
|
1443
|
+
|
|
1444
|
+
sig { params(msg: Temporalio::Api::Worker::V1::CancelActivityCommand).returns(String) }
|
|
1445
|
+
def self.encode(msg)
|
|
1446
|
+
end
|
|
1447
|
+
|
|
1448
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::CancelActivityCommand) }
|
|
1449
|
+
def self.decode_json(str, **kw)
|
|
1450
|
+
end
|
|
1451
|
+
|
|
1452
|
+
sig { params(msg: Temporalio::Api::Worker::V1::CancelActivityCommand, kw: T.untyped).returns(String) }
|
|
1453
|
+
def self.encode_json(msg, **kw)
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1456
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1457
|
+
def self.descriptor
|
|
1458
|
+
end
|
|
1459
|
+
end
|
|
1460
|
+
|
|
1461
|
+
# The result of executing a WorkerCommand.
|
|
1462
|
+
class Temporalio::Api::Worker::V1::WorkerCommandResult
|
|
1463
|
+
include ::Google::Protobuf::MessageExts
|
|
1464
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1465
|
+
|
|
1466
|
+
sig do
|
|
1467
|
+
params(
|
|
1468
|
+
cancel_activity: T.nilable(Temporalio::Api::Worker::V1::CancelActivityResult)
|
|
1469
|
+
).void
|
|
1470
|
+
end
|
|
1471
|
+
def initialize(
|
|
1472
|
+
cancel_activity: nil
|
|
1473
|
+
)
|
|
1474
|
+
end
|
|
1475
|
+
|
|
1476
|
+
sig { returns(T.nilable(Temporalio::Api::Worker::V1::CancelActivityResult)) }
|
|
1477
|
+
def cancel_activity
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
sig { params(value: T.nilable(Temporalio::Api::Worker::V1::CancelActivityResult)).void }
|
|
1481
|
+
def cancel_activity=(value)
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
sig { void }
|
|
1485
|
+
def clear_cancel_activity
|
|
1486
|
+
end
|
|
1487
|
+
|
|
1488
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1489
|
+
def type
|
|
1490
|
+
end
|
|
1491
|
+
|
|
1492
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1493
|
+
def [](field)
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1497
|
+
def []=(field, value)
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1500
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1501
|
+
def to_h
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1504
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::WorkerCommandResult) }
|
|
1505
|
+
def self.decode(str)
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerCommandResult).returns(String) }
|
|
1509
|
+
def self.encode(msg)
|
|
1510
|
+
end
|
|
1511
|
+
|
|
1512
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::WorkerCommandResult) }
|
|
1513
|
+
def self.decode_json(str, **kw)
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
sig { params(msg: Temporalio::Api::Worker::V1::WorkerCommandResult, kw: T.untyped).returns(String) }
|
|
1517
|
+
def self.encode_json(msg, **kw)
|
|
1518
|
+
end
|
|
1519
|
+
|
|
1520
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1521
|
+
def self.descriptor
|
|
1522
|
+
end
|
|
1523
|
+
end
|
|
1524
|
+
|
|
1525
|
+
# Result of a CancelActivityCommand.
|
|
1526
|
+
# Treat both successful cancellation and no-op (activity is no longer running) as success.
|
|
1527
|
+
class Temporalio::Api::Worker::V1::CancelActivityResult
|
|
1528
|
+
include ::Google::Protobuf::MessageExts
|
|
1529
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1530
|
+
|
|
1531
|
+
sig {void}
|
|
1532
|
+
def initialize; end
|
|
1533
|
+
|
|
1534
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1535
|
+
def [](field)
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1538
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1539
|
+
def []=(field, value)
|
|
1540
|
+
end
|
|
1541
|
+
|
|
1542
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1543
|
+
def to_h
|
|
1544
|
+
end
|
|
1545
|
+
|
|
1546
|
+
sig { params(str: String).returns(Temporalio::Api::Worker::V1::CancelActivityResult) }
|
|
1547
|
+
def self.decode(str)
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
sig { params(msg: Temporalio::Api::Worker::V1::CancelActivityResult).returns(String) }
|
|
1551
|
+
def self.encode(msg)
|
|
1552
|
+
end
|
|
1553
|
+
|
|
1554
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Worker::V1::CancelActivityResult) }
|
|
1555
|
+
def self.decode_json(str, **kw)
|
|
1556
|
+
end
|
|
1557
|
+
|
|
1558
|
+
sig { params(msg: Temporalio::Api::Worker::V1::CancelActivityResult, kw: T.untyped).returns(String) }
|
|
1559
|
+
def self.encode_json(msg, **kw)
|
|
1560
|
+
end
|
|
1561
|
+
|
|
1562
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1563
|
+
def self.descriptor
|
|
1564
|
+
end
|
|
1565
|
+
end
|