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,221 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Worker::Tuner
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
sig { returns(SlotSupplier) }
|
|
7
|
+
attr_reader :workflow_slot_supplier
|
|
8
|
+
|
|
9
|
+
sig { returns(SlotSupplier) }
|
|
10
|
+
attr_reader :activity_slot_supplier
|
|
11
|
+
|
|
12
|
+
sig { returns(SlotSupplier) }
|
|
13
|
+
attr_reader :local_activity_slot_supplier
|
|
14
|
+
|
|
15
|
+
sig { returns(T.nilable(Temporalio::Worker::ThreadPool)) }
|
|
16
|
+
attr_reader :custom_slot_supplier_thread_pool
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
workflow_slot_supplier: SlotSupplier,
|
|
21
|
+
activity_slot_supplier: SlotSupplier,
|
|
22
|
+
local_activity_slot_supplier: SlotSupplier,
|
|
23
|
+
custom_slot_supplier_thread_pool: T.nilable(Temporalio::Worker::ThreadPool)
|
|
24
|
+
).void
|
|
25
|
+
end
|
|
26
|
+
def initialize(
|
|
27
|
+
workflow_slot_supplier:,
|
|
28
|
+
activity_slot_supplier:,
|
|
29
|
+
local_activity_slot_supplier:,
|
|
30
|
+
custom_slot_supplier_thread_pool: T.unsafe(nil)
|
|
31
|
+
); end
|
|
32
|
+
|
|
33
|
+
class << self
|
|
34
|
+
extend T::Sig
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
params(
|
|
38
|
+
workflow_slots: Integer,
|
|
39
|
+
activity_slots: Integer,
|
|
40
|
+
local_activity_slots: Integer
|
|
41
|
+
).returns(Temporalio::Worker::Tuner)
|
|
42
|
+
end
|
|
43
|
+
def create_fixed(workflow_slots: T.unsafe(nil), activity_slots: T.unsafe(nil), local_activity_slots: T.unsafe(nil)); end
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
target_memory_usage: Float,
|
|
48
|
+
target_cpu_usage: Float,
|
|
49
|
+
workflow_options: ResourceBasedSlotOptions,
|
|
50
|
+
activity_options: ResourceBasedSlotOptions,
|
|
51
|
+
local_activity_options: ResourceBasedSlotOptions
|
|
52
|
+
).returns(Temporalio::Worker::Tuner)
|
|
53
|
+
end
|
|
54
|
+
def create_resource_based(
|
|
55
|
+
target_memory_usage:,
|
|
56
|
+
target_cpu_usage:,
|
|
57
|
+
workflow_options: T.unsafe(nil),
|
|
58
|
+
activity_options: T.unsafe(nil),
|
|
59
|
+
local_activity_options: T.unsafe(nil)
|
|
60
|
+
); end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
class Temporalio::Worker::Tuner::SlotSupplier; end
|
|
65
|
+
|
|
66
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Fixed < ::Temporalio::Worker::Tuner::SlotSupplier
|
|
67
|
+
extend T::Sig
|
|
68
|
+
|
|
69
|
+
sig { returns(Integer) }
|
|
70
|
+
attr_reader :slots
|
|
71
|
+
|
|
72
|
+
sig { params(slots: Integer).void }
|
|
73
|
+
def initialize(slots); end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class Temporalio::Worker::Tuner::SlotSupplier::ResourceBased < ::Temporalio::Worker::Tuner::SlotSupplier
|
|
77
|
+
extend T::Sig
|
|
78
|
+
|
|
79
|
+
sig { returns(Temporalio::Worker::Tuner::ResourceBasedTunerOptions) }
|
|
80
|
+
attr_reader :tuner_options
|
|
81
|
+
|
|
82
|
+
sig { returns(Temporalio::Worker::Tuner::ResourceBasedSlotOptions) }
|
|
83
|
+
attr_reader :slot_options
|
|
84
|
+
|
|
85
|
+
sig do
|
|
86
|
+
params(
|
|
87
|
+
tuner_options: Temporalio::Worker::Tuner::ResourceBasedTunerOptions,
|
|
88
|
+
slot_options: Temporalio::Worker::Tuner::ResourceBasedSlotOptions
|
|
89
|
+
).void
|
|
90
|
+
end
|
|
91
|
+
def initialize(tuner_options:, slot_options:); end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom < ::Temporalio::Worker::Tuner::SlotSupplier
|
|
95
|
+
extend T::Sig
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
params(
|
|
99
|
+
context: ReserveContext,
|
|
100
|
+
cancellation: Temporalio::Cancellation,
|
|
101
|
+
block: T.proc.params(arg0: Object).void
|
|
102
|
+
).void
|
|
103
|
+
end
|
|
104
|
+
def reserve_slot(context, cancellation, &block); end
|
|
105
|
+
|
|
106
|
+
sig { params(context: ReserveContext).returns(Object) }
|
|
107
|
+
def try_reserve_slot(context); end
|
|
108
|
+
|
|
109
|
+
sig { params(context: MarkUsedContext).void }
|
|
110
|
+
def mark_slot_used(context); end
|
|
111
|
+
|
|
112
|
+
sig { params(context: ReleaseContext).void }
|
|
113
|
+
def release_slot(context); end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::ReserveContext < ::Data
|
|
117
|
+
extend T::Sig
|
|
118
|
+
|
|
119
|
+
sig { returns(Symbol) }
|
|
120
|
+
def slot_type; end
|
|
121
|
+
|
|
122
|
+
sig { returns(String) }
|
|
123
|
+
def task_queue; end
|
|
124
|
+
|
|
125
|
+
sig { returns(String) }
|
|
126
|
+
def worker_identity; end
|
|
127
|
+
|
|
128
|
+
sig { returns(String) }
|
|
129
|
+
def worker_deployment_name; end
|
|
130
|
+
|
|
131
|
+
sig { returns(String) }
|
|
132
|
+
def worker_build_id; end
|
|
133
|
+
|
|
134
|
+
sig { returns(T::Boolean) }
|
|
135
|
+
def sticky?; end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::MarkUsedContext < ::Data
|
|
139
|
+
extend T::Sig
|
|
140
|
+
|
|
141
|
+
sig { returns(T.any(Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Workflow, Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Activity, Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::LocalActivity, Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Nexus)) }
|
|
142
|
+
def slot_info; end
|
|
143
|
+
|
|
144
|
+
sig { returns(Object) }
|
|
145
|
+
def permit; end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::ReleaseContext < ::Data
|
|
149
|
+
extend T::Sig
|
|
150
|
+
|
|
151
|
+
sig { returns(T.nilable(T.any(Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Workflow, Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Activity, Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::LocalActivity, Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Nexus))) }
|
|
152
|
+
def slot_info; end
|
|
153
|
+
|
|
154
|
+
sig { returns(Object) }
|
|
155
|
+
def permit; end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
module Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo; end
|
|
159
|
+
|
|
160
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Workflow < ::Data
|
|
161
|
+
extend T::Sig
|
|
162
|
+
|
|
163
|
+
sig { returns(String) }
|
|
164
|
+
def workflow_type; end
|
|
165
|
+
|
|
166
|
+
sig { returns(T::Boolean) }
|
|
167
|
+
def sticky?; end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Activity < ::Data
|
|
171
|
+
extend T::Sig
|
|
172
|
+
|
|
173
|
+
sig { returns(String) }
|
|
174
|
+
def activity_type; end
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::LocalActivity < ::Data
|
|
178
|
+
extend T::Sig
|
|
179
|
+
|
|
180
|
+
sig { returns(String) }
|
|
181
|
+
def activity_type; end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
class Temporalio::Worker::Tuner::SlotSupplier::Custom::SlotInfo::Nexus < ::Data
|
|
185
|
+
extend T::Sig
|
|
186
|
+
|
|
187
|
+
sig { returns(String) }
|
|
188
|
+
def service; end
|
|
189
|
+
|
|
190
|
+
sig { returns(String) }
|
|
191
|
+
def operation; end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
class Temporalio::Worker::Tuner::ResourceBasedTunerOptions < ::Data
|
|
195
|
+
extend T::Sig
|
|
196
|
+
|
|
197
|
+
sig { returns(Float) }
|
|
198
|
+
def target_memory_usage; end
|
|
199
|
+
|
|
200
|
+
sig { returns(Float) }
|
|
201
|
+
def target_cpu_usage; end
|
|
202
|
+
|
|
203
|
+
sig { params(target_memory_usage: Float, target_cpu_usage: Float).void }
|
|
204
|
+
def initialize(target_memory_usage:, target_cpu_usage:); end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
class Temporalio::Worker::Tuner::ResourceBasedSlotOptions < ::Data
|
|
208
|
+
extend T::Sig
|
|
209
|
+
|
|
210
|
+
sig { returns(T.nilable(Integer)) }
|
|
211
|
+
def min_slots; end
|
|
212
|
+
|
|
213
|
+
sig { returns(T.nilable(Integer)) }
|
|
214
|
+
def max_slots; end
|
|
215
|
+
|
|
216
|
+
sig { returns(T.nilable(Numeric)) }
|
|
217
|
+
def ramp_throttle; end
|
|
218
|
+
|
|
219
|
+
sig { params(min_slots: T.nilable(Integer), max_slots: T.nilable(Integer), ramp_throttle: T.nilable(Float)).void }
|
|
220
|
+
def initialize(min_slots:, max_slots:, ramp_throttle:); end
|
|
221
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Worker::WorkflowExecutor::ThreadPool < ::Temporalio::Worker::WorkflowExecutor
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
sig { returns(Temporalio::Worker::WorkflowExecutor::ThreadPool) }
|
|
7
|
+
def self.default; end
|
|
8
|
+
|
|
9
|
+
sig { params(max_threads: Integer, thread_pool: Temporalio::Worker::ThreadPool).void }
|
|
10
|
+
def initialize(max_threads: T.unsafe(nil), thread_pool: T.unsafe(nil)); end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class Temporalio::Worker::WorkflowExecutor::ThreadPool::DeadlockError < ::Exception
|
|
14
|
+
include Temporalio::Internal::WorkflowTaskFailureError
|
|
15
|
+
end
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Worker::WorkflowReplayer
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
sig { returns(Temporalio::Worker::WorkflowReplayer::Options) }
|
|
7
|
+
attr_reader :options
|
|
8
|
+
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
workflows: T::Array[T.any(T.class_of(Temporalio::Workflow::Definition), Temporalio::Workflow::Definition::Info)],
|
|
12
|
+
namespace: String,
|
|
13
|
+
task_queue: String,
|
|
14
|
+
data_converter: Temporalio::Converters::DataConverter,
|
|
15
|
+
workflow_executor: Temporalio::Worker::WorkflowExecutor,
|
|
16
|
+
plugins: T::Array[Temporalio::Worker::Plugin],
|
|
17
|
+
interceptors: T::Array[Temporalio::Worker::Interceptor::Workflow],
|
|
18
|
+
identity: T.nilable(String),
|
|
19
|
+
logger: Logger,
|
|
20
|
+
illegal_workflow_calls: T::Hash[String, T.any(Symbol, T::Array[Symbol])],
|
|
21
|
+
workflow_failure_exception_types: T::Array[T.class_of(Exception)],
|
|
22
|
+
workflow_payload_codec_thread_pool: T.nilable(Temporalio::Worker::ThreadPool),
|
|
23
|
+
unsafe_workflow_io_enabled: T::Boolean,
|
|
24
|
+
debug_mode: T::Boolean,
|
|
25
|
+
runtime: Temporalio::Runtime,
|
|
26
|
+
block: T.nilable(T.proc.params(worker: Temporalio::Worker::WorkflowReplayer::ReplayWorker).returns(T.anything))
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
def initialize(
|
|
30
|
+
workflows:,
|
|
31
|
+
namespace: T.unsafe(nil),
|
|
32
|
+
task_queue: T.unsafe(nil),
|
|
33
|
+
data_converter: T.unsafe(nil),
|
|
34
|
+
workflow_executor: T.unsafe(nil),
|
|
35
|
+
plugins: T.unsafe(nil),
|
|
36
|
+
interceptors: T.unsafe(nil),
|
|
37
|
+
identity: T.unsafe(nil),
|
|
38
|
+
logger: T.unsafe(nil),
|
|
39
|
+
illegal_workflow_calls: T.unsafe(nil),
|
|
40
|
+
workflow_failure_exception_types: T.unsafe(nil),
|
|
41
|
+
workflow_payload_codec_thread_pool: T.unsafe(nil),
|
|
42
|
+
unsafe_workflow_io_enabled: T.unsafe(nil),
|
|
43
|
+
debug_mode: T.unsafe(nil),
|
|
44
|
+
runtime: T.unsafe(nil),
|
|
45
|
+
&block
|
|
46
|
+
); end
|
|
47
|
+
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
history: Temporalio::WorkflowHistory,
|
|
51
|
+
raise_on_replay_failure: T::Boolean
|
|
52
|
+
).returns(Temporalio::Worker::WorkflowReplayer::ReplayResult)
|
|
53
|
+
end
|
|
54
|
+
def replay_workflow(history, raise_on_replay_failure: T.unsafe(nil)); end
|
|
55
|
+
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
histories: T::Enumerable[Temporalio::WorkflowHistory],
|
|
59
|
+
raise_on_replay_failure: T::Boolean
|
|
60
|
+
).returns(T::Array[Temporalio::Worker::WorkflowReplayer::ReplayResult])
|
|
61
|
+
end
|
|
62
|
+
def replay_workflows(histories, raise_on_replay_failure: T.unsafe(nil)); end
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
type_parameters(:T)
|
|
66
|
+
.params(block: T.proc.params(worker: Temporalio::Worker::WorkflowReplayer::ReplayWorker).returns(T.type_parameter(:T)))
|
|
67
|
+
.returns(T.type_parameter(:T))
|
|
68
|
+
end
|
|
69
|
+
def with_replay_worker(&block); end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class Temporalio::Worker::WorkflowReplayer::Options < ::Data
|
|
73
|
+
extend T::Sig
|
|
74
|
+
|
|
75
|
+
sig { returns(T::Array[T.any(T.class_of(Temporalio::Workflow::Definition), Temporalio::Workflow::Definition::Info)]) }
|
|
76
|
+
def workflows; end
|
|
77
|
+
|
|
78
|
+
sig { returns(String) }
|
|
79
|
+
def namespace; end
|
|
80
|
+
|
|
81
|
+
sig { returns(String) }
|
|
82
|
+
def task_queue; end
|
|
83
|
+
|
|
84
|
+
sig { returns(Temporalio::Converters::DataConverter) }
|
|
85
|
+
def data_converter; end
|
|
86
|
+
|
|
87
|
+
sig { returns(Temporalio::Worker::WorkflowExecutor) }
|
|
88
|
+
def workflow_executor; end
|
|
89
|
+
|
|
90
|
+
sig { returns(T::Array[Temporalio::Worker::Plugin]) }
|
|
91
|
+
def plugins; end
|
|
92
|
+
|
|
93
|
+
sig { returns(T::Array[Temporalio::Worker::Interceptor::Workflow]) }
|
|
94
|
+
def interceptors; end
|
|
95
|
+
|
|
96
|
+
sig { returns(T.nilable(String)) }
|
|
97
|
+
def identity; end
|
|
98
|
+
|
|
99
|
+
sig { returns(Logger) }
|
|
100
|
+
def logger; end
|
|
101
|
+
|
|
102
|
+
sig { returns(T::Hash[String, T.any(Symbol, T::Array[Symbol])]) }
|
|
103
|
+
def illegal_workflow_calls; end
|
|
104
|
+
|
|
105
|
+
sig { returns(T::Array[T.class_of(Exception)]) }
|
|
106
|
+
def workflow_failure_exception_types; end
|
|
107
|
+
|
|
108
|
+
sig { returns(T.nilable(Temporalio::Worker::ThreadPool)) }
|
|
109
|
+
def workflow_payload_codec_thread_pool; end
|
|
110
|
+
|
|
111
|
+
sig { returns(T::Boolean) }
|
|
112
|
+
def unsafe_workflow_io_enabled; end
|
|
113
|
+
|
|
114
|
+
sig { returns(T::Boolean) }
|
|
115
|
+
def debug_mode; end
|
|
116
|
+
|
|
117
|
+
sig { returns(Temporalio::Runtime) }
|
|
118
|
+
def runtime; end
|
|
119
|
+
|
|
120
|
+
sig { params(kwargs: T.untyped).returns(Temporalio::Worker::WorkflowReplayer::Options) }
|
|
121
|
+
def with(**kwargs); end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
class Temporalio::Worker::WorkflowReplayer::ReplayResult
|
|
125
|
+
extend T::Sig
|
|
126
|
+
|
|
127
|
+
sig { returns(Temporalio::WorkflowHistory) }
|
|
128
|
+
attr_reader :history
|
|
129
|
+
|
|
130
|
+
sig { returns(T.nilable(Exception)) }
|
|
131
|
+
attr_reader :replay_failure
|
|
132
|
+
|
|
133
|
+
sig { params(history: Temporalio::WorkflowHistory, replay_failure: T.nilable(Exception)).void }
|
|
134
|
+
def initialize(history:, replay_failure:); end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
class Temporalio::Worker::WorkflowReplayer::ReplayWorker
|
|
138
|
+
extend T::Sig
|
|
139
|
+
|
|
140
|
+
sig do
|
|
141
|
+
params(
|
|
142
|
+
history: Temporalio::WorkflowHistory,
|
|
143
|
+
raise_on_replay_failure: T::Boolean
|
|
144
|
+
).returns(Temporalio::Worker::WorkflowReplayer::ReplayResult)
|
|
145
|
+
end
|
|
146
|
+
def replay_workflow(history, raise_on_replay_failure: T.unsafe(nil)); end
|
|
147
|
+
|
|
148
|
+
private
|
|
149
|
+
|
|
150
|
+
sig { returns(T::Boolean) }
|
|
151
|
+
def workflow_activation_work_drained?; end
|
|
152
|
+
end
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Worker
|
|
4
|
+
extend T::Sig
|
|
5
|
+
|
|
6
|
+
sig { returns(Options) }
|
|
7
|
+
attr_reader :options
|
|
8
|
+
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
client: Temporalio::Client,
|
|
12
|
+
task_queue: String,
|
|
13
|
+
activities: T::Array[T.any(Temporalio::Activity::Definition, T.class_of(Temporalio::Activity::Definition), Temporalio::Activity::Definition::Info)],
|
|
14
|
+
workflows: T::Array[T.any(T.class_of(Temporalio::Workflow::Definition), Temporalio::Workflow::Definition::Info)],
|
|
15
|
+
tuner: Temporalio::Worker::Tuner,
|
|
16
|
+
activity_executors: T::Hash[Symbol, Temporalio::Worker::ActivityExecutor],
|
|
17
|
+
workflow_executor: Temporalio::Worker::WorkflowExecutor,
|
|
18
|
+
plugins: T::Array[Temporalio::Worker::Plugin],
|
|
19
|
+
interceptors: T::Array[T.any(Temporalio::Worker::Interceptor::Activity, Temporalio::Worker::Interceptor::Workflow)],
|
|
20
|
+
identity: T.nilable(String),
|
|
21
|
+
logger: Logger,
|
|
22
|
+
max_cached_workflows: Integer,
|
|
23
|
+
max_concurrent_workflow_task_polls: Integer,
|
|
24
|
+
nonsticky_to_sticky_poll_ratio: Numeric,
|
|
25
|
+
max_concurrent_activity_task_polls: Integer,
|
|
26
|
+
no_remote_activities: T::Boolean,
|
|
27
|
+
sticky_queue_schedule_to_start_timeout: Numeric,
|
|
28
|
+
max_heartbeat_throttle_interval: Numeric,
|
|
29
|
+
default_heartbeat_throttle_interval: Numeric,
|
|
30
|
+
max_activities_per_second: T.nilable(Numeric),
|
|
31
|
+
max_task_queue_activities_per_second: T.nilable(Numeric),
|
|
32
|
+
graceful_shutdown_period: Numeric,
|
|
33
|
+
disable_eager_activity_execution: T::Boolean,
|
|
34
|
+
illegal_workflow_calls: T::Hash[String, T.any(Symbol, T::Array[T.any(Symbol, Temporalio::Worker::IllegalWorkflowCallValidator)], Temporalio::Worker::IllegalWorkflowCallValidator)],
|
|
35
|
+
workflow_failure_exception_types: T::Array[T.class_of(Exception)],
|
|
36
|
+
workflow_payload_codec_thread_pool: T.nilable(Temporalio::Worker::ThreadPool),
|
|
37
|
+
unsafe_workflow_io_enabled: T::Boolean,
|
|
38
|
+
deployment_options: Temporalio::Worker::DeploymentOptions,
|
|
39
|
+
patch_activation_callback: T.nilable(T.proc.params(input: Temporalio::Worker::PatchActivationInput).returns(T::Boolean)),
|
|
40
|
+
workflow_task_poller_behavior: Temporalio::Worker::PollerBehavior,
|
|
41
|
+
activity_task_poller_behavior: Temporalio::Worker::PollerBehavior,
|
|
42
|
+
debug_mode: T::Boolean
|
|
43
|
+
).void
|
|
44
|
+
end
|
|
45
|
+
def initialize(
|
|
46
|
+
client:,
|
|
47
|
+
task_queue:,
|
|
48
|
+
activities: T.unsafe(nil),
|
|
49
|
+
workflows: T.unsafe(nil),
|
|
50
|
+
tuner: T.unsafe(nil),
|
|
51
|
+
activity_executors: T.unsafe(nil),
|
|
52
|
+
workflow_executor: T.unsafe(nil),
|
|
53
|
+
plugins: T.unsafe(nil),
|
|
54
|
+
interceptors: T.unsafe(nil),
|
|
55
|
+
identity: T.unsafe(nil),
|
|
56
|
+
logger: T.unsafe(nil),
|
|
57
|
+
max_cached_workflows: T.unsafe(nil),
|
|
58
|
+
max_concurrent_workflow_task_polls: T.unsafe(nil),
|
|
59
|
+
nonsticky_to_sticky_poll_ratio: T.unsafe(nil),
|
|
60
|
+
max_concurrent_activity_task_polls: T.unsafe(nil),
|
|
61
|
+
no_remote_activities: T.unsafe(nil),
|
|
62
|
+
sticky_queue_schedule_to_start_timeout: T.unsafe(nil),
|
|
63
|
+
max_heartbeat_throttle_interval: T.unsafe(nil),
|
|
64
|
+
default_heartbeat_throttle_interval: T.unsafe(nil),
|
|
65
|
+
max_activities_per_second: T.unsafe(nil),
|
|
66
|
+
max_task_queue_activities_per_second: T.unsafe(nil),
|
|
67
|
+
graceful_shutdown_period: T.unsafe(nil),
|
|
68
|
+
disable_eager_activity_execution: T.unsafe(nil),
|
|
69
|
+
illegal_workflow_calls: T.unsafe(nil),
|
|
70
|
+
workflow_failure_exception_types: T.unsafe(nil),
|
|
71
|
+
workflow_payload_codec_thread_pool: T.unsafe(nil),
|
|
72
|
+
unsafe_workflow_io_enabled: T.unsafe(nil),
|
|
73
|
+
deployment_options: T.unsafe(nil),
|
|
74
|
+
patch_activation_callback: T.unsafe(nil),
|
|
75
|
+
workflow_task_poller_behavior: T.unsafe(nil),
|
|
76
|
+
activity_task_poller_behavior: T.unsafe(nil),
|
|
77
|
+
debug_mode: T.unsafe(nil)
|
|
78
|
+
); end
|
|
79
|
+
|
|
80
|
+
sig { returns(String) }
|
|
81
|
+
def task_queue; end
|
|
82
|
+
|
|
83
|
+
sig { returns(Temporalio::Client) }
|
|
84
|
+
def client; end
|
|
85
|
+
|
|
86
|
+
sig { params(new_client: Temporalio::Client).void }
|
|
87
|
+
def client=(new_client); end
|
|
88
|
+
|
|
89
|
+
sig do
|
|
90
|
+
type_parameters(:T)
|
|
91
|
+
.params(
|
|
92
|
+
cancellation: Temporalio::Cancellation,
|
|
93
|
+
shutdown_signals: T::Array[T.any(String, Integer)],
|
|
94
|
+
raise_in_block_on_shutdown: T.nilable(Exception),
|
|
95
|
+
wait_block_complete: T::Boolean,
|
|
96
|
+
block: T.nilable(T.proc.returns(T.type_parameter(:T)))
|
|
97
|
+
).returns(T.type_parameter(:T))
|
|
98
|
+
end
|
|
99
|
+
def run(
|
|
100
|
+
cancellation: T.unsafe(nil),
|
|
101
|
+
shutdown_signals: T.unsafe(nil),
|
|
102
|
+
raise_in_block_on_shutdown: T.unsafe(nil),
|
|
103
|
+
wait_block_complete: T.unsafe(nil),
|
|
104
|
+
&block
|
|
105
|
+
); end
|
|
106
|
+
|
|
107
|
+
class << self
|
|
108
|
+
extend T::Sig
|
|
109
|
+
|
|
110
|
+
sig { returns(String) }
|
|
111
|
+
def default_build_id; end
|
|
112
|
+
|
|
113
|
+
sig { returns(Temporalio::Worker::DeploymentOptions) }
|
|
114
|
+
def default_deployment_options; end
|
|
115
|
+
|
|
116
|
+
sig do
|
|
117
|
+
type_parameters(:T)
|
|
118
|
+
.params(
|
|
119
|
+
workers: Temporalio::Worker,
|
|
120
|
+
cancellation: Temporalio::Cancellation,
|
|
121
|
+
shutdown_signals: T::Array[T.any(String, Integer)],
|
|
122
|
+
raise_in_block_on_shutdown: T.nilable(Exception),
|
|
123
|
+
wait_block_complete: T::Boolean,
|
|
124
|
+
block: T.nilable(T.proc.returns(T.type_parameter(:T)))
|
|
125
|
+
).returns(T.type_parameter(:T))
|
|
126
|
+
end
|
|
127
|
+
def run_all(
|
|
128
|
+
*workers,
|
|
129
|
+
cancellation: T.unsafe(nil),
|
|
130
|
+
shutdown_signals: T.unsafe(nil),
|
|
131
|
+
raise_in_block_on_shutdown: T.unsafe(nil),
|
|
132
|
+
wait_block_complete: T.unsafe(nil),
|
|
133
|
+
&block
|
|
134
|
+
); end
|
|
135
|
+
|
|
136
|
+
sig { returns(T::Hash[String, T.any(Symbol, T::Array[T.any(Symbol, IllegalWorkflowCallValidator)], IllegalWorkflowCallValidator)]) }
|
|
137
|
+
def default_illegal_workflow_calls; end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
class Temporalio::Worker::PatchActivationInput < ::Data
|
|
142
|
+
extend T::Sig
|
|
143
|
+
|
|
144
|
+
sig { returns(Temporalio::Workflow::Info) }
|
|
145
|
+
def workflow_info; end
|
|
146
|
+
|
|
147
|
+
sig { returns(String) }
|
|
148
|
+
def patch_id; end
|
|
149
|
+
|
|
150
|
+
sig { params(workflow_info: Temporalio::Workflow::Info, patch_id: String).void }
|
|
151
|
+
def initialize(workflow_info:, patch_id:); end
|
|
152
|
+
|
|
153
|
+
sig { params(kwargs: T.untyped).returns(Temporalio::Worker::PatchActivationInput) }
|
|
154
|
+
def with(**kwargs); end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class Temporalio::Worker::Options < ::Data
|
|
158
|
+
extend T::Sig
|
|
159
|
+
|
|
160
|
+
sig { returns(Temporalio::Client) }
|
|
161
|
+
def client; end
|
|
162
|
+
|
|
163
|
+
sig { returns(String) }
|
|
164
|
+
def task_queue; end
|
|
165
|
+
|
|
166
|
+
sig { returns(T::Array[T.any(Temporalio::Activity::Definition, T.class_of(Temporalio::Activity::Definition), Temporalio::Activity::Definition::Info)]) }
|
|
167
|
+
def activities; end
|
|
168
|
+
|
|
169
|
+
sig { returns(T::Array[T.any(T.class_of(Temporalio::Workflow::Definition), Temporalio::Workflow::Definition::Info)]) }
|
|
170
|
+
def workflows; end
|
|
171
|
+
|
|
172
|
+
sig { returns(Temporalio::Worker::Tuner) }
|
|
173
|
+
def tuner; end
|
|
174
|
+
|
|
175
|
+
sig { returns(T::Hash[Symbol, Temporalio::Worker::ActivityExecutor]) }
|
|
176
|
+
def activity_executors; end
|
|
177
|
+
|
|
178
|
+
sig { returns(Temporalio::Worker::WorkflowExecutor) }
|
|
179
|
+
def workflow_executor; end
|
|
180
|
+
|
|
181
|
+
sig { returns(T::Array[Temporalio::Worker::Plugin]) }
|
|
182
|
+
def plugins; end
|
|
183
|
+
|
|
184
|
+
sig { returns(T::Array[T.any(Temporalio::Worker::Interceptor::Activity, Temporalio::Worker::Interceptor::Workflow)]) }
|
|
185
|
+
def interceptors; end
|
|
186
|
+
|
|
187
|
+
sig { returns(T.nilable(String)) }
|
|
188
|
+
def identity; end
|
|
189
|
+
|
|
190
|
+
sig { returns(Logger) }
|
|
191
|
+
def logger; end
|
|
192
|
+
|
|
193
|
+
sig { returns(Integer) }
|
|
194
|
+
def max_cached_workflows; end
|
|
195
|
+
|
|
196
|
+
sig { returns(Integer) }
|
|
197
|
+
def max_concurrent_workflow_task_polls; end
|
|
198
|
+
|
|
199
|
+
sig { returns(Numeric) }
|
|
200
|
+
def nonsticky_to_sticky_poll_ratio; end
|
|
201
|
+
|
|
202
|
+
sig { returns(Integer) }
|
|
203
|
+
def max_concurrent_activity_task_polls; end
|
|
204
|
+
|
|
205
|
+
sig { returns(T::Boolean) }
|
|
206
|
+
def no_remote_activities; end
|
|
207
|
+
|
|
208
|
+
sig { returns(Numeric) }
|
|
209
|
+
def sticky_queue_schedule_to_start_timeout; end
|
|
210
|
+
|
|
211
|
+
sig { returns(Numeric) }
|
|
212
|
+
def max_heartbeat_throttle_interval; end
|
|
213
|
+
|
|
214
|
+
sig { returns(Numeric) }
|
|
215
|
+
def default_heartbeat_throttle_interval; end
|
|
216
|
+
|
|
217
|
+
sig { returns(T.nilable(Numeric)) }
|
|
218
|
+
def max_activities_per_second; end
|
|
219
|
+
|
|
220
|
+
sig { returns(T.nilable(Numeric)) }
|
|
221
|
+
def max_task_queue_activities_per_second; end
|
|
222
|
+
|
|
223
|
+
sig { returns(Numeric) }
|
|
224
|
+
def graceful_shutdown_period; end
|
|
225
|
+
|
|
226
|
+
sig { returns(T::Boolean) }
|
|
227
|
+
def disable_eager_activity_execution; end
|
|
228
|
+
|
|
229
|
+
sig { returns(T::Hash[String, T.any(Symbol, T::Array[T.any(Symbol, Temporalio::Worker::IllegalWorkflowCallValidator)], Temporalio::Worker::IllegalWorkflowCallValidator)]) }
|
|
230
|
+
def illegal_workflow_calls; end
|
|
231
|
+
|
|
232
|
+
sig { returns(T::Array[T.class_of(Exception)]) }
|
|
233
|
+
def workflow_failure_exception_types; end
|
|
234
|
+
|
|
235
|
+
sig { returns(T.nilable(Temporalio::Worker::ThreadPool)) }
|
|
236
|
+
def workflow_payload_codec_thread_pool; end
|
|
237
|
+
|
|
238
|
+
sig { returns(T::Boolean) }
|
|
239
|
+
def unsafe_workflow_io_enabled; end
|
|
240
|
+
|
|
241
|
+
sig { returns(T.nilable(T.proc.params(input: Temporalio::Worker::PatchActivationInput).returns(T::Boolean))) }
|
|
242
|
+
def patch_activation_callback; end
|
|
243
|
+
|
|
244
|
+
sig { returns(Temporalio::Worker::PollerBehavior) }
|
|
245
|
+
def workflow_task_poller_behavior; end
|
|
246
|
+
|
|
247
|
+
sig { returns(Temporalio::Worker::PollerBehavior) }
|
|
248
|
+
def activity_task_poller_behavior; end
|
|
249
|
+
|
|
250
|
+
sig { returns(Temporalio::Worker::DeploymentOptions) }
|
|
251
|
+
def deployment_options; end
|
|
252
|
+
|
|
253
|
+
sig { returns(T::Boolean) }
|
|
254
|
+
def debug_mode; end
|
|
255
|
+
|
|
256
|
+
sig { params(kwargs: T.untyped).returns(Temporalio::Worker::Options) }
|
|
257
|
+
def with(**kwargs); end
|
|
258
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::WorkerDeploymentVersion < ::Data
|
|
4
|
+
sig { params(deployment_name: String, build_id: String).void }
|
|
5
|
+
def initialize(deployment_name:, build_id:); end
|
|
6
|
+
|
|
7
|
+
sig { params(canonical: String).returns(Temporalio::WorkerDeploymentVersion) }
|
|
8
|
+
def self.from_canonical_string(canonical); end
|
|
9
|
+
|
|
10
|
+
sig { returns(String) }
|
|
11
|
+
def deployment_name; end
|
|
12
|
+
|
|
13
|
+
sig { returns(String) }
|
|
14
|
+
def build_id; end
|
|
15
|
+
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
def to_canonical_string; end
|
|
18
|
+
|
|
19
|
+
class << self
|
|
20
|
+
sig { params(args: T.untyped).returns(Temporalio::WorkerDeploymentVersion) }
|
|
21
|
+
def [](*args); end
|
|
22
|
+
|
|
23
|
+
sig { returns(T::Array[Symbol]) }
|
|
24
|
+
def members; end
|
|
25
|
+
|
|
26
|
+
sig { params(args: T.untyped).returns(Temporalio::WorkerDeploymentVersion) }
|
|
27
|
+
def new(*args); end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Temporalio::Workflow::ChildWorkflowCancellationType
|
|
4
|
+
ABANDON = T.let(T.unsafe(nil), Integer)
|
|
5
|
+
TRY_CANCEL = T.let(T.unsafe(nil), Integer)
|
|
6
|
+
WAIT_CANCELLATION_COMPLETED = T.let(T.unsafe(nil), Integer)
|
|
7
|
+
WAIT_CANCELLATION_REQUESTED = T.let(T.unsafe(nil), Integer)
|
|
8
|
+
end
|