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,172 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class Context
|
|
6
|
+
def initialize: (WorkflowInstance `instance`) -> void
|
|
7
|
+
|
|
8
|
+
def all_handlers_finished?: -> bool
|
|
9
|
+
|
|
10
|
+
def cancellation: -> Cancellation
|
|
11
|
+
|
|
12
|
+
def continue_as_new_suggested: -> bool
|
|
13
|
+
|
|
14
|
+
def create_nexus_client: (endpoint: Symbol | String, service: Symbol | String) -> Workflow::NexusClient
|
|
15
|
+
|
|
16
|
+
def suggest_continue_as_new_reasons: -> Array[SuggestContinueAsNewReason::enum]
|
|
17
|
+
|
|
18
|
+
def target_worker_deployment_version_changed?: -> bool
|
|
19
|
+
|
|
20
|
+
def current_details: -> String
|
|
21
|
+
def current_details=: (String? details) -> void
|
|
22
|
+
|
|
23
|
+
def current_history_length: -> Integer
|
|
24
|
+
|
|
25
|
+
def current_history_size: -> Integer
|
|
26
|
+
|
|
27
|
+
def current_deployment_version: -> WorkerDeploymentVersion?
|
|
28
|
+
|
|
29
|
+
def current_update_info: -> Workflow::UpdateInfo?
|
|
30
|
+
|
|
31
|
+
def deprecate_patch: (Symbol | String patch_id) -> void
|
|
32
|
+
|
|
33
|
+
def durable_scheduler_disabled: [T] { -> T } -> T
|
|
34
|
+
|
|
35
|
+
def execute_activity: (
|
|
36
|
+
singleton(Activity::Definition) | Symbol | String activity,
|
|
37
|
+
*Object? args,
|
|
38
|
+
task_queue: String,
|
|
39
|
+
summary: String?,
|
|
40
|
+
schedule_to_close_timeout: duration?,
|
|
41
|
+
schedule_to_start_timeout: duration?,
|
|
42
|
+
start_to_close_timeout: duration?,
|
|
43
|
+
heartbeat_timeout: duration?,
|
|
44
|
+
retry_policy: RetryPolicy?,
|
|
45
|
+
cancellation: Cancellation,
|
|
46
|
+
cancellation_type: Workflow::ActivityCancellationType::enum,
|
|
47
|
+
activity_id: String?,
|
|
48
|
+
disable_eager_execution: bool,
|
|
49
|
+
priority: Priority,
|
|
50
|
+
arg_hints: Array[Object]?,
|
|
51
|
+
result_hint: Object?
|
|
52
|
+
) -> Object?
|
|
53
|
+
|
|
54
|
+
def execute_local_activity: (
|
|
55
|
+
singleton(Activity::Definition) | Symbol | String activity,
|
|
56
|
+
*Object? args,
|
|
57
|
+
summary: String?,
|
|
58
|
+
schedule_to_close_timeout: duration?,
|
|
59
|
+
schedule_to_start_timeout: duration?,
|
|
60
|
+
start_to_close_timeout: duration?,
|
|
61
|
+
retry_policy: RetryPolicy?,
|
|
62
|
+
local_retry_threshold: duration?,
|
|
63
|
+
cancellation: Cancellation,
|
|
64
|
+
cancellation_type: Workflow::ActivityCancellationType::enum,
|
|
65
|
+
activity_id: String?,
|
|
66
|
+
arg_hints: Array[Object]?,
|
|
67
|
+
result_hint: Object?
|
|
68
|
+
) -> Object?
|
|
69
|
+
|
|
70
|
+
def external_workflow_handle: (String workflow_id, ?run_id: String?) -> ExternalWorkflowHandle
|
|
71
|
+
|
|
72
|
+
def illegal_call_tracing_disabled: [T] { -> T } -> T
|
|
73
|
+
|
|
74
|
+
def info: -> Workflow::Info
|
|
75
|
+
|
|
76
|
+
def instance: -> Temporalio::Workflow::Definition?
|
|
77
|
+
|
|
78
|
+
def initialize_continue_as_new_error: (Workflow::ContinueAsNewError error) -> void
|
|
79
|
+
|
|
80
|
+
def io_enabled: [T] { -> T } -> T
|
|
81
|
+
|
|
82
|
+
def logger: -> ReplaySafeLogger
|
|
83
|
+
|
|
84
|
+
def memo: -> ExternallyImmutableHash[String, Object?]
|
|
85
|
+
|
|
86
|
+
def metric_meter: -> Temporalio::Metric::Meter
|
|
87
|
+
|
|
88
|
+
def now: -> Time
|
|
89
|
+
|
|
90
|
+
def patched: (Symbol | String patch_id) -> bool
|
|
91
|
+
|
|
92
|
+
def payload_converter: -> Converters::PayloadConverter
|
|
93
|
+
|
|
94
|
+
def query_handlers: -> HandlerHash[Workflow::Definition::Query]
|
|
95
|
+
|
|
96
|
+
def random: -> Random
|
|
97
|
+
|
|
98
|
+
def replaying?: -> bool
|
|
99
|
+
|
|
100
|
+
def replaying_history_events?: -> bool
|
|
101
|
+
|
|
102
|
+
def search_attributes: -> SearchAttributes
|
|
103
|
+
|
|
104
|
+
def signal_handlers: -> HandlerHash[Workflow::Definition::Signal]
|
|
105
|
+
|
|
106
|
+
def sleep: (duration? duration, summary: String?, cancellation: Cancellation) -> void
|
|
107
|
+
|
|
108
|
+
def start_child_workflow: (
|
|
109
|
+
singleton(Workflow::Definition) | Workflow::Definition::Info | Symbol | String workflow,
|
|
110
|
+
*Object? args,
|
|
111
|
+
id: String,
|
|
112
|
+
task_queue: String,
|
|
113
|
+
static_summary: String?,
|
|
114
|
+
static_details: String?,
|
|
115
|
+
cancellation: Cancellation,
|
|
116
|
+
cancellation_type: Workflow::ChildWorkflowCancellationType::enum,
|
|
117
|
+
parent_close_policy: Workflow::ParentClosePolicy::enum,
|
|
118
|
+
execution_timeout: duration?,
|
|
119
|
+
run_timeout: duration?,
|
|
120
|
+
task_timeout: duration?,
|
|
121
|
+
id_reuse_policy: WorkflowIDReusePolicy::enum,
|
|
122
|
+
retry_policy: RetryPolicy?,
|
|
123
|
+
cron_schedule: String?,
|
|
124
|
+
memo: Hash[String | Symbol, Object?]?,
|
|
125
|
+
search_attributes: SearchAttributes?,
|
|
126
|
+
priority: Priority,
|
|
127
|
+
arg_hints: Array[Object]?,
|
|
128
|
+
result_hint: Object?
|
|
129
|
+
) -> ChildWorkflowHandle
|
|
130
|
+
|
|
131
|
+
def storage: -> Hash[Object, Object]
|
|
132
|
+
|
|
133
|
+
def timeout: [T] (
|
|
134
|
+
duration? duration,
|
|
135
|
+
singleton(Exception) exception_class,
|
|
136
|
+
*Object? exception_args,
|
|
137
|
+
summary: String?
|
|
138
|
+
) { -> T } -> T
|
|
139
|
+
|
|
140
|
+
def update_handlers: -> HandlerHash[Workflow::Definition::Update]
|
|
141
|
+
|
|
142
|
+
def upsert_memo: (Hash[Symbol | String, Object?] hash) -> void
|
|
143
|
+
|
|
144
|
+
def upsert_search_attributes: (*SearchAttributes::Update updates) -> void
|
|
145
|
+
|
|
146
|
+
def wait_condition: [T] (cancellation: Cancellation?) { -> T } -> T
|
|
147
|
+
|
|
148
|
+
def _cancel_external_workflow: (id: String, run_id: String?) -> void
|
|
149
|
+
|
|
150
|
+
def _outbound=: (Temporalio::Worker::Interceptor::Workflow::Outbound outbound) -> void
|
|
151
|
+
|
|
152
|
+
def _signal_child_workflow: (
|
|
153
|
+
id: String,
|
|
154
|
+
signal: Workflow::Definition::Signal | Symbol | String,
|
|
155
|
+
args: Array[Object?],
|
|
156
|
+
cancellation: Cancellation,
|
|
157
|
+
arg_hints: Array[Object]?
|
|
158
|
+
) -> void
|
|
159
|
+
|
|
160
|
+
def _signal_external_workflow: (
|
|
161
|
+
id: String,
|
|
162
|
+
run_id: String?,
|
|
163
|
+
signal: Workflow::Definition::Signal | Symbol | String,
|
|
164
|
+
args: Array[Object?],
|
|
165
|
+
cancellation: Cancellation,
|
|
166
|
+
arg_hints: Array[Object]?
|
|
167
|
+
) -> void
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class Details
|
|
6
|
+
attr_reader namespace: String
|
|
7
|
+
attr_reader task_queue: String
|
|
8
|
+
attr_reader definition: Workflow::Definition::Info
|
|
9
|
+
attr_reader initial_activation: untyped
|
|
10
|
+
attr_reader logger: Logger
|
|
11
|
+
attr_reader metric_meter: Temporalio::Metric::Meter
|
|
12
|
+
attr_reader payload_converter: Converters::PayloadConverter
|
|
13
|
+
attr_reader failure_converter: Converters::FailureConverter
|
|
14
|
+
attr_reader interceptors: Array[Temporalio::Worker::Interceptor::Workflow]
|
|
15
|
+
attr_reader disable_eager_activity_execution: bool
|
|
16
|
+
attr_reader illegal_calls: Hash[String, :all | Hash[Symbol, TrueClass | Temporalio::Worker::IllegalWorkflowCallValidator] | Temporalio::Worker::IllegalWorkflowCallValidator]
|
|
17
|
+
attr_reader workflow_failure_exception_types: Array[singleton(Exception)]
|
|
18
|
+
attr_reader unsafe_workflow_io_enabled: bool
|
|
19
|
+
attr_reader patch_activation_callback: Proc?
|
|
20
|
+
attr_reader assert_valid_local_activity: ^(String) -> void
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
namespace: String,
|
|
24
|
+
task_queue: String,
|
|
25
|
+
definition: Workflow::Definition::Info,
|
|
26
|
+
initial_activation: untyped,
|
|
27
|
+
logger: Logger,
|
|
28
|
+
metric_meter: Temporalio::Metric::Meter,
|
|
29
|
+
payload_converter: Converters::PayloadConverter,
|
|
30
|
+
failure_converter: Converters::FailureConverter,
|
|
31
|
+
interceptors: Array[Temporalio::Worker::Interceptor::Workflow],
|
|
32
|
+
disable_eager_activity_execution: bool,
|
|
33
|
+
illegal_calls: Hash[String, :all | Hash[Symbol, TrueClass | Temporalio::Worker::IllegalWorkflowCallValidator] | Temporalio::Worker::IllegalWorkflowCallValidator],
|
|
34
|
+
workflow_failure_exception_types: Array[singleton(Exception)],
|
|
35
|
+
unsafe_workflow_io_enabled: bool,
|
|
36
|
+
patch_activation_callback: Proc?,
|
|
37
|
+
assert_valid_local_activity: ^(String) -> void
|
|
38
|
+
) -> void
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class ExternalWorkflowHandle < Workflow::ExternalWorkflowHandle
|
|
6
|
+
def initialize: (
|
|
7
|
+
id: String,
|
|
8
|
+
run_id: String?,
|
|
9
|
+
instance: Object
|
|
10
|
+
) -> void
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class ExternallyImmutableHash[K, V] < Hash[K, V]
|
|
6
|
+
def initialize: (Hash[K, V] initial_hash) -> void
|
|
7
|
+
|
|
8
|
+
def _update: { (Hash[K, V]) -> void } -> void
|
|
9
|
+
|
|
10
|
+
def __getobj__: -> Hash[K, V]
|
|
11
|
+
def __setobj__: (Hash[K, V] value) -> void
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class HandlerExecution
|
|
6
|
+
attr_reader name: String
|
|
7
|
+
attr_reader update_id: String?
|
|
8
|
+
attr_reader unfinished_policy: Workflow::HandlerUnfinishedPolicy::enum
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
name: String,
|
|
12
|
+
update_id: String?,
|
|
13
|
+
unfinished_policy: Workflow::HandlerUnfinishedPolicy::enum
|
|
14
|
+
) -> void
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class HandlerHash[D] < Hash[String?, D]
|
|
6
|
+
def initialize: (
|
|
7
|
+
Hash[String?, D] initial_frozen_hash,
|
|
8
|
+
singleton(Workflow::Definition::Signal) | singleton(Workflow::Definition::Query) | singleton(Workflow::Definition::Update) definition_class,
|
|
9
|
+
) ?{ (D) -> void } -> void
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class IllegalCallTracer
|
|
6
|
+
def self.frozen_validated_illegal_calls: (
|
|
7
|
+
Hash[String, :all | Array[Symbol | Temporalio::Worker::IllegalWorkflowCallValidator] | Temporalio::Worker::IllegalWorkflowCallValidator] illegal_calls
|
|
8
|
+
) -> Hash[String, :all | Hash[Symbol, TrueClass | Temporalio::Worker::IllegalWorkflowCallValidator] | Temporalio::Worker::IllegalWorkflowCallValidator]
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
Hash[String, :all | Hash[Symbol, TrueClass | Temporalio::Worker::IllegalWorkflowCallValidator] | Temporalio::Worker::IllegalWorkflowCallValidator] illegal_calls
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def enable: [T] { -> T } -> T
|
|
15
|
+
def disable_temporarily: [T] { -> T } -> T
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class InboundImplementation < Temporalio::Worker::Interceptor::Workflow::Inbound
|
|
6
|
+
def initialize: (WorkflowInstance instance) -> void
|
|
7
|
+
|
|
8
|
+
def invoke_handler: (
|
|
9
|
+
String name,
|
|
10
|
+
Temporalio::Worker::Interceptor::Workflow::HandleSignalInput |
|
|
11
|
+
Temporalio::Worker::Interceptor::Workflow::HandleQueryInput |
|
|
12
|
+
Temporalio::Worker::Interceptor::Workflow::HandleUpdateInput input,
|
|
13
|
+
?to_invoke: Symbol | Proc | nil
|
|
14
|
+
) -> Object?
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class NexusClient < Workflow::NexusClient
|
|
6
|
+
attr_reader endpoint: String
|
|
7
|
+
attr_reader service: String
|
|
8
|
+
|
|
9
|
+
def initialize: (endpoint: Symbol | String, service: Symbol | String, outbound: untyped) -> void
|
|
10
|
+
|
|
11
|
+
def start_operation: (
|
|
12
|
+
Symbol | String operation,
|
|
13
|
+
Object? arg,
|
|
14
|
+
?schedule_to_close_timeout: duration?,
|
|
15
|
+
?cancellation_type: Workflow::NexusOperationCancellationType::enum,
|
|
16
|
+
?summary: String?,
|
|
17
|
+
?cancellation: Cancellation,
|
|
18
|
+
?arg_hint: Object?,
|
|
19
|
+
?result_hint: Object?
|
|
20
|
+
) -> Workflow::NexusOperationHandle
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class NexusOperationHandle < Workflow::NexusOperationHandle
|
|
6
|
+
def initialize: (
|
|
7
|
+
operation_token: String?,
|
|
8
|
+
instance: WorkflowInstance,
|
|
9
|
+
cancellation: Cancellation,
|
|
10
|
+
cancel_callback_key: Object,
|
|
11
|
+
result_hint: Object?
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def _resolve: (untyped resolution) -> void
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class OutboundImplementation < Temporalio::Worker::Interceptor::Workflow::Outbound
|
|
6
|
+
def initialize: (WorkflowInstance instance) -> void
|
|
7
|
+
|
|
8
|
+
def execute_activity_with_local_backoffs: (
|
|
9
|
+
local: bool,
|
|
10
|
+
cancellation: Cancellation,
|
|
11
|
+
result_hint: Object?
|
|
12
|
+
) { (untyped?) -> Integer } -> Object?
|
|
13
|
+
|
|
14
|
+
def execute_activity_once: (
|
|
15
|
+
local: bool,
|
|
16
|
+
cancellation: Cancellation,
|
|
17
|
+
last_local_backoff: untyped?,
|
|
18
|
+
result_hint: Object?
|
|
19
|
+
) { (untyped?) -> Integer } -> Object?
|
|
20
|
+
|
|
21
|
+
def _signal_external_workflow: (
|
|
22
|
+
id: String,
|
|
23
|
+
run_id: String?,
|
|
24
|
+
child: bool,
|
|
25
|
+
signal: Workflow::Definition::Signal | Symbol | String,
|
|
26
|
+
args: Array[Object?],
|
|
27
|
+
cancellation: Cancellation,
|
|
28
|
+
arg_hints: Array[Object]?,
|
|
29
|
+
headers: Hash[String, Object?]
|
|
30
|
+
) -> void
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class ReplaySafeLogger < ScopedLogger
|
|
6
|
+
def initialize: (
|
|
7
|
+
logger: Logger,
|
|
8
|
+
instance: WorkflowInstance
|
|
9
|
+
) -> void
|
|
10
|
+
|
|
11
|
+
def replay_safety_disabled: [T] { -> T } -> T
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class ReplaySafeMetric < Temporalio::Metric
|
|
6
|
+
def initialize: (Temporalio::Metric) -> void
|
|
7
|
+
|
|
8
|
+
class Meter < Temporalio::Metric::Meter
|
|
9
|
+
def initialize: (Temporalio::Metric::Meter) -> void
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
class Scheduler
|
|
6
|
+
def initialize: (WorkflowInstance instance) -> void
|
|
7
|
+
|
|
8
|
+
def context: -> Context
|
|
9
|
+
|
|
10
|
+
def run_until_all_yielded: -> void
|
|
11
|
+
|
|
12
|
+
def wait_condition: [T] (cancellation: Cancellation?) { -> T } -> T
|
|
13
|
+
|
|
14
|
+
def stack_trace: -> String
|
|
15
|
+
|
|
16
|
+
def block: (untyped blocker, ?duration? timeout) -> bool
|
|
17
|
+
|
|
18
|
+
def close: -> void
|
|
19
|
+
|
|
20
|
+
def fiber: { -> untyped } -> Fiber
|
|
21
|
+
|
|
22
|
+
def fiber_interrupt: (Fiber fiber, Exception exception) -> void
|
|
23
|
+
|
|
24
|
+
def io_wait: (IO io, Integer events, duration? timeout) -> Integer
|
|
25
|
+
|
|
26
|
+
def kernel_sleep: (?duration? duration) -> untyped
|
|
27
|
+
|
|
28
|
+
def process_wait: (Integer pid, Integer flags) -> bot
|
|
29
|
+
|
|
30
|
+
# Only needed to say block is required
|
|
31
|
+
def timeout_after: [T] (
|
|
32
|
+
duration? duration,
|
|
33
|
+
singleton(Exception) exception_class,
|
|
34
|
+
*Object? exception_args
|
|
35
|
+
) { -> T } -> T
|
|
36
|
+
|
|
37
|
+
def unblock: (untyped blocker, Fiber fiber) -> void
|
|
38
|
+
|
|
39
|
+
private
|
|
40
|
+
|
|
41
|
+
def thread_blocking_protobuf_mutex_wait?: (untyped blocker) -> bool
|
|
42
|
+
|
|
43
|
+
def wait_for_thread_blocking_fiber: -> bool
|
|
44
|
+
|
|
45
|
+
def synchronize_thread_blocking_fibers: [T] () { -> T } -> T
|
|
46
|
+
|
|
47
|
+
def with_workflow_scheduler_disabled: [T] () { -> T } -> T
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Internal
|
|
3
|
+
module Worker
|
|
4
|
+
class WorkflowInstance
|
|
5
|
+
def self.new_completion_with_failure: (
|
|
6
|
+
run_id: String,
|
|
7
|
+
error: Exception,
|
|
8
|
+
failure_converter: Converters::FailureConverter,
|
|
9
|
+
payload_converter: Converters::PayloadConverter
|
|
10
|
+
) -> untyped
|
|
11
|
+
|
|
12
|
+
attr_reader context: Context
|
|
13
|
+
attr_reader logger: ReplaySafeLogger
|
|
14
|
+
attr_reader info: Workflow::Info
|
|
15
|
+
attr_reader scheduler: Scheduler
|
|
16
|
+
attr_reader disable_eager_activity_execution: bool
|
|
17
|
+
attr_reader pending_activities: Hash[Integer, Fiber]
|
|
18
|
+
attr_reader pending_timers: Hash[Integer, Fiber]
|
|
19
|
+
attr_reader pending_child_workflow_starts: Hash[Integer, Fiber]
|
|
20
|
+
attr_reader pending_child_workflows: Hash[Integer, ChildWorkflowHandle]
|
|
21
|
+
attr_reader pending_nexus_operation_starts: Hash[Integer, Fiber]
|
|
22
|
+
attr_reader pending_nexus_operations: Hash[Integer, NexusOperationHandle]
|
|
23
|
+
attr_reader pending_external_signals: Hash[Integer, Fiber]
|
|
24
|
+
attr_reader pending_external_cancels: Hash[Integer, Fiber]
|
|
25
|
+
attr_reader in_progress_handlers: Array[HandlerExecution]
|
|
26
|
+
attr_reader payload_converter: Converters::PayloadConverter
|
|
27
|
+
attr_reader failure_converter: Converters::FailureConverter
|
|
28
|
+
attr_reader cancellation: Cancellation
|
|
29
|
+
attr_reader continue_as_new_suggested: bool
|
|
30
|
+
attr_reader suggest_continue_as_new_reasons: Array[SuggestContinueAsNewReason::enum]
|
|
31
|
+
attr_reader target_worker_deployment_version_changed: bool
|
|
32
|
+
attr_reader current_history_length: Integer
|
|
33
|
+
attr_reader current_history_size: Integer
|
|
34
|
+
attr_reader replaying: bool
|
|
35
|
+
attr_reader random: Random
|
|
36
|
+
attr_reader signal_handlers: Hash[String?, Workflow::Definition::Signal]
|
|
37
|
+
attr_reader query_handlers: Hash[String?, Workflow::Definition::Query]
|
|
38
|
+
attr_reader update_handlers: Hash[String?, Workflow::Definition::Update]
|
|
39
|
+
attr_reader context_frozen: bool
|
|
40
|
+
attr_reader assert_valid_local_activity: ^(String) -> void
|
|
41
|
+
attr_reader in_query_or_validator: bool
|
|
42
|
+
attr_reader random_disabled: bool
|
|
43
|
+
attr_reader patch_activation_callback: Proc?
|
|
44
|
+
|
|
45
|
+
attr_accessor io_enabled: bool
|
|
46
|
+
attr_accessor current_details: String?
|
|
47
|
+
|
|
48
|
+
def initialize: (Details details) -> void
|
|
49
|
+
|
|
50
|
+
def activate: (untyped activation) -> untyped
|
|
51
|
+
|
|
52
|
+
def add_command: (untyped command) -> void
|
|
53
|
+
|
|
54
|
+
def instance: -> Temporalio::Workflow::Definition
|
|
55
|
+
|
|
56
|
+
def search_attributes: -> SearchAttributes
|
|
57
|
+
|
|
58
|
+
def memo: -> ExternallyImmutableHash[String, Object?]
|
|
59
|
+
|
|
60
|
+
def now: -> Time
|
|
61
|
+
|
|
62
|
+
def illegal_call_tracing_disabled: [T] { -> T } -> T
|
|
63
|
+
|
|
64
|
+
def patch: (patch_id: Symbol | String, deprecated: bool) -> bool
|
|
65
|
+
|
|
66
|
+
def patch_activated?: (String patch_id) -> bool
|
|
67
|
+
|
|
68
|
+
def metric_meter: -> Temporalio::Metric::Meter
|
|
69
|
+
|
|
70
|
+
def create_instance: -> Temporalio::Workflow::Definition
|
|
71
|
+
|
|
72
|
+
def apply: (untyped job) -> void
|
|
73
|
+
|
|
74
|
+
def apply_signal: (untyped job) -> void
|
|
75
|
+
|
|
76
|
+
def apply_query: (untyped job) -> void
|
|
77
|
+
|
|
78
|
+
def apply_update: (untyped job) -> void
|
|
79
|
+
|
|
80
|
+
def run_workflow: -> void
|
|
81
|
+
|
|
82
|
+
def schedule: (?top_level: bool, ?handler_exec: HandlerExecution?) { -> untyped } -> Fiber
|
|
83
|
+
|
|
84
|
+
def on_top_level_exception: (Exception err) -> void
|
|
85
|
+
|
|
86
|
+
def failure_exception?: (Exception err) -> bool
|
|
87
|
+
|
|
88
|
+
def with_context_frozen: [T] (in_query_or_validator: bool, ?random_disabled: bool) { -> T } -> T
|
|
89
|
+
|
|
90
|
+
def convert_handler_args: (
|
|
91
|
+
payload_array: Array[untyped],
|
|
92
|
+
defn: Workflow::Definition::Signal | Workflow::Definition::Query | Workflow::Definition::Update
|
|
93
|
+
) -> Array[Object?]
|
|
94
|
+
|
|
95
|
+
def convert_args: (
|
|
96
|
+
payload_array: Array[untyped],
|
|
97
|
+
method_name: Symbol?,
|
|
98
|
+
raw_args: bool,
|
|
99
|
+
arg_hints: Array[Object]?,
|
|
100
|
+
?ignore_first_param: bool
|
|
101
|
+
) -> Array[Object?]
|
|
102
|
+
|
|
103
|
+
def workflow_metadata: -> untyped
|
|
104
|
+
|
|
105
|
+
def scoped_logger_info: -> Hash[Symbol, Object?]
|
|
106
|
+
|
|
107
|
+
def warn_on_any_unfinished_handlers: -> void
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|