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,716 @@
|
|
|
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/worker/v1/message.proto
|
|
7
|
+
|
|
8
|
+
module Temporalio
|
|
9
|
+
module Api
|
|
10
|
+
module Worker
|
|
11
|
+
module V1
|
|
12
|
+
class WorkerPollerInfo < ::Google::Protobuf::AbstractMessage
|
|
13
|
+
|
|
14
|
+
# Number of polling RPCs that are currently in flight.
|
|
15
|
+
attr_reader current_pollers(): ::Integer
|
|
16
|
+
attr_writer current_pollers(): ::Integer | ::Float
|
|
17
|
+
def clear_current_pollers: () -> void
|
|
18
|
+
|
|
19
|
+
attr_reader last_successful_poll_time(): ::Google::Protobuf::Timestamp?
|
|
20
|
+
attr_writer last_successful_poll_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
21
|
+
def has_last_successful_poll_time?: () -> bool
|
|
22
|
+
def clear_last_successful_poll_time: () -> void
|
|
23
|
+
|
|
24
|
+
# Set true if the number of concurrent pollers is auto-scaled
|
|
25
|
+
attr_accessor is_autoscaling(): bool
|
|
26
|
+
def clear_is_autoscaling: () -> void
|
|
27
|
+
|
|
28
|
+
type init_map = {
|
|
29
|
+
current_pollers: (::Integer | ::Float)?,
|
|
30
|
+
"current_pollers" => (::Integer | ::Float)?,
|
|
31
|
+
last_successful_poll_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
32
|
+
"last_successful_poll_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
33
|
+
is_autoscaling: bool?,
|
|
34
|
+
"is_autoscaling" => bool?,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def initialize: (?init_map initial_value) -> void
|
|
38
|
+
|
|
39
|
+
def []:
|
|
40
|
+
("current_pollers" name) -> ::Integer
|
|
41
|
+
| ("last_successful_poll_time" name) -> ::Google::Protobuf::Timestamp?
|
|
42
|
+
| ("is_autoscaling" name) -> bool
|
|
43
|
+
|
|
44
|
+
def []=:
|
|
45
|
+
("current_pollers" name, (::Integer | ::Float) value) -> void
|
|
46
|
+
| ("last_successful_poll_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
47
|
+
| ("is_autoscaling" name, bool value) -> void
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
class WorkerSlotsInfo < ::Google::Protobuf::AbstractMessage
|
|
51
|
+
|
|
52
|
+
# Number of slots available for the worker to specific tasks.
|
|
53
|
+
# May be -1 if the upper bound is not known.
|
|
54
|
+
attr_reader current_available_slots(): ::Integer
|
|
55
|
+
attr_writer current_available_slots(): ::Integer | ::Float
|
|
56
|
+
def clear_current_available_slots: () -> void
|
|
57
|
+
|
|
58
|
+
# Number of slots used by the worker for specific tasks.
|
|
59
|
+
attr_reader current_used_slots(): ::Integer
|
|
60
|
+
attr_writer current_used_slots(): ::Integer | ::Float
|
|
61
|
+
def clear_current_used_slots: () -> void
|
|
62
|
+
|
|
63
|
+
# Kind of the slot supplier, which is used to determine how the slots are allocated.
|
|
64
|
+
# Possible values: "Fixed | ResourceBased | Custom String"
|
|
65
|
+
attr_reader slot_supplier_kind(): ::String
|
|
66
|
+
attr_writer slot_supplier_kind(): ::String | ::Symbol
|
|
67
|
+
def clear_slot_supplier_kind: () -> void
|
|
68
|
+
|
|
69
|
+
# Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
|
|
70
|
+
# by the worker since the worker started. This is a cumulative counter.
|
|
71
|
+
attr_reader total_processed_tasks(): ::Integer
|
|
72
|
+
attr_writer total_processed_tasks(): ::Integer | ::Float
|
|
73
|
+
def clear_total_processed_tasks: () -> void
|
|
74
|
+
|
|
75
|
+
# Total number of failed tasks processed by the worker so far.
|
|
76
|
+
attr_reader total_failed_tasks(): ::Integer
|
|
77
|
+
attr_writer total_failed_tasks(): ::Integer | ::Float
|
|
78
|
+
def clear_total_failed_tasks: () -> void
|
|
79
|
+
|
|
80
|
+
# Number of tasks processed in since the last heartbeat from the worker.
|
|
81
|
+
# This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
|
|
82
|
+
# Contains both successful and failed tasks.
|
|
83
|
+
attr_reader last_interval_processed_tasks(): ::Integer
|
|
84
|
+
attr_writer last_interval_processed_tasks(): ::Integer | ::Float
|
|
85
|
+
def clear_last_interval_processed_tasks: () -> void
|
|
86
|
+
|
|
87
|
+
# Number of failed tasks processed since the last heartbeat from the worker.
|
|
88
|
+
attr_reader last_interval_failure_tasks(): ::Integer
|
|
89
|
+
attr_writer last_interval_failure_tasks(): ::Integer | ::Float
|
|
90
|
+
def clear_last_interval_failure_tasks: () -> void
|
|
91
|
+
|
|
92
|
+
type init_map = {
|
|
93
|
+
current_available_slots: (::Integer | ::Float)?,
|
|
94
|
+
"current_available_slots" => (::Integer | ::Float)?,
|
|
95
|
+
current_used_slots: (::Integer | ::Float)?,
|
|
96
|
+
"current_used_slots" => (::Integer | ::Float)?,
|
|
97
|
+
slot_supplier_kind: (::String | ::Symbol)?,
|
|
98
|
+
"slot_supplier_kind" => (::String | ::Symbol)?,
|
|
99
|
+
total_processed_tasks: (::Integer | ::Float)?,
|
|
100
|
+
"total_processed_tasks" => (::Integer | ::Float)?,
|
|
101
|
+
total_failed_tasks: (::Integer | ::Float)?,
|
|
102
|
+
"total_failed_tasks" => (::Integer | ::Float)?,
|
|
103
|
+
last_interval_processed_tasks: (::Integer | ::Float)?,
|
|
104
|
+
"last_interval_processed_tasks" => (::Integer | ::Float)?,
|
|
105
|
+
last_interval_failure_tasks: (::Integer | ::Float)?,
|
|
106
|
+
"last_interval_failure_tasks" => (::Integer | ::Float)?,
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
def initialize: (?init_map initial_value) -> void
|
|
110
|
+
|
|
111
|
+
def []:
|
|
112
|
+
("current_available_slots" name) -> ::Integer
|
|
113
|
+
| ("current_used_slots" name) -> ::Integer
|
|
114
|
+
| ("slot_supplier_kind" name) -> ::String
|
|
115
|
+
| ("total_processed_tasks" name) -> ::Integer
|
|
116
|
+
| ("total_failed_tasks" name) -> ::Integer
|
|
117
|
+
| ("last_interval_processed_tasks" name) -> ::Integer
|
|
118
|
+
| ("last_interval_failure_tasks" name) -> ::Integer
|
|
119
|
+
|
|
120
|
+
def []=:
|
|
121
|
+
("current_available_slots" name, (::Integer | ::Float) value) -> void
|
|
122
|
+
| ("current_used_slots" name, (::Integer | ::Float) value) -> void
|
|
123
|
+
| ("slot_supplier_kind" name, (::String | ::Symbol) value) -> void
|
|
124
|
+
| ("total_processed_tasks" name, (::Integer | ::Float) value) -> void
|
|
125
|
+
| ("total_failed_tasks" name, (::Integer | ::Float) value) -> void
|
|
126
|
+
| ("last_interval_processed_tasks" name, (::Integer | ::Float) value) -> void
|
|
127
|
+
| ("last_interval_failure_tasks" name, (::Integer | ::Float) value) -> void
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Holds everything needed to identify the worker host/process context
|
|
131
|
+
class WorkerHostInfo < ::Google::Protobuf::AbstractMessage
|
|
132
|
+
|
|
133
|
+
# Worker host identifier.
|
|
134
|
+
attr_reader host_name(): ::String
|
|
135
|
+
attr_writer host_name(): ::String | ::Symbol
|
|
136
|
+
def clear_host_name: () -> void
|
|
137
|
+
|
|
138
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
139
|
+
# This will be used to build the worker command nexus task queue name:
|
|
140
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
141
|
+
attr_reader worker_grouping_key(): ::String
|
|
142
|
+
attr_writer worker_grouping_key(): ::String | ::Symbol
|
|
143
|
+
def clear_worker_grouping_key: () -> void
|
|
144
|
+
|
|
145
|
+
# Worker process identifier. This id only needs to be unique
|
|
146
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
147
|
+
attr_reader process_id(): ::String
|
|
148
|
+
attr_writer process_id(): ::String | ::Symbol
|
|
149
|
+
def clear_process_id: () -> void
|
|
150
|
+
|
|
151
|
+
# System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
|
|
152
|
+
# cores on the host pegged.
|
|
153
|
+
attr_reader current_host_cpu_usage(): ::Float
|
|
154
|
+
attr_writer current_host_cpu_usage(): ::Float | ::Integer
|
|
155
|
+
def clear_current_host_cpu_usage: () -> void
|
|
156
|
+
|
|
157
|
+
# System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
|
|
158
|
+
# all available memory on the host is used.
|
|
159
|
+
attr_reader current_host_mem_usage(): ::Float
|
|
160
|
+
attr_writer current_host_mem_usage(): ::Float | ::Integer
|
|
161
|
+
def clear_current_host_mem_usage: () -> void
|
|
162
|
+
|
|
163
|
+
type init_map = {
|
|
164
|
+
host_name: (::String | ::Symbol)?,
|
|
165
|
+
"host_name" => (::String | ::Symbol)?,
|
|
166
|
+
worker_grouping_key: (::String | ::Symbol)?,
|
|
167
|
+
"worker_grouping_key" => (::String | ::Symbol)?,
|
|
168
|
+
process_id: (::String | ::Symbol)?,
|
|
169
|
+
"process_id" => (::String | ::Symbol)?,
|
|
170
|
+
current_host_cpu_usage: (::Float | ::Integer)?,
|
|
171
|
+
"current_host_cpu_usage" => (::Float | ::Integer)?,
|
|
172
|
+
current_host_mem_usage: (::Float | ::Integer)?,
|
|
173
|
+
"current_host_mem_usage" => (::Float | ::Integer)?,
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
def initialize: (?init_map initial_value) -> void
|
|
177
|
+
|
|
178
|
+
def []:
|
|
179
|
+
("host_name" name) -> ::String
|
|
180
|
+
| ("worker_grouping_key" name) -> ::String
|
|
181
|
+
| ("process_id" name) -> ::String
|
|
182
|
+
| ("current_host_cpu_usage" name) -> ::Float
|
|
183
|
+
| ("current_host_mem_usage" name) -> ::Float
|
|
184
|
+
|
|
185
|
+
def []=:
|
|
186
|
+
("host_name" name, (::String | ::Symbol) value) -> void
|
|
187
|
+
| ("worker_grouping_key" name, (::String | ::Symbol) value) -> void
|
|
188
|
+
| ("process_id" name, (::String | ::Symbol) value) -> void
|
|
189
|
+
| ("current_host_cpu_usage" name, (::Float | ::Integer) value) -> void
|
|
190
|
+
| ("current_host_mem_usage" name, (::Float | ::Integer) value) -> void
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Worker info message, contains information about the worker and its current state.
|
|
194
|
+
# All information is provided by the worker itself.
|
|
195
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
196
|
+
# aip.dev/not-precedent: Removing those words make names less clear. --)
|
|
197
|
+
class WorkerHeartbeat < ::Google::Protobuf::AbstractMessage
|
|
198
|
+
|
|
199
|
+
# Worker identifier, should be unique for the namespace.
|
|
200
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
201
|
+
attr_reader worker_instance_key(): ::String
|
|
202
|
+
attr_writer worker_instance_key(): ::String | ::Symbol
|
|
203
|
+
def clear_worker_instance_key: () -> void
|
|
204
|
+
|
|
205
|
+
# Worker identity, set by the client, may not be unique.
|
|
206
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
207
|
+
attr_reader worker_identity(): ::String
|
|
208
|
+
attr_writer worker_identity(): ::String | ::Symbol
|
|
209
|
+
def clear_worker_identity: () -> void
|
|
210
|
+
|
|
211
|
+
# Worker host information.
|
|
212
|
+
attr_accessor host_info(): ::Temporalio::Api::Worker::V1::WorkerHostInfo?
|
|
213
|
+
def has_host_info?: () -> bool
|
|
214
|
+
def clear_host_info: () -> void
|
|
215
|
+
|
|
216
|
+
# Task queue this worker is polling for tasks.
|
|
217
|
+
attr_reader task_queue(): ::String
|
|
218
|
+
attr_writer task_queue(): ::String | ::Symbol
|
|
219
|
+
def clear_task_queue: () -> void
|
|
220
|
+
|
|
221
|
+
attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
222
|
+
def has_deployment_version?: () -> bool
|
|
223
|
+
def clear_deployment_version: () -> void
|
|
224
|
+
|
|
225
|
+
attr_reader sdk_name(): ::String
|
|
226
|
+
attr_writer sdk_name(): ::String | ::Symbol
|
|
227
|
+
def clear_sdk_name: () -> void
|
|
228
|
+
|
|
229
|
+
attr_reader sdk_version(): ::String
|
|
230
|
+
attr_writer sdk_version(): ::String | ::Symbol
|
|
231
|
+
def clear_sdk_version: () -> void
|
|
232
|
+
|
|
233
|
+
# Worker status. Defined by SDK.
|
|
234
|
+
attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer
|
|
235
|
+
attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float
|
|
236
|
+
attr_reader status_const(): ::Integer
|
|
237
|
+
def clear_status: () -> void
|
|
238
|
+
|
|
239
|
+
# Worker start time.
|
|
240
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
241
|
+
attr_reader start_time(): ::Google::Protobuf::Timestamp?
|
|
242
|
+
attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
243
|
+
def has_start_time?: () -> bool
|
|
244
|
+
def clear_start_time: () -> void
|
|
245
|
+
|
|
246
|
+
# Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
|
|
247
|
+
# Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
|
|
248
|
+
attr_reader heartbeat_time(): ::Google::Protobuf::Timestamp?
|
|
249
|
+
attr_writer heartbeat_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
250
|
+
def has_heartbeat_time?: () -> bool
|
|
251
|
+
def clear_heartbeat_time: () -> void
|
|
252
|
+
|
|
253
|
+
# Elapsed time since the last heartbeat from the worker.
|
|
254
|
+
attr_reader elapsed_since_last_heartbeat(): ::Google::Protobuf::Duration?
|
|
255
|
+
attr_writer elapsed_since_last_heartbeat(): (::Google::Protobuf::Duration | ::int)?
|
|
256
|
+
def has_elapsed_since_last_heartbeat?: () -> bool
|
|
257
|
+
def clear_elapsed_since_last_heartbeat: () -> void
|
|
258
|
+
|
|
259
|
+
attr_accessor workflow_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
260
|
+
def has_workflow_task_slots_info?: () -> bool
|
|
261
|
+
def clear_workflow_task_slots_info: () -> void
|
|
262
|
+
|
|
263
|
+
attr_accessor activity_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
264
|
+
def has_activity_task_slots_info?: () -> bool
|
|
265
|
+
def clear_activity_task_slots_info: () -> void
|
|
266
|
+
|
|
267
|
+
attr_accessor nexus_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
268
|
+
def has_nexus_task_slots_info?: () -> bool
|
|
269
|
+
def clear_nexus_task_slots_info: () -> void
|
|
270
|
+
|
|
271
|
+
attr_accessor local_activity_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
272
|
+
def has_local_activity_slots_info?: () -> bool
|
|
273
|
+
def clear_local_activity_slots_info: () -> void
|
|
274
|
+
|
|
275
|
+
attr_accessor workflow_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
276
|
+
def has_workflow_poller_info?: () -> bool
|
|
277
|
+
def clear_workflow_poller_info: () -> void
|
|
278
|
+
|
|
279
|
+
attr_accessor workflow_sticky_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
280
|
+
def has_workflow_sticky_poller_info?: () -> bool
|
|
281
|
+
def clear_workflow_sticky_poller_info: () -> void
|
|
282
|
+
|
|
283
|
+
attr_accessor activity_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
284
|
+
def has_activity_poller_info?: () -> bool
|
|
285
|
+
def clear_activity_poller_info: () -> void
|
|
286
|
+
|
|
287
|
+
attr_accessor nexus_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
288
|
+
def has_nexus_poller_info?: () -> bool
|
|
289
|
+
def clear_nexus_poller_info: () -> void
|
|
290
|
+
|
|
291
|
+
# A Workflow Task found a cached Workflow Execution to run against.
|
|
292
|
+
attr_reader total_sticky_cache_hit(): ::Integer
|
|
293
|
+
attr_writer total_sticky_cache_hit(): ::Integer | ::Float
|
|
294
|
+
def clear_total_sticky_cache_hit: () -> void
|
|
295
|
+
|
|
296
|
+
# A Workflow Task did not find a cached Workflow execution to run against.
|
|
297
|
+
attr_reader total_sticky_cache_miss(): ::Integer
|
|
298
|
+
attr_writer total_sticky_cache_miss(): ::Integer | ::Float
|
|
299
|
+
def clear_total_sticky_cache_miss: () -> void
|
|
300
|
+
|
|
301
|
+
# Current cache size, expressed in number of Workflow Executions.
|
|
302
|
+
attr_reader current_sticky_cache_size(): ::Integer
|
|
303
|
+
attr_writer current_sticky_cache_size(): ::Integer | ::Float
|
|
304
|
+
def clear_current_sticky_cache_size: () -> void
|
|
305
|
+
|
|
306
|
+
# Plugins currently in use by this SDK.
|
|
307
|
+
attr_accessor plugins(): ::Google::Protobuf::RepeatedField
|
|
308
|
+
def clear_plugins: () -> void
|
|
309
|
+
|
|
310
|
+
# Storage drivers in use by this SDK.
|
|
311
|
+
attr_accessor drivers(): ::Google::Protobuf::RepeatedField
|
|
312
|
+
def clear_drivers: () -> void
|
|
313
|
+
|
|
314
|
+
type init_map = {
|
|
315
|
+
worker_instance_key: (::String | ::Symbol)?,
|
|
316
|
+
"worker_instance_key" => (::String | ::Symbol)?,
|
|
317
|
+
worker_identity: (::String | ::Symbol)?,
|
|
318
|
+
"worker_identity" => (::String | ::Symbol)?,
|
|
319
|
+
host_info: (::Temporalio::Api::Worker::V1::WorkerHostInfo | ::Temporalio::Api::Worker::V1::WorkerHostInfo::init_map)?,
|
|
320
|
+
"host_info" => (::Temporalio::Api::Worker::V1::WorkerHostInfo | ::Temporalio::Api::Worker::V1::WorkerHostInfo::init_map)?,
|
|
321
|
+
task_queue: (::String | ::Symbol)?,
|
|
322
|
+
"task_queue" => (::String | ::Symbol)?,
|
|
323
|
+
deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
324
|
+
"deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
325
|
+
sdk_name: (::String | ::Symbol)?,
|
|
326
|
+
"sdk_name" => (::String | ::Symbol)?,
|
|
327
|
+
sdk_version: (::String | ::Symbol)?,
|
|
328
|
+
"sdk_version" => (::String | ::Symbol)?,
|
|
329
|
+
status: (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
|
|
330
|
+
"status" => (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
|
|
331
|
+
start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
332
|
+
"start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
333
|
+
heartbeat_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
334
|
+
"heartbeat_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
335
|
+
elapsed_since_last_heartbeat: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
336
|
+
"elapsed_since_last_heartbeat" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
337
|
+
workflow_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
338
|
+
"workflow_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
339
|
+
activity_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
340
|
+
"activity_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
341
|
+
nexus_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
342
|
+
"nexus_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
343
|
+
local_activity_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
344
|
+
"local_activity_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?,
|
|
345
|
+
workflow_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
346
|
+
"workflow_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
347
|
+
workflow_sticky_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
348
|
+
"workflow_sticky_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
349
|
+
activity_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
350
|
+
"activity_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
351
|
+
nexus_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
352
|
+
"nexus_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?,
|
|
353
|
+
total_sticky_cache_hit: (::Integer | ::Float)?,
|
|
354
|
+
"total_sticky_cache_hit" => (::Integer | ::Float)?,
|
|
355
|
+
total_sticky_cache_miss: (::Integer | ::Float)?,
|
|
356
|
+
"total_sticky_cache_miss" => (::Integer | ::Float)?,
|
|
357
|
+
current_sticky_cache_size: (::Integer | ::Float)?,
|
|
358
|
+
"current_sticky_cache_size" => (::Integer | ::Float)?,
|
|
359
|
+
plugins: ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
|
|
360
|
+
"plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
|
|
361
|
+
drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
|
|
362
|
+
"drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
def initialize: (?init_map initial_value) -> void
|
|
366
|
+
|
|
367
|
+
def []:
|
|
368
|
+
("worker_instance_key" name) -> ::String
|
|
369
|
+
| ("worker_identity" name) -> ::String
|
|
370
|
+
| ("host_info" name) -> ::Temporalio::Api::Worker::V1::WorkerHostInfo?
|
|
371
|
+
| ("task_queue" name) -> ::String
|
|
372
|
+
| ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
373
|
+
| ("sdk_name" name) -> ::String
|
|
374
|
+
| ("sdk_version" name) -> ::String
|
|
375
|
+
| ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer)
|
|
376
|
+
| ("start_time" name) -> ::Google::Protobuf::Timestamp?
|
|
377
|
+
| ("heartbeat_time" name) -> ::Google::Protobuf::Timestamp?
|
|
378
|
+
| ("elapsed_since_last_heartbeat" name) -> ::Google::Protobuf::Duration?
|
|
379
|
+
| ("workflow_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
380
|
+
| ("activity_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
381
|
+
| ("nexus_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
382
|
+
| ("local_activity_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo?
|
|
383
|
+
| ("workflow_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
384
|
+
| ("workflow_sticky_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
385
|
+
| ("activity_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
386
|
+
| ("nexus_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo?
|
|
387
|
+
| ("total_sticky_cache_hit" name) -> ::Integer
|
|
388
|
+
| ("total_sticky_cache_miss" name) -> ::Integer
|
|
389
|
+
| ("current_sticky_cache_size" name) -> ::Integer
|
|
390
|
+
| ("plugins" name) -> ::Google::Protobuf::RepeatedField
|
|
391
|
+
| ("drivers" name) -> ::Google::Protobuf::RepeatedField
|
|
392
|
+
|
|
393
|
+
def []=:
|
|
394
|
+
("worker_instance_key" name, (::String | ::Symbol) value) -> void
|
|
395
|
+
| ("worker_identity" name, (::String | ::Symbol) value) -> void
|
|
396
|
+
| ("host_info" name, ::Temporalio::Api::Worker::V1::WorkerHostInfo? value) -> void
|
|
397
|
+
| ("task_queue" name, (::String | ::Symbol) value) -> void
|
|
398
|
+
| ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
|
|
399
|
+
| ("sdk_name" name, (::String | ::Symbol) value) -> void
|
|
400
|
+
| ("sdk_version" name, (::String | ::Symbol) value) -> void
|
|
401
|
+
| ("status" name, (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float) value) -> void
|
|
402
|
+
| ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
403
|
+
| ("heartbeat_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
404
|
+
| ("elapsed_since_last_heartbeat" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
405
|
+
| ("workflow_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
|
|
406
|
+
| ("activity_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
|
|
407
|
+
| ("nexus_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
|
|
408
|
+
| ("local_activity_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void
|
|
409
|
+
| ("workflow_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
|
|
410
|
+
| ("workflow_sticky_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
|
|
411
|
+
| ("activity_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
|
|
412
|
+
| ("nexus_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void
|
|
413
|
+
| ("total_sticky_cache_hit" name, (::Integer | ::Float) value) -> void
|
|
414
|
+
| ("total_sticky_cache_miss" name, (::Integer | ::Float) value) -> void
|
|
415
|
+
| ("current_sticky_cache_size" name, (::Integer | ::Float) value) -> void
|
|
416
|
+
| ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
417
|
+
| ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Detailed worker information.
|
|
421
|
+
class WorkerInfo < ::Google::Protobuf::AbstractMessage
|
|
422
|
+
|
|
423
|
+
attr_accessor worker_heartbeat(): ::Temporalio::Api::Worker::V1::WorkerHeartbeat?
|
|
424
|
+
def has_worker_heartbeat?: () -> bool
|
|
425
|
+
def clear_worker_heartbeat: () -> void
|
|
426
|
+
|
|
427
|
+
type init_map = {
|
|
428
|
+
worker_heartbeat: (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?,
|
|
429
|
+
"worker_heartbeat" => (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?,
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
def initialize: (?init_map initial_value) -> void
|
|
433
|
+
|
|
434
|
+
def []:
|
|
435
|
+
("worker_heartbeat" name) -> ::Temporalio::Api::Worker::V1::WorkerHeartbeat?
|
|
436
|
+
|
|
437
|
+
def []=:
|
|
438
|
+
("worker_heartbeat" name, ::Temporalio::Api::Worker::V1::WorkerHeartbeat? value) -> void
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Limited worker information returned in the list response.
|
|
442
|
+
# When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).
|
|
443
|
+
class WorkerListInfo < ::Google::Protobuf::AbstractMessage
|
|
444
|
+
|
|
445
|
+
# Worker identifier, should be unique for the namespace.
|
|
446
|
+
# It is distinct from worker identity, which is not necessarily namespace-unique.
|
|
447
|
+
attr_reader worker_instance_key(): ::String
|
|
448
|
+
attr_writer worker_instance_key(): ::String | ::Symbol
|
|
449
|
+
def clear_worker_instance_key: () -> void
|
|
450
|
+
|
|
451
|
+
# Worker identity, set by the client, may not be unique.
|
|
452
|
+
# Usually host_name+(user group name)+process_id, but can be overwritten by the user.
|
|
453
|
+
attr_reader worker_identity(): ::String
|
|
454
|
+
attr_writer worker_identity(): ::String | ::Symbol
|
|
455
|
+
def clear_worker_identity: () -> void
|
|
456
|
+
|
|
457
|
+
# Task queue this worker is polling for tasks.
|
|
458
|
+
attr_reader task_queue(): ::String
|
|
459
|
+
attr_writer task_queue(): ::String | ::Symbol
|
|
460
|
+
def clear_task_queue: () -> void
|
|
461
|
+
|
|
462
|
+
attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
463
|
+
def has_deployment_version?: () -> bool
|
|
464
|
+
def clear_deployment_version: () -> void
|
|
465
|
+
|
|
466
|
+
attr_reader sdk_name(): ::String
|
|
467
|
+
attr_writer sdk_name(): ::String | ::Symbol
|
|
468
|
+
def clear_sdk_name: () -> void
|
|
469
|
+
|
|
470
|
+
attr_reader sdk_version(): ::String
|
|
471
|
+
attr_writer sdk_version(): ::String | ::Symbol
|
|
472
|
+
def clear_sdk_version: () -> void
|
|
473
|
+
|
|
474
|
+
# Worker status. Defined by SDK.
|
|
475
|
+
attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer
|
|
476
|
+
attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float
|
|
477
|
+
attr_reader status_const(): ::Integer
|
|
478
|
+
def clear_status: () -> void
|
|
479
|
+
|
|
480
|
+
# Worker start time.
|
|
481
|
+
# It can be used to determine worker uptime. (current time - start time)
|
|
482
|
+
attr_reader start_time(): ::Google::Protobuf::Timestamp?
|
|
483
|
+
attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
484
|
+
def has_start_time?: () -> bool
|
|
485
|
+
def clear_start_time: () -> void
|
|
486
|
+
|
|
487
|
+
# Worker host identifier.
|
|
488
|
+
attr_reader host_name(): ::String
|
|
489
|
+
attr_writer host_name(): ::String | ::Symbol
|
|
490
|
+
def clear_host_name: () -> void
|
|
491
|
+
|
|
492
|
+
# Worker grouping identifier. A key to group workers that share the same client+namespace+process.
|
|
493
|
+
# This will be used to build the worker command nexus task queue name:
|
|
494
|
+
# "temporal-sys/worker-commands/{worker_grouping_key}"
|
|
495
|
+
attr_reader worker_grouping_key(): ::String
|
|
496
|
+
attr_writer worker_grouping_key(): ::String | ::Symbol
|
|
497
|
+
def clear_worker_grouping_key: () -> void
|
|
498
|
+
|
|
499
|
+
# Worker process identifier. This id only needs to be unique
|
|
500
|
+
# within one host (so using e.g. a unix pid would be appropriate).
|
|
501
|
+
attr_reader process_id(): ::String
|
|
502
|
+
attr_writer process_id(): ::String | ::Symbol
|
|
503
|
+
def clear_process_id: () -> void
|
|
504
|
+
|
|
505
|
+
# Plugins currently in use by this SDK.
|
|
506
|
+
attr_accessor plugins(): ::Google::Protobuf::RepeatedField
|
|
507
|
+
def clear_plugins: () -> void
|
|
508
|
+
|
|
509
|
+
# Storage drivers in use by this SDK.
|
|
510
|
+
attr_accessor drivers(): ::Google::Protobuf::RepeatedField
|
|
511
|
+
def clear_drivers: () -> void
|
|
512
|
+
|
|
513
|
+
type init_map = {
|
|
514
|
+
worker_instance_key: (::String | ::Symbol)?,
|
|
515
|
+
"worker_instance_key" => (::String | ::Symbol)?,
|
|
516
|
+
worker_identity: (::String | ::Symbol)?,
|
|
517
|
+
"worker_identity" => (::String | ::Symbol)?,
|
|
518
|
+
task_queue: (::String | ::Symbol)?,
|
|
519
|
+
"task_queue" => (::String | ::Symbol)?,
|
|
520
|
+
deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
521
|
+
"deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?,
|
|
522
|
+
sdk_name: (::String | ::Symbol)?,
|
|
523
|
+
"sdk_name" => (::String | ::Symbol)?,
|
|
524
|
+
sdk_version: (::String | ::Symbol)?,
|
|
525
|
+
"sdk_version" => (::String | ::Symbol)?,
|
|
526
|
+
status: (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
|
|
527
|
+
"status" => (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?,
|
|
528
|
+
start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
529
|
+
"start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
530
|
+
host_name: (::String | ::Symbol)?,
|
|
531
|
+
"host_name" => (::String | ::Symbol)?,
|
|
532
|
+
worker_grouping_key: (::String | ::Symbol)?,
|
|
533
|
+
"worker_grouping_key" => (::String | ::Symbol)?,
|
|
534
|
+
process_id: (::String | ::Symbol)?,
|
|
535
|
+
"process_id" => (::String | ::Symbol)?,
|
|
536
|
+
plugins: ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
|
|
537
|
+
"plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
|
|
538
|
+
drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
|
|
539
|
+
"drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
def initialize: (?init_map initial_value) -> void
|
|
543
|
+
|
|
544
|
+
def []:
|
|
545
|
+
("worker_instance_key" name) -> ::String
|
|
546
|
+
| ("worker_identity" name) -> ::String
|
|
547
|
+
| ("task_queue" name) -> ::String
|
|
548
|
+
| ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion?
|
|
549
|
+
| ("sdk_name" name) -> ::String
|
|
550
|
+
| ("sdk_version" name) -> ::String
|
|
551
|
+
| ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer)
|
|
552
|
+
| ("start_time" name) -> ::Google::Protobuf::Timestamp?
|
|
553
|
+
| ("host_name" name) -> ::String
|
|
554
|
+
| ("worker_grouping_key" name) -> ::String
|
|
555
|
+
| ("process_id" name) -> ::String
|
|
556
|
+
| ("plugins" name) -> ::Google::Protobuf::RepeatedField
|
|
557
|
+
| ("drivers" name) -> ::Google::Protobuf::RepeatedField
|
|
558
|
+
|
|
559
|
+
def []=:
|
|
560
|
+
("worker_instance_key" name, (::String | ::Symbol) value) -> void
|
|
561
|
+
| ("worker_identity" name, (::String | ::Symbol) value) -> void
|
|
562
|
+
| ("task_queue" name, (::String | ::Symbol) value) -> void
|
|
563
|
+
| ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void
|
|
564
|
+
| ("sdk_name" name, (::String | ::Symbol) value) -> void
|
|
565
|
+
| ("sdk_version" name, (::String | ::Symbol) value) -> void
|
|
566
|
+
| ("status" name, (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float) value) -> void
|
|
567
|
+
| ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
568
|
+
| ("host_name" name, (::String | ::Symbol) value) -> void
|
|
569
|
+
| ("worker_grouping_key" name, (::String | ::Symbol) value) -> void
|
|
570
|
+
| ("process_id" name, (::String | ::Symbol) value) -> void
|
|
571
|
+
| ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
572
|
+
| ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
class PluginInfo < ::Google::Protobuf::AbstractMessage
|
|
576
|
+
|
|
577
|
+
# The name of the plugin, required.
|
|
578
|
+
attr_reader name(): ::String
|
|
579
|
+
attr_writer name(): ::String | ::Symbol
|
|
580
|
+
def clear_name: () -> void
|
|
581
|
+
|
|
582
|
+
# The version of the plugin, may be empty.
|
|
583
|
+
attr_reader version(): ::String
|
|
584
|
+
attr_writer version(): ::String | ::Symbol
|
|
585
|
+
def clear_version: () -> void
|
|
586
|
+
|
|
587
|
+
type init_map = {
|
|
588
|
+
name: (::String | ::Symbol)?,
|
|
589
|
+
"name" => (::String | ::Symbol)?,
|
|
590
|
+
version: (::String | ::Symbol)?,
|
|
591
|
+
"version" => (::String | ::Symbol)?,
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
def initialize: (?init_map initial_value) -> void
|
|
595
|
+
|
|
596
|
+
def []:
|
|
597
|
+
("name" name) -> ::String
|
|
598
|
+
| ("version" name) -> ::String
|
|
599
|
+
|
|
600
|
+
def []=:
|
|
601
|
+
("name" name, (::String | ::Symbol) value) -> void
|
|
602
|
+
| ("version" name, (::String | ::Symbol) value) -> void
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
class StorageDriverInfo < ::Google::Protobuf::AbstractMessage
|
|
606
|
+
|
|
607
|
+
# The type of the driver, required.
|
|
608
|
+
attr_reader type(): ::String
|
|
609
|
+
attr_writer type(): ::String | ::Symbol
|
|
610
|
+
def clear_type: () -> void
|
|
611
|
+
|
|
612
|
+
type init_map = {
|
|
613
|
+
type: (::String | ::Symbol)?,
|
|
614
|
+
"type" => (::String | ::Symbol)?,
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
def initialize: (?init_map initial_value) -> void
|
|
618
|
+
|
|
619
|
+
def []:
|
|
620
|
+
("type" name) -> ::String
|
|
621
|
+
|
|
622
|
+
def []=:
|
|
623
|
+
("type" name, (::String | ::Symbol) value) -> void
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# A command sent from the server to a worker.
|
|
627
|
+
class WorkerCommand < ::Google::Protobuf::AbstractMessage
|
|
628
|
+
|
|
629
|
+
attr_accessor cancel_activity(): ::Temporalio::Api::Worker::V1::CancelActivityCommand?
|
|
630
|
+
def has_cancel_activity?: () -> bool
|
|
631
|
+
def clear_cancel_activity: () -> void
|
|
632
|
+
|
|
633
|
+
attr_reader type(): ::Temporalio::Api::Worker::V1::CancelActivityCommand?
|
|
634
|
+
def has_type?: () -> bool
|
|
635
|
+
def clear_type: () -> void
|
|
636
|
+
|
|
637
|
+
type init_map = {
|
|
638
|
+
cancel_activity: (::Temporalio::Api::Worker::V1::CancelActivityCommand | ::Temporalio::Api::Worker::V1::CancelActivityCommand::init_map)?,
|
|
639
|
+
"cancel_activity" => (::Temporalio::Api::Worker::V1::CancelActivityCommand | ::Temporalio::Api::Worker::V1::CancelActivityCommand::init_map)?,
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
def initialize: (?init_map initial_value) -> void
|
|
643
|
+
|
|
644
|
+
def []:
|
|
645
|
+
("cancel_activity" name) -> ::Temporalio::Api::Worker::V1::CancelActivityCommand?
|
|
646
|
+
|
|
647
|
+
def []=:
|
|
648
|
+
("cancel_activity" name, ::Temporalio::Api::Worker::V1::CancelActivityCommand? value) -> void
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# Cancel an activity if it is still running. Otherwise, do nothing.
|
|
652
|
+
class CancelActivityCommand < ::Google::Protobuf::AbstractMessage
|
|
653
|
+
|
|
654
|
+
attr_accessor task_token(): ::String
|
|
655
|
+
def clear_task_token: () -> void
|
|
656
|
+
|
|
657
|
+
type init_map = {
|
|
658
|
+
task_token: ::String?,
|
|
659
|
+
"task_token" => ::String?,
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
def initialize: (?init_map initial_value) -> void
|
|
663
|
+
|
|
664
|
+
def []:
|
|
665
|
+
("task_token" name) -> ::String
|
|
666
|
+
|
|
667
|
+
def []=:
|
|
668
|
+
("task_token" name, ::String value) -> void
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
# The result of executing a WorkerCommand.
|
|
672
|
+
class WorkerCommandResult < ::Google::Protobuf::AbstractMessage
|
|
673
|
+
|
|
674
|
+
attr_accessor cancel_activity(): ::Temporalio::Api::Worker::V1::CancelActivityResult?
|
|
675
|
+
def has_cancel_activity?: () -> bool
|
|
676
|
+
def clear_cancel_activity: () -> void
|
|
677
|
+
|
|
678
|
+
attr_reader type(): ::Temporalio::Api::Worker::V1::CancelActivityResult?
|
|
679
|
+
def has_type?: () -> bool
|
|
680
|
+
def clear_type: () -> void
|
|
681
|
+
|
|
682
|
+
type init_map = {
|
|
683
|
+
cancel_activity: (::Temporalio::Api::Worker::V1::CancelActivityResult | ::Temporalio::Api::Worker::V1::CancelActivityResult::init_map)?,
|
|
684
|
+
"cancel_activity" => (::Temporalio::Api::Worker::V1::CancelActivityResult | ::Temporalio::Api::Worker::V1::CancelActivityResult::init_map)?,
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
def initialize: (?init_map initial_value) -> void
|
|
688
|
+
|
|
689
|
+
def []:
|
|
690
|
+
("cancel_activity" name) -> ::Temporalio::Api::Worker::V1::CancelActivityResult?
|
|
691
|
+
|
|
692
|
+
def []=:
|
|
693
|
+
("cancel_activity" name, ::Temporalio::Api::Worker::V1::CancelActivityResult? value) -> void
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
# Result of a CancelActivityCommand.
|
|
697
|
+
# Treat both successful cancellation and no-op (activity is no longer running) as success.
|
|
698
|
+
class CancelActivityResult < ::Google::Protobuf::AbstractMessage
|
|
699
|
+
|
|
700
|
+
type init_map = {
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
def initialize: (?init_map initial_value) -> void
|
|
704
|
+
end
|
|
705
|
+
end
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
module Google
|
|
711
|
+
module Protobuf
|
|
712
|
+
class DescriptorPool
|
|
713
|
+
def lookup: (::String name) -> ::Google::Protobuf::Descriptor
|
|
714
|
+
end
|
|
715
|
+
end
|
|
716
|
+
end
|