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,199 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Bridge
|
|
4
|
+
class Worker
|
|
5
|
+
class Options
|
|
6
|
+
attr_accessor namespace: String
|
|
7
|
+
attr_accessor task_queue: String
|
|
8
|
+
attr_accessor tuner: TunerOptions
|
|
9
|
+
attr_accessor identity_override: String?
|
|
10
|
+
attr_accessor max_cached_workflows: Integer
|
|
11
|
+
attr_accessor workflow_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling
|
|
12
|
+
attr_accessor nonsticky_to_sticky_poll_ratio: Float
|
|
13
|
+
attr_accessor activity_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling
|
|
14
|
+
attr_accessor enable_workflows: bool
|
|
15
|
+
attr_accessor enable_local_activities: bool
|
|
16
|
+
attr_accessor enable_remote_activities: bool
|
|
17
|
+
attr_accessor enable_nexus: bool
|
|
18
|
+
attr_accessor sticky_queue_schedule_to_start_timeout: Float
|
|
19
|
+
attr_accessor max_heartbeat_throttle_interval: Float
|
|
20
|
+
attr_accessor default_heartbeat_throttle_interval: Float
|
|
21
|
+
attr_accessor max_worker_activities_per_second: Float?
|
|
22
|
+
attr_accessor max_task_queue_activities_per_second: Float?
|
|
23
|
+
attr_accessor graceful_shutdown_period: Float
|
|
24
|
+
attr_accessor nondeterminism_as_workflow_fail: bool
|
|
25
|
+
attr_accessor nondeterminism_as_workflow_fail_for_types: Array[String]
|
|
26
|
+
attr_accessor deployment_options: DeploymentOptions?
|
|
27
|
+
attr_accessor plugins: Array[String]
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
namespace: String,
|
|
31
|
+
task_queue: String,
|
|
32
|
+
tuner: TunerOptions,
|
|
33
|
+
identity_override: String?,
|
|
34
|
+
max_cached_workflows: Integer,
|
|
35
|
+
workflow_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling,
|
|
36
|
+
nonsticky_to_sticky_poll_ratio: Float,
|
|
37
|
+
activity_task_poller_behavior: PollerBehaviorSimpleMaximum | PollerBehaviorAutoscaling,
|
|
38
|
+
enable_workflows: bool,
|
|
39
|
+
enable_local_activities: bool,
|
|
40
|
+
enable_remote_activities: bool,
|
|
41
|
+
enable_nexus: bool,
|
|
42
|
+
sticky_queue_schedule_to_start_timeout: Float,
|
|
43
|
+
max_heartbeat_throttle_interval: Float,
|
|
44
|
+
default_heartbeat_throttle_interval: Float,
|
|
45
|
+
max_worker_activities_per_second: Float?,
|
|
46
|
+
max_task_queue_activities_per_second: Float?,
|
|
47
|
+
graceful_shutdown_period: Float,
|
|
48
|
+
nondeterminism_as_workflow_fail: bool,
|
|
49
|
+
nondeterminism_as_workflow_fail_for_types: Array[String],
|
|
50
|
+
deployment_options: DeploymentOptions?,
|
|
51
|
+
plugins: Array[String]
|
|
52
|
+
) -> void
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class TunerOptions
|
|
56
|
+
attr_accessor workflow_slot_supplier: TunerSlotSupplierOptions
|
|
57
|
+
attr_accessor activity_slot_supplier: TunerSlotSupplierOptions
|
|
58
|
+
attr_accessor local_activity_slot_supplier: TunerSlotSupplierOptions
|
|
59
|
+
|
|
60
|
+
def initialize: (
|
|
61
|
+
workflow_slot_supplier: TunerSlotSupplierOptions,
|
|
62
|
+
activity_slot_supplier: TunerSlotSupplierOptions,
|
|
63
|
+
local_activity_slot_supplier: TunerSlotSupplierOptions
|
|
64
|
+
) -> void
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class TunerSlotSupplierOptions
|
|
68
|
+
attr_accessor fixed_size: Integer?
|
|
69
|
+
attr_accessor resource_based: TunerResourceBasedSlotSupplierOptions?
|
|
70
|
+
attr_accessor custom: CustomSlotSupplier?
|
|
71
|
+
|
|
72
|
+
def initialize: (
|
|
73
|
+
fixed_size: Integer?,
|
|
74
|
+
resource_based: TunerResourceBasedSlotSupplierOptions?,
|
|
75
|
+
custom: CustomSlotSupplier?
|
|
76
|
+
) -> void
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class TunerResourceBasedSlotSupplierOptions
|
|
80
|
+
attr_accessor target_mem_usage: Float
|
|
81
|
+
attr_accessor target_cpu_usage: Float
|
|
82
|
+
attr_accessor min_slots: Integer?
|
|
83
|
+
attr_accessor max_slots: Integer?
|
|
84
|
+
attr_accessor ramp_throttle: Float?
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
target_mem_usage: Float,
|
|
88
|
+
target_cpu_usage: Float,
|
|
89
|
+
min_slots: Integer?,
|
|
90
|
+
max_slots: Integer?,
|
|
91
|
+
ramp_throttle: Float?
|
|
92
|
+
) -> void
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def self.finalize_shutdown_all: (Array[Worker] workers) -> void
|
|
96
|
+
|
|
97
|
+
def validate: -> void
|
|
98
|
+
|
|
99
|
+
def complete_activity_task: (untyped proto) -> void
|
|
100
|
+
|
|
101
|
+
def complete_activity_task_in_background: (untyped proto) -> void
|
|
102
|
+
|
|
103
|
+
class CustomSlotSupplier
|
|
104
|
+
def initialize: (
|
|
105
|
+
slot_supplier: Temporalio::Worker::Tuner::SlotSupplier::Custom,
|
|
106
|
+
thread_pool: Temporalio::Worker::ThreadPool?
|
|
107
|
+
) -> void
|
|
108
|
+
|
|
109
|
+
def reserve_slot: (
|
|
110
|
+
Temporalio::Worker::Tuner::SlotSupplier::Custom::ReserveContext context,
|
|
111
|
+
Temporalio::Cancellation cancellation
|
|
112
|
+
) { (untyped) -> void } -> void
|
|
113
|
+
|
|
114
|
+
def try_reserve_slot: (
|
|
115
|
+
Temporalio::Worker::Tuner::SlotSupplier::Custom::ReserveContext context
|
|
116
|
+
) { (untyped) -> void } -> void
|
|
117
|
+
|
|
118
|
+
def mark_slot_used: (
|
|
119
|
+
Temporalio::Worker::Tuner::SlotSupplier::Custom::MarkUsedContext context
|
|
120
|
+
) { (untyped) -> void } -> void
|
|
121
|
+
|
|
122
|
+
def release_slot: (
|
|
123
|
+
Temporalio::Worker::Tuner::SlotSupplier::Custom::ReleaseContext context
|
|
124
|
+
) { (untyped) -> void } -> void
|
|
125
|
+
|
|
126
|
+
def run_user_code: [T] { -> T } -> T
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Defined in Rust
|
|
130
|
+
|
|
131
|
+
def self.new: (Client client, Options options) -> Worker
|
|
132
|
+
|
|
133
|
+
def self.async_poll_all: (
|
|
134
|
+
Array[Worker] workers,
|
|
135
|
+
Queue queue
|
|
136
|
+
) -> void
|
|
137
|
+
|
|
138
|
+
def self.async_finalize_all: (
|
|
139
|
+
Array[Worker] workers,
|
|
140
|
+
Queue queue
|
|
141
|
+
) -> void
|
|
142
|
+
|
|
143
|
+
def async_validate: (Queue queue) -> void
|
|
144
|
+
|
|
145
|
+
def async_complete_activity_task: (String proto, Queue queue) -> void
|
|
146
|
+
|
|
147
|
+
def async_complete_workflow_activation: (String run_id, String proto, Queue queue) -> void
|
|
148
|
+
|
|
149
|
+
def record_activity_heartbeat: (String proto) -> void
|
|
150
|
+
|
|
151
|
+
def replace_client: (Client client) -> void
|
|
152
|
+
|
|
153
|
+
def initiate_shutdown: -> void
|
|
154
|
+
|
|
155
|
+
class WorkerDeploymentVersion
|
|
156
|
+
attr_accessor deployment_name: String
|
|
157
|
+
attr_accessor build_id: String
|
|
158
|
+
|
|
159
|
+
def initialize: (
|
|
160
|
+
deployment_name: String,
|
|
161
|
+
build_id: String
|
|
162
|
+
) -> void
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
class DeploymentOptions
|
|
166
|
+
attr_accessor version: WorkerDeploymentVersion
|
|
167
|
+
attr_accessor use_worker_versioning: bool
|
|
168
|
+
attr_accessor default_versioning_behavior: Integer
|
|
169
|
+
|
|
170
|
+
def initialize: (
|
|
171
|
+
version: WorkerDeploymentVersion,
|
|
172
|
+
use_worker_versioning: bool,
|
|
173
|
+
default_versioning_behavior: Integer
|
|
174
|
+
) -> void
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
class PollerBehaviorSimpleMaximum
|
|
178
|
+
attr_accessor simple_maximum: Integer
|
|
179
|
+
|
|
180
|
+
def initialize: (simple_maximum: Integer) -> void
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
class PollerBehaviorAutoscaling
|
|
184
|
+
attr_accessor minimum: Integer
|
|
185
|
+
attr_accessor maximum: Integer
|
|
186
|
+
attr_accessor initial: Integer
|
|
187
|
+
|
|
188
|
+
def initialize: (minimum: Integer, maximum: Integer, initial: Integer) -> void
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class WorkflowReplayer
|
|
192
|
+
def self.new: (Runtime runtime, Options options) -> [WorkflowReplayer, Worker]
|
|
193
|
+
|
|
194
|
+
def push_history: (String workflow_id, String proto) -> void
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Bridge
|
|
4
|
+
# Whether the bridge was compiled with the FIPS-mode crypto backend. Defined in Rust.
|
|
5
|
+
FIPS: bool
|
|
6
|
+
|
|
7
|
+
def self.assert_fiber_compatibility!: -> void
|
|
8
|
+
def self.assert_fips_compatibility!: -> void
|
|
9
|
+
def self.fibers_supported: -> bool
|
|
10
|
+
|
|
11
|
+
module EnvConfig
|
|
12
|
+
def self.load_client_connect_config: (
|
|
13
|
+
String? profile,
|
|
14
|
+
String? path,
|
|
15
|
+
String? data,
|
|
16
|
+
bool disable_file,
|
|
17
|
+
bool disable_env,
|
|
18
|
+
bool config_file_strict,
|
|
19
|
+
Hash[String, String]? override_env_vars
|
|
20
|
+
) -> Hash[Symbol, untyped]
|
|
21
|
+
|
|
22
|
+
def self.load_client_config: (
|
|
23
|
+
String? path,
|
|
24
|
+
String? data,
|
|
25
|
+
bool config_file_strict,
|
|
26
|
+
Hash[String, String]? override_env_vars
|
|
27
|
+
) -> Hash[String, Hash[Symbol, untyped]]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Defined in Rust
|
|
31
|
+
|
|
32
|
+
class Error < StandardError
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Client
|
|
4
|
+
class Implementation < Temporalio::Client::Interceptor::Outbound
|
|
5
|
+
STANDALONE_ACTIVITY_RESOURCE_ID_PREFIX: String
|
|
6
|
+
|
|
7
|
+
def self._activity_id_reference_request_fields: (Temporalio::Client::ActivityIDReference ref) -> Hash[Symbol, String?]
|
|
8
|
+
|
|
9
|
+
def self.with_default_rpc_options: (Temporalio::Client::RPCOptions? user_rpc_options) -> Temporalio::Client::RPCOptions
|
|
10
|
+
|
|
11
|
+
def initialize: (Temporalio::Client client) -> void
|
|
12
|
+
|
|
13
|
+
def _start_workflow_request_from_with_start_options: (
|
|
14
|
+
untyped klass, Temporalio::Client::WithStartWorkflowOperation::Options start_options
|
|
15
|
+
) -> untyped
|
|
16
|
+
|
|
17
|
+
def start_activity: (Temporalio::Client::Interceptor::StartActivityInput input) -> Temporalio::Client::ActivityHandle
|
|
18
|
+
|
|
19
|
+
def describe_activity: (Temporalio::Client::Interceptor::DescribeActivityInput input) -> Temporalio::Client::ActivityExecution::Description
|
|
20
|
+
|
|
21
|
+
def cancel_activity: (Temporalio::Client::Interceptor::CancelActivityInput input) -> void
|
|
22
|
+
|
|
23
|
+
def terminate_activity: (Temporalio::Client::Interceptor::TerminateActivityInput input) -> void
|
|
24
|
+
|
|
25
|
+
def list_activities: (Temporalio::Client::Interceptor::ListActivitiesInput input) -> Enumerator[Temporalio::Client::ActivityExecution, Temporalio::Client::ActivityExecution]
|
|
26
|
+
|
|
27
|
+
def count_activities: (Temporalio::Client::Interceptor::CountActivitiesInput input) -> Temporalio::Client::ActivityExecutionCount
|
|
28
|
+
|
|
29
|
+
def fetch_activity_outcome: (Temporalio::Client::Interceptor::FetchActivityOutcomeInput input) -> Temporalio::Api::Activity::V1::ActivityExecutionOutcome?
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
class Metric < Temporalio::Metric
|
|
4
|
+
def initialize: (
|
|
5
|
+
metric_type: (:counter | :histogram | :gauge),
|
|
6
|
+
name: String,
|
|
7
|
+
description: String?,
|
|
8
|
+
unit: String?,
|
|
9
|
+
value_type: (:integer | :float | :duration),
|
|
10
|
+
bridge: Bridge::Metric,
|
|
11
|
+
bridge_attrs: Bridge::Metric::Attributes
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
class Meter < Temporalio::Metric::Meter
|
|
15
|
+
def self.create_from_runtime: (Runtime runtime) -> Meter?
|
|
16
|
+
|
|
17
|
+
def initialize: (Bridge::Metric::Meter bridge, Bridge::Metric::Attributes bridge_attrs) -> void
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class NullMeter < Temporalio::Metric::Meter
|
|
21
|
+
def self.instance: -> NullMeter
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
class NullMetric < Temporalio::Metric
|
|
25
|
+
def initialize: (
|
|
26
|
+
metric_type: (:counter | :histogram | :gauge),
|
|
27
|
+
name: String,
|
|
28
|
+
description: String?,
|
|
29
|
+
unit: String?,
|
|
30
|
+
value_type: (:integer | :float | :duration)
|
|
31
|
+
) -> void
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module ProtoUtils
|
|
4
|
+
def self.seconds_to_duration: (duration? seconds_numeric) -> Google::Protobuf::Duration?
|
|
5
|
+
|
|
6
|
+
def self.duration_to_seconds: (Google::Protobuf::Duration? duration) -> Float?
|
|
7
|
+
|
|
8
|
+
def self.time_to_timestamp: (Time? time) -> Google::Protobuf::Timestamp?
|
|
9
|
+
|
|
10
|
+
def self.timestamp_to_time: (Google::Protobuf::Timestamp? timestamp) -> Time?
|
|
11
|
+
|
|
12
|
+
def self.memo_to_proto: (
|
|
13
|
+
Hash[String | Symbol, Object?]? hash,
|
|
14
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
15
|
+
) -> Api::Common::V1::Memo?
|
|
16
|
+
|
|
17
|
+
def self.memo_to_proto_hash: (
|
|
18
|
+
Hash[String | Symbol, Object?]? hash,
|
|
19
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
20
|
+
) -> Hash[String, Api::Common::V1::Payload]?
|
|
21
|
+
|
|
22
|
+
def self.memo_from_proto: (
|
|
23
|
+
Api::Common::V1::Memo? memo,
|
|
24
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
25
|
+
) -> Hash[String, Object?]?
|
|
26
|
+
|
|
27
|
+
def self.headers_to_proto: (
|
|
28
|
+
Hash[String, Object?]? hash,
|
|
29
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
30
|
+
) -> Api::Common::V1::Header?
|
|
31
|
+
|
|
32
|
+
def self.headers_to_proto_hash: (
|
|
33
|
+
Hash[String, Object?]? hash,
|
|
34
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
35
|
+
) -> Hash[String, Api::Common::V1::Payload]?
|
|
36
|
+
|
|
37
|
+
def self.headers_from_proto: (
|
|
38
|
+
Api::Common::V1::Header? headers,
|
|
39
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
40
|
+
) -> Hash[String, Object?]?
|
|
41
|
+
|
|
42
|
+
def self.headers_from_proto_map: (
|
|
43
|
+
(Hash[String, Api::Common::V1::Payload] | Google::Protobuf::Map[String, Api::Common::V1::Payload])? headers,
|
|
44
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
45
|
+
) -> Hash[String, Object?]?
|
|
46
|
+
|
|
47
|
+
def self.string_or: (String? str, ?nil default) -> String?
|
|
48
|
+
| (String? str, String default) -> String
|
|
49
|
+
|
|
50
|
+
def self.enum_to_int: (untyped enum_mod, untyped enum_val, ?zero_means_nil: bool) -> Integer
|
|
51
|
+
|
|
52
|
+
def self.convert_from_payload_array: (
|
|
53
|
+
Converters::DataConverter | Converters::PayloadConverter converter,
|
|
54
|
+
Array[Api::Common::V1::Payload] | Google::Protobuf::RepeatedField payloads,
|
|
55
|
+
hints: Array[Object]?
|
|
56
|
+
) -> Array[Object?]
|
|
57
|
+
|
|
58
|
+
def self.convert_to_payload_array: (
|
|
59
|
+
Converters::DataConverter | Converters::PayloadConverter converter,
|
|
60
|
+
Array[Object?] values,
|
|
61
|
+
hints: Array[Object]?
|
|
62
|
+
) -> Array[Api::Common::V1::Payload]
|
|
63
|
+
|
|
64
|
+
def self.assert_non_reserved_name: (String | Symbol | nil name) -> void
|
|
65
|
+
def self.reserved_name?: (String | Symbol | nil name) -> bool
|
|
66
|
+
|
|
67
|
+
def self.to_user_metadata: (
|
|
68
|
+
String? summary,
|
|
69
|
+
String? details,
|
|
70
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
71
|
+
) -> Api::Sdk::V1::UserMetadata?
|
|
72
|
+
|
|
73
|
+
def self.from_user_metadata: (
|
|
74
|
+
Api::Sdk::V1::UserMetadata? metadata,
|
|
75
|
+
Converters::DataConverter | Converters::PayloadConverter converter
|
|
76
|
+
) -> [String?, String?]
|
|
77
|
+
|
|
78
|
+
class LazyMemo
|
|
79
|
+
def initialize: (
|
|
80
|
+
Api::Common::V1::Memo? raw_memo,
|
|
81
|
+
Converters::DataConverter | Converters::PayloadConverter converter,
|
|
82
|
+
) -> void
|
|
83
|
+
|
|
84
|
+
def get: -> Hash[String, Object?]?
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
class LazySearchAttributes
|
|
88
|
+
def initialize: (Api::Common::V1::SearchAttributes? raw_search_attributes) -> void
|
|
89
|
+
|
|
90
|
+
def get: -> SearchAttributes?
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class ActivityWorker
|
|
5
|
+
LOG_TASKS: bool
|
|
6
|
+
|
|
7
|
+
attr_reader worker: Temporalio::Worker
|
|
8
|
+
attr_reader bridge_worker: Bridge::Worker
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
worker: Temporalio::Worker,
|
|
12
|
+
bridge_worker: Bridge::Worker,
|
|
13
|
+
) -> void
|
|
14
|
+
|
|
15
|
+
def set_running_activity: (String task_token, RunningActivity? activity) -> void
|
|
16
|
+
def get_running_activity: (String task_token) -> RunningActivity?
|
|
17
|
+
def remove_running_activity: (String task_token) -> void
|
|
18
|
+
def wait_all_complete: -> void
|
|
19
|
+
|
|
20
|
+
def handle_task: (untyped task) -> void
|
|
21
|
+
def handle_start_task: (String task_token, untyped start) -> void
|
|
22
|
+
def handle_cancel_task: (String task_token, untyped cancel) -> void
|
|
23
|
+
|
|
24
|
+
def execute_activity: (String task_token, Activity::Definition::Info defn, untyped start) -> void
|
|
25
|
+
def run_activity: (
|
|
26
|
+
Activity::Definition::Info defn,
|
|
27
|
+
RunningActivity activity,
|
|
28
|
+
Temporalio::Worker::Interceptor::Activity::ExecuteInput input
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def assert_valid_activity: (String activity) -> void
|
|
32
|
+
|
|
33
|
+
class RunningActivity < Activity::Context
|
|
34
|
+
attr_reader _server_requested_cancel: bool
|
|
35
|
+
attr_accessor instance: Activity::Definition?
|
|
36
|
+
attr_accessor _outbound_impl: Temporalio::Worker::Interceptor::Activity::Outbound?
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
worker: Temporalio::Worker,
|
|
40
|
+
info: Activity::Info,
|
|
41
|
+
cancellation: Cancellation,
|
|
42
|
+
worker_shutdown_cancellation: Cancellation,
|
|
43
|
+
payload_converter: Converters::PayloadConverter,
|
|
44
|
+
logger: ScopedLogger,
|
|
45
|
+
runtime_metric_meter: Metric::Meter
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def _cancel: (
|
|
49
|
+
reason: String,
|
|
50
|
+
details: Activity::CancellationDetails
|
|
51
|
+
) -> void
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class InboundImplementation < Temporalio::Worker::Interceptor::Activity::Inbound
|
|
55
|
+
def initialize: (ActivityWorker worker) -> void
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class OutboundImplementation < Temporalio::Worker::Interceptor::Activity::Outbound
|
|
59
|
+
def initialize: (ActivityWorker worker, String task_token) -> void
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class MultiRunner
|
|
5
|
+
interface _Worker
|
|
6
|
+
def _bridge_worker: -> Bridge::Worker
|
|
7
|
+
def _initiate_shutdown: -> void
|
|
8
|
+
def _wait_all_complete: -> void
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def initialize: (workers: Array[_Worker], shutdown_signals: Array[String | Integer]) -> void
|
|
13
|
+
|
|
14
|
+
def apply_thread_or_fiber_block: ?{ (?) -> untyped } -> void
|
|
15
|
+
|
|
16
|
+
def apply_workflow_activation_decoded: (
|
|
17
|
+
workflow_worker: WorkflowWorker,
|
|
18
|
+
activation: untyped
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def apply_workflow_activation_complete: (
|
|
22
|
+
workflow_worker: WorkflowWorker,
|
|
23
|
+
activation_completion: untyped,
|
|
24
|
+
encoded: bool
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def raise_in_thread_or_fiber_block: (Exception error) -> void
|
|
28
|
+
|
|
29
|
+
def initiate_shutdown: -> void
|
|
30
|
+
|
|
31
|
+
def wait_complete_and_finalize_shutdown: -> void
|
|
32
|
+
|
|
33
|
+
def next_event: -> Event
|
|
34
|
+
|
|
35
|
+
class Event
|
|
36
|
+
class PollSuccess < Event
|
|
37
|
+
attr_reader worker: _Worker
|
|
38
|
+
attr_reader worker_type: Symbol
|
|
39
|
+
attr_reader bytes: String
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
worker: _Worker,
|
|
43
|
+
worker_type: Symbol,
|
|
44
|
+
bytes: String
|
|
45
|
+
) -> void
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
class WorkflowActivationDecoded < Event
|
|
49
|
+
attr_reader workflow_worker: WorkflowWorker
|
|
50
|
+
attr_reader activation: untyped
|
|
51
|
+
|
|
52
|
+
def initialize: (
|
|
53
|
+
workflow_worker: WorkflowWorker,
|
|
54
|
+
activation: untyped
|
|
55
|
+
) -> void
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class WorkflowActivationComplete < Event
|
|
59
|
+
attr_reader workflow_worker: WorkflowWorker
|
|
60
|
+
attr_reader activation_completion: untyped
|
|
61
|
+
attr_reader encoded: bool
|
|
62
|
+
attr_reader completion_complete_queue: Queue
|
|
63
|
+
|
|
64
|
+
def initialize: (
|
|
65
|
+
workflow_worker: WorkflowWorker,
|
|
66
|
+
activation_completion: untyped,
|
|
67
|
+
encoded: bool,
|
|
68
|
+
completion_complete_queue: Queue
|
|
69
|
+
) -> void
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class WorkflowActivationCompletionComplete < Event
|
|
73
|
+
attr_reader run_id: String
|
|
74
|
+
attr_reader error: Exception
|
|
75
|
+
|
|
76
|
+
def initialize: (
|
|
77
|
+
run_id: String,
|
|
78
|
+
error: Exception
|
|
79
|
+
) -> void
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
class PollFailure < Event
|
|
83
|
+
attr_reader worker: _Worker
|
|
84
|
+
attr_reader worker_type: Symbol
|
|
85
|
+
attr_reader error: Exception
|
|
86
|
+
|
|
87
|
+
def initialize: (
|
|
88
|
+
worker: _Worker,
|
|
89
|
+
worker_type: Symbol,
|
|
90
|
+
error: Exception
|
|
91
|
+
) -> void
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
class PollerShutDown < Event
|
|
95
|
+
attr_reader worker: _Worker
|
|
96
|
+
attr_reader worker_type: Symbol
|
|
97
|
+
|
|
98
|
+
def initialize: (
|
|
99
|
+
worker: _Worker,
|
|
100
|
+
worker_type: Symbol
|
|
101
|
+
) -> void
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
class AllPollersShutDown < Event
|
|
105
|
+
def self.instance: -> AllPollersShutDown
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
class BlockSuccess < Event
|
|
109
|
+
attr_reader result: Object?
|
|
110
|
+
|
|
111
|
+
def initialize: (result: Object?) -> void
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class BlockFailure < Event
|
|
115
|
+
attr_reader error: Exception
|
|
116
|
+
|
|
117
|
+
def initialize: (error: Exception) -> void
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
class ShutdownSignalReceived < Event
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
class InjectEventForTesting < Temporalio::Error
|
|
125
|
+
attr_reader event: Event
|
|
126
|
+
|
|
127
|
+
def initialize: (Event event) -> void
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class ChildWorkflowHandle < Workflow::ChildWorkflowHandle
|
|
6
|
+
def initialize: (
|
|
7
|
+
id: String,
|
|
8
|
+
first_execution_run_id: String,
|
|
9
|
+
instance: WorkflowInstance,
|
|
10
|
+
cancellation: Cancellation,
|
|
11
|
+
cancel_callback_key: Object,
|
|
12
|
+
result_hint: Object?
|
|
13
|
+
) -> void
|
|
14
|
+
|
|
15
|
+
def _resolve: (
|
|
16
|
+
Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult resolution
|
|
17
|
+
) -> void
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|