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,1304 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# This RBS interface is provided for convenience, on a best-effort basis.
|
|
3
|
+
# The library is the definitive source for the API contract; if the RBS file
|
|
4
|
+
# and the library's behavior differ, the library behavior is authoritative.
|
|
5
|
+
# We welcome fixes to change the RBS file to match.
|
|
6
|
+
# source: temporal/sdk/core/workflow_activation/workflow_activation.proto
|
|
7
|
+
|
|
8
|
+
module Temporalio
|
|
9
|
+
module Internal
|
|
10
|
+
module Bridge
|
|
11
|
+
module Api
|
|
12
|
+
module WorkflowActivation
|
|
13
|
+
# An instruction to the lang sdk to run some workflow code, whether for the first time or from
|
|
14
|
+
# a cached state.
|
|
15
|
+
# ## Job ordering guarantees and semantics
|
|
16
|
+
# Core will, by default, order jobs within the activation as follows:
|
|
17
|
+
# 1. init workflow
|
|
18
|
+
# 2. patches
|
|
19
|
+
# 3. random-seed-updates
|
|
20
|
+
# 4. signals/updates
|
|
21
|
+
# 5. all others
|
|
22
|
+
# 6. local activity resolutions
|
|
23
|
+
# 7. queries
|
|
24
|
+
# 8. evictions
|
|
25
|
+
# This is because:
|
|
26
|
+
# * Patches are expected to apply to the entire activation
|
|
27
|
+
# * Signal and update handlers should be invoked before workflow routines are iterated. That is to
|
|
28
|
+
# say before the users' main workflow function and anything spawned by it is allowed to continue.
|
|
29
|
+
# * Local activities resolutions go after other normal jobs because while *not* replaying, they
|
|
30
|
+
# will always take longer than anything else that produces an immediate job (which is
|
|
31
|
+
# effectively instant). When *replaying* we need to scan ahead for LA markers so that we can
|
|
32
|
+
# resolve them in the same activation that they completed in when not replaying. However, doing
|
|
33
|
+
# so would, by default, put those resolutions *before* any other immediate jobs that happened
|
|
34
|
+
# in that same activation (prime example: cancelling not-wait-for-cancel activities). So, we do
|
|
35
|
+
# this to ensure the LA resolution happens after that cancel (or whatever else it may be) as it
|
|
36
|
+
# normally would have when executing.
|
|
37
|
+
# * Queries always go last (and, in fact, always come in their own activation)
|
|
38
|
+
# * Evictions also always come in their own activation
|
|
39
|
+
# Core does this reordering to ensure that langs observe jobs in the same order during replay as
|
|
40
|
+
# they would have during execution. However, in principle, this ordering is not necessary
|
|
41
|
+
# (excepting queries/evictions, which definitely must come last) if lang layers apply all jobs to
|
|
42
|
+
# state *first* (by resolving promises/futures, marking handlers to be invoked, etc as they iterate
|
|
43
|
+
# over the jobs) and then only *after* that is done, drive coroutines/threads/whatever. If
|
|
44
|
+
# execution works this way, then determinism is only impacted by the order routines are driven in
|
|
45
|
+
# (which must be stable based on lang implementation or convention), rather than the order jobs are
|
|
46
|
+
# processed.
|
|
47
|
+
# ## Evictions
|
|
48
|
+
# Evictions appear as an activations that contains only a `remove_from_cache` job. Such activations
|
|
49
|
+
# should not cause the workflow code to be invoked and may be responded to with an empty command
|
|
50
|
+
# list.
|
|
51
|
+
class WorkflowActivation < ::Google::Protobuf::AbstractMessage
|
|
52
|
+
|
|
53
|
+
# The id of the currently active run of the workflow. Also used as a cache key. There may
|
|
54
|
+
# only ever be one active workflow task (and hence activation) of a run at one time.
|
|
55
|
+
attr_reader run_id(): ::String
|
|
56
|
+
attr_writer run_id(): ::String | ::Symbol
|
|
57
|
+
def clear_run_id: () -> void
|
|
58
|
+
|
|
59
|
+
# The current time as understood by the workflow, which is set by workflow task started events
|
|
60
|
+
attr_reader timestamp(): ::Google::Protobuf::Timestamp?
|
|
61
|
+
attr_writer timestamp(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
62
|
+
def has_timestamp?: () -> bool
|
|
63
|
+
def clear_timestamp: () -> void
|
|
64
|
+
|
|
65
|
+
# Whether or not the activation is replaying past events
|
|
66
|
+
attr_accessor is_replaying(): bool
|
|
67
|
+
def clear_is_replaying: () -> void
|
|
68
|
+
|
|
69
|
+
# Current history length as determined by the event id of the most recently processed event.
|
|
70
|
+
# This ensures that the number is always deterministic
|
|
71
|
+
attr_reader history_length(): ::Integer
|
|
72
|
+
attr_writer history_length(): ::Integer | ::Float
|
|
73
|
+
def clear_history_length: () -> void
|
|
74
|
+
|
|
75
|
+
# The things to do upon activating the workflow
|
|
76
|
+
attr_accessor jobs(): ::Google::Protobuf::RepeatedField
|
|
77
|
+
def clear_jobs: () -> void
|
|
78
|
+
|
|
79
|
+
# Internal flags which are available for use by lang. If `is_replaying` is false, all
|
|
80
|
+
# internal flags may be used. This is not a delta - all previously used flags always
|
|
81
|
+
# appear since this representation is cheap.
|
|
82
|
+
attr_accessor available_internal_flags(): ::Google::Protobuf::RepeatedField
|
|
83
|
+
def clear_available_internal_flags: () -> void
|
|
84
|
+
|
|
85
|
+
# The history size in bytes as of the last WFT started event
|
|
86
|
+
attr_reader history_size_bytes(): ::Integer
|
|
87
|
+
attr_writer history_size_bytes(): ::Integer | ::Float
|
|
88
|
+
def clear_history_size_bytes: () -> void
|
|
89
|
+
|
|
90
|
+
# Set true if the most recent WFT started event had this suggestion
|
|
91
|
+
attr_accessor continue_as_new_suggested(): bool
|
|
92
|
+
def clear_continue_as_new_suggested: () -> void
|
|
93
|
+
|
|
94
|
+
# Set to the deployment version of the worker that processed this task,
|
|
95
|
+
# which may be empty. During replay this version may not equal the version
|
|
96
|
+
# of the replaying worker. If not replaying and this worker has a defined
|
|
97
|
+
# Deployment Version, it will equal that. It will also be empty for
|
|
98
|
+
# evict-only activations. The deployment name may be empty, but not the
|
|
99
|
+
# build id, if this worker was using the deprecated Build ID-only
|
|
100
|
+
# feature(s).
|
|
101
|
+
attr_accessor deployment_version_for_current_task(): ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion?
|
|
102
|
+
def has_deployment_version_for_current_task?: () -> bool
|
|
103
|
+
def clear_deployment_version_for_current_task: () -> void
|
|
104
|
+
|
|
105
|
+
# The last seen SDK version from the most recent WFT completed event
|
|
106
|
+
attr_reader last_sdk_version(): ::String
|
|
107
|
+
attr_writer last_sdk_version(): ::String | ::Symbol
|
|
108
|
+
def clear_last_sdk_version: () -> void
|
|
109
|
+
|
|
110
|
+
# Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
|
|
111
|
+
# For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
|
|
112
|
+
# of the previous run.
|
|
113
|
+
attr_accessor suggest_continue_as_new_reasons(): ::Google::Protobuf::RepeatedField
|
|
114
|
+
attr_reader suggest_continue_as_new_reasons_const(): ::Array[::Integer]
|
|
115
|
+
def clear_suggest_continue_as_new_reasons: () -> void
|
|
116
|
+
|
|
117
|
+
# True if Workflow's Target Worker Deployment Version is different from its Pinned Version and
|
|
118
|
+
# the workflow is Pinned.
|
|
119
|
+
# Experimental.
|
|
120
|
+
attr_accessor target_worker_deployment_version_changed(): bool
|
|
121
|
+
def clear_target_worker_deployment_version_changed: () -> void
|
|
122
|
+
|
|
123
|
+
type init_map = {
|
|
124
|
+
run_id: (::String | ::Symbol)?,
|
|
125
|
+
"run_id" => (::String | ::Symbol)?,
|
|
126
|
+
timestamp: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
127
|
+
"timestamp" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
128
|
+
is_replaying: bool?,
|
|
129
|
+
"is_replaying" => bool?,
|
|
130
|
+
history_length: (::Integer | ::Float)?,
|
|
131
|
+
"history_length" => (::Integer | ::Float)?,
|
|
132
|
+
jobs: ::Array[::Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob]?,
|
|
133
|
+
"jobs" => ::Array[::Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob]?,
|
|
134
|
+
available_internal_flags: ::Array[::Integer | ::Float]?,
|
|
135
|
+
"available_internal_flags" => ::Array[::Integer | ::Float]?,
|
|
136
|
+
history_size_bytes: (::Integer | ::Float)?,
|
|
137
|
+
"history_size_bytes" => (::Integer | ::Float)?,
|
|
138
|
+
continue_as_new_suggested: bool?,
|
|
139
|
+
"continue_as_new_suggested" => bool?,
|
|
140
|
+
deployment_version_for_current_task: (::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion | ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion::init_map)?,
|
|
141
|
+
"deployment_version_for_current_task" => (::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion | ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion::init_map)?,
|
|
142
|
+
last_sdk_version: (::String | ::Symbol)?,
|
|
143
|
+
"last_sdk_version" => (::String | ::Symbol)?,
|
|
144
|
+
suggest_continue_as_new_reasons: ::Array[::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::names | ::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::strings | ::Integer | ::Float]?,
|
|
145
|
+
"suggest_continue_as_new_reasons" => ::Array[::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::names | ::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::strings | ::Integer | ::Float]?,
|
|
146
|
+
target_worker_deployment_version_changed: bool?,
|
|
147
|
+
"target_worker_deployment_version_changed" => bool?,
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
def initialize: (?init_map initial_value) -> void
|
|
151
|
+
|
|
152
|
+
def []:
|
|
153
|
+
("run_id" name) -> ::String
|
|
154
|
+
| ("timestamp" name) -> ::Google::Protobuf::Timestamp?
|
|
155
|
+
| ("is_replaying" name) -> bool
|
|
156
|
+
| ("history_length" name) -> ::Integer
|
|
157
|
+
| ("jobs" name) -> ::Google::Protobuf::RepeatedField
|
|
158
|
+
| ("available_internal_flags" name) -> (::Google::Protobuf::RepeatedField)
|
|
159
|
+
| ("history_size_bytes" name) -> ::Integer
|
|
160
|
+
| ("continue_as_new_suggested" name) -> bool
|
|
161
|
+
| ("deployment_version_for_current_task" name) -> ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion?
|
|
162
|
+
| ("last_sdk_version" name) -> ::String
|
|
163
|
+
| ("suggest_continue_as_new_reasons" name) -> (::Google::Protobuf::RepeatedField)
|
|
164
|
+
| ("target_worker_deployment_version_changed" name) -> bool
|
|
165
|
+
|
|
166
|
+
def []=:
|
|
167
|
+
("run_id" name, (::String | ::Symbol) value) -> void
|
|
168
|
+
| ("timestamp" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
169
|
+
| ("is_replaying" name, bool value) -> void
|
|
170
|
+
| ("history_length" name, (::Integer | ::Float) value) -> void
|
|
171
|
+
| ("jobs" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
172
|
+
| ("available_internal_flags" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
173
|
+
| ("history_size_bytes" name, (::Integer | ::Float) value) -> void
|
|
174
|
+
| ("continue_as_new_suggested" name, bool value) -> void
|
|
175
|
+
| ("deployment_version_for_current_task" name, ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion? value) -> void
|
|
176
|
+
| ("last_sdk_version" name, (::String | ::Symbol) value) -> void
|
|
177
|
+
| ("suggest_continue_as_new_reasons" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
178
|
+
| ("target_worker_deployment_version_changed" name, bool value) -> void
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class WorkflowActivationJob < ::Google::Protobuf::AbstractMessage
|
|
182
|
+
|
|
183
|
+
# A workflow is starting, record all of the information from its start event
|
|
184
|
+
attr_accessor initialize_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow?
|
|
185
|
+
def has_initialize_workflow?: () -> bool
|
|
186
|
+
def clear_initialize_workflow: () -> void
|
|
187
|
+
|
|
188
|
+
# A timer has fired, allowing whatever was waiting on it (if anything) to proceed
|
|
189
|
+
attr_accessor fire_timer(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer?
|
|
190
|
+
def has_fire_timer?: () -> bool
|
|
191
|
+
def clear_fire_timer: () -> void
|
|
192
|
+
|
|
193
|
+
# Workflow was reset. The randomness seed must be updated.
|
|
194
|
+
attr_accessor update_random_seed(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed?
|
|
195
|
+
def has_update_random_seed?: () -> bool
|
|
196
|
+
def clear_update_random_seed: () -> void
|
|
197
|
+
|
|
198
|
+
# A request to query the workflow was received. It is guaranteed that queries (one or more)
|
|
199
|
+
# always come in their own activation after other mutating jobs.
|
|
200
|
+
attr_accessor query_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow?
|
|
201
|
+
def has_query_workflow?: () -> bool
|
|
202
|
+
def clear_query_workflow: () -> void
|
|
203
|
+
|
|
204
|
+
# A request to cancel the workflow was received.
|
|
205
|
+
attr_accessor cancel_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow?
|
|
206
|
+
def has_cancel_workflow?: () -> bool
|
|
207
|
+
def clear_cancel_workflow: () -> void
|
|
208
|
+
|
|
209
|
+
# A request to signal the workflow was received.
|
|
210
|
+
attr_accessor signal_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow?
|
|
211
|
+
def has_signal_workflow?: () -> bool
|
|
212
|
+
def clear_signal_workflow: () -> void
|
|
213
|
+
|
|
214
|
+
# An activity was resolved, result could be completed, failed or cancelled
|
|
215
|
+
attr_accessor resolve_activity(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity?
|
|
216
|
+
def has_resolve_activity?: () -> bool
|
|
217
|
+
def clear_resolve_activity: () -> void
|
|
218
|
+
|
|
219
|
+
# A patch marker has been detected and lang is being told that change exists. This
|
|
220
|
+
# job is strange in that it is sent pre-emptively to lang without any corresponding
|
|
221
|
+
# command being sent first.
|
|
222
|
+
attr_accessor notify_has_patch(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch?
|
|
223
|
+
def has_notify_has_patch?: () -> bool
|
|
224
|
+
def clear_notify_has_patch: () -> void
|
|
225
|
+
|
|
226
|
+
# A child workflow execution has started or failed to start
|
|
227
|
+
attr_accessor resolve_child_workflow_execution_start(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?
|
|
228
|
+
def has_resolve_child_workflow_execution_start?: () -> bool
|
|
229
|
+
def clear_resolve_child_workflow_execution_start: () -> void
|
|
230
|
+
|
|
231
|
+
# A child workflow was resolved, result could be completed or failed
|
|
232
|
+
attr_accessor resolve_child_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?
|
|
233
|
+
def has_resolve_child_workflow_execution?: () -> bool
|
|
234
|
+
def clear_resolve_child_workflow_execution: () -> void
|
|
235
|
+
|
|
236
|
+
# An attempt to signal an external workflow resolved
|
|
237
|
+
attr_accessor resolve_signal_external_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?
|
|
238
|
+
def has_resolve_signal_external_workflow?: () -> bool
|
|
239
|
+
def clear_resolve_signal_external_workflow: () -> void
|
|
240
|
+
|
|
241
|
+
# An attempt to cancel an external workflow resolved
|
|
242
|
+
attr_accessor resolve_request_cancel_external_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?
|
|
243
|
+
def has_resolve_request_cancel_external_workflow?: () -> bool
|
|
244
|
+
def clear_resolve_request_cancel_external_workflow: () -> void
|
|
245
|
+
|
|
246
|
+
# A request to handle a workflow update.
|
|
247
|
+
attr_accessor do_update(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate?
|
|
248
|
+
def has_do_update?: () -> bool
|
|
249
|
+
def clear_do_update: () -> void
|
|
250
|
+
|
|
251
|
+
# A nexus operation started.
|
|
252
|
+
attr_accessor resolve_nexus_operation_start(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart?
|
|
253
|
+
def has_resolve_nexus_operation_start?: () -> bool
|
|
254
|
+
def clear_resolve_nexus_operation_start: () -> void
|
|
255
|
+
|
|
256
|
+
# A nexus operation resolved.
|
|
257
|
+
attr_accessor resolve_nexus_operation(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation?
|
|
258
|
+
def has_resolve_nexus_operation?: () -> bool
|
|
259
|
+
def clear_resolve_nexus_operation: () -> void
|
|
260
|
+
|
|
261
|
+
# Remove the workflow identified by the [WorkflowActivation] containing this job from the
|
|
262
|
+
# cache after performing the activation. It is guaranteed that this will be the only job
|
|
263
|
+
# in the activation if present.
|
|
264
|
+
attr_accessor remove_from_cache(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache?
|
|
265
|
+
def has_remove_from_cache?: () -> bool
|
|
266
|
+
def clear_remove_from_cache: () -> void
|
|
267
|
+
|
|
268
|
+
attr_reader variant(): (::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache)?
|
|
269
|
+
def has_variant?: () -> bool
|
|
270
|
+
def clear_variant: () -> void
|
|
271
|
+
|
|
272
|
+
type init_map = {
|
|
273
|
+
initialize_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow::init_map)?,
|
|
274
|
+
"initialize_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow::init_map)?,
|
|
275
|
+
fire_timer: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer::init_map)?,
|
|
276
|
+
"fire_timer" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer::init_map)?,
|
|
277
|
+
update_random_seed: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed::init_map)?,
|
|
278
|
+
"update_random_seed" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed::init_map)?,
|
|
279
|
+
query_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow::init_map)?,
|
|
280
|
+
"query_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow::init_map)?,
|
|
281
|
+
cancel_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow::init_map)?,
|
|
282
|
+
"cancel_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow::init_map)?,
|
|
283
|
+
signal_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow::init_map)?,
|
|
284
|
+
"signal_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow::init_map)?,
|
|
285
|
+
resolve_activity: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity::init_map)?,
|
|
286
|
+
"resolve_activity" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity::init_map)?,
|
|
287
|
+
notify_has_patch: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch::init_map)?,
|
|
288
|
+
"notify_has_patch" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch::init_map)?,
|
|
289
|
+
resolve_child_workflow_execution_start: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::init_map)?,
|
|
290
|
+
"resolve_child_workflow_execution_start" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::init_map)?,
|
|
291
|
+
resolve_child_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::init_map)?,
|
|
292
|
+
"resolve_child_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::init_map)?,
|
|
293
|
+
resolve_signal_external_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::init_map)?,
|
|
294
|
+
"resolve_signal_external_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::init_map)?,
|
|
295
|
+
resolve_request_cancel_external_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::init_map)?,
|
|
296
|
+
"resolve_request_cancel_external_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::init_map)?,
|
|
297
|
+
do_update: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate::init_map)?,
|
|
298
|
+
"do_update" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate::init_map)?,
|
|
299
|
+
resolve_nexus_operation_start: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart::init_map)?,
|
|
300
|
+
"resolve_nexus_operation_start" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart::init_map)?,
|
|
301
|
+
resolve_nexus_operation: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation::init_map)?,
|
|
302
|
+
"resolve_nexus_operation" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation::init_map)?,
|
|
303
|
+
remove_from_cache: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::init_map)?,
|
|
304
|
+
"remove_from_cache" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::init_map)?,
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
def initialize: (?init_map initial_value) -> void
|
|
308
|
+
|
|
309
|
+
def []:
|
|
310
|
+
("initialize_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow?
|
|
311
|
+
| ("fire_timer" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer?
|
|
312
|
+
| ("update_random_seed" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed?
|
|
313
|
+
| ("query_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow?
|
|
314
|
+
| ("cancel_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow?
|
|
315
|
+
| ("signal_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow?
|
|
316
|
+
| ("resolve_activity" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity?
|
|
317
|
+
| ("notify_has_patch" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch?
|
|
318
|
+
| ("resolve_child_workflow_execution_start" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart?
|
|
319
|
+
| ("resolve_child_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution?
|
|
320
|
+
| ("resolve_signal_external_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow?
|
|
321
|
+
| ("resolve_request_cancel_external_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow?
|
|
322
|
+
| ("do_update" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate?
|
|
323
|
+
| ("resolve_nexus_operation_start" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart?
|
|
324
|
+
| ("resolve_nexus_operation" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation?
|
|
325
|
+
| ("remove_from_cache" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache?
|
|
326
|
+
|
|
327
|
+
def []=:
|
|
328
|
+
("initialize_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow? value) -> void
|
|
329
|
+
| ("fire_timer" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer? value) -> void
|
|
330
|
+
| ("update_random_seed" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed? value) -> void
|
|
331
|
+
| ("query_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow? value) -> void
|
|
332
|
+
| ("cancel_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow? value) -> void
|
|
333
|
+
| ("signal_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow? value) -> void
|
|
334
|
+
| ("resolve_activity" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity? value) -> void
|
|
335
|
+
| ("notify_has_patch" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch? value) -> void
|
|
336
|
+
| ("resolve_child_workflow_execution_start" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart? value) -> void
|
|
337
|
+
| ("resolve_child_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution? value) -> void
|
|
338
|
+
| ("resolve_signal_external_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow? value) -> void
|
|
339
|
+
| ("resolve_request_cancel_external_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow? value) -> void
|
|
340
|
+
| ("do_update" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate? value) -> void
|
|
341
|
+
| ("resolve_nexus_operation_start" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart? value) -> void
|
|
342
|
+
| ("resolve_nexus_operation" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation? value) -> void
|
|
343
|
+
| ("remove_from_cache" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache? value) -> void
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Initialize a new workflow
|
|
347
|
+
class InitializeWorkflow < ::Google::Protobuf::AbstractMessage
|
|
348
|
+
|
|
349
|
+
# The identifier the lang-specific sdk uses to execute workflow code
|
|
350
|
+
attr_reader workflow_type(): ::String
|
|
351
|
+
attr_writer workflow_type(): ::String | ::Symbol
|
|
352
|
+
def clear_workflow_type: () -> void
|
|
353
|
+
|
|
354
|
+
# The workflow id used on the temporal server
|
|
355
|
+
attr_reader workflow_id(): ::String
|
|
356
|
+
attr_writer workflow_id(): ::String | ::Symbol
|
|
357
|
+
def clear_workflow_id: () -> void
|
|
358
|
+
|
|
359
|
+
# Inputs to the workflow code
|
|
360
|
+
attr_accessor arguments(): ::Google::Protobuf::RepeatedField
|
|
361
|
+
def clear_arguments: () -> void
|
|
362
|
+
|
|
363
|
+
# The seed must be used to initialize the random generator used by SDK.
|
|
364
|
+
# RandomSeedUpdatedAttributes are used to deliver seed updates.
|
|
365
|
+
attr_reader randomness_seed(): ::Integer
|
|
366
|
+
attr_writer randomness_seed(): ::Integer | ::Float
|
|
367
|
+
def clear_randomness_seed: () -> void
|
|
368
|
+
|
|
369
|
+
# Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.
|
|
370
|
+
attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
|
|
371
|
+
def clear_headers: () -> void
|
|
372
|
+
|
|
373
|
+
# Identity of the client who requested this execution
|
|
374
|
+
attr_reader identity(): ::String
|
|
375
|
+
attr_writer identity(): ::String | ::Symbol
|
|
376
|
+
def clear_identity: () -> void
|
|
377
|
+
|
|
378
|
+
# If this workflow is a child, information about the parent
|
|
379
|
+
attr_accessor parent_workflow_info(): ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution?
|
|
380
|
+
def has_parent_workflow_info?: () -> bool
|
|
381
|
+
def clear_parent_workflow_info: () -> void
|
|
382
|
+
|
|
383
|
+
# Total workflow execution timeout including retries and continue as new.
|
|
384
|
+
attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration?
|
|
385
|
+
attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
386
|
+
def has_workflow_execution_timeout?: () -> bool
|
|
387
|
+
def clear_workflow_execution_timeout: () -> void
|
|
388
|
+
|
|
389
|
+
# Timeout of a single workflow run.
|
|
390
|
+
attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration?
|
|
391
|
+
attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
392
|
+
def has_workflow_run_timeout?: () -> bool
|
|
393
|
+
def clear_workflow_run_timeout: () -> void
|
|
394
|
+
|
|
395
|
+
# Timeout of a single workflow task.
|
|
396
|
+
attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration?
|
|
397
|
+
attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
398
|
+
def has_workflow_task_timeout?: () -> bool
|
|
399
|
+
def clear_workflow_task_timeout: () -> void
|
|
400
|
+
|
|
401
|
+
# Run id of the previous workflow which continued-as-new or retired or cron executed into this
|
|
402
|
+
# workflow, if any.
|
|
403
|
+
attr_reader continued_from_execution_run_id(): ::String
|
|
404
|
+
attr_writer continued_from_execution_run_id(): ::String | ::Symbol
|
|
405
|
+
def clear_continued_from_execution_run_id: () -> void
|
|
406
|
+
|
|
407
|
+
# If this workflow was a continuation, indicates the type of continuation.
|
|
408
|
+
attr_reader continued_initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer
|
|
409
|
+
attr_writer continued_initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float
|
|
410
|
+
attr_reader continued_initiator_const(): ::Integer
|
|
411
|
+
def clear_continued_initiator: () -> void
|
|
412
|
+
|
|
413
|
+
# If this workflow was a continuation and that continuation failed, the details of that.
|
|
414
|
+
attr_accessor continued_failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
415
|
+
def has_continued_failure?: () -> bool
|
|
416
|
+
def clear_continued_failure: () -> void
|
|
417
|
+
|
|
418
|
+
# If this workflow was a continuation and that continuation completed, the details of that.
|
|
419
|
+
attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads?
|
|
420
|
+
def has_last_completion_result?: () -> bool
|
|
421
|
+
def clear_last_completion_result: () -> void
|
|
422
|
+
|
|
423
|
+
# This is the very first run id the workflow ever had, following continuation chains.
|
|
424
|
+
attr_reader first_execution_run_id(): ::String
|
|
425
|
+
attr_writer first_execution_run_id(): ::String | ::Symbol
|
|
426
|
+
def clear_first_execution_run_id: () -> void
|
|
427
|
+
|
|
428
|
+
# This workflow's retry policy
|
|
429
|
+
attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy?
|
|
430
|
+
def has_retry_policy?: () -> bool
|
|
431
|
+
def clear_retry_policy: () -> void
|
|
432
|
+
|
|
433
|
+
# Starting at 1, the number of times we have tried to execute this workflow
|
|
434
|
+
attr_reader attempt(): ::Integer
|
|
435
|
+
attr_writer attempt(): ::Integer | ::Float
|
|
436
|
+
def clear_attempt: () -> void
|
|
437
|
+
|
|
438
|
+
# If this workflow runs on a cron schedule, it will appear here
|
|
439
|
+
attr_reader cron_schedule(): ::String
|
|
440
|
+
attr_writer cron_schedule(): ::String | ::Symbol
|
|
441
|
+
def clear_cron_schedule: () -> void
|
|
442
|
+
|
|
443
|
+
# The absolute time at which the workflow will be timed out.
|
|
444
|
+
# This is passed without change to the next run/retry of a workflow.
|
|
445
|
+
attr_reader workflow_execution_expiration_time(): ::Google::Protobuf::Timestamp?
|
|
446
|
+
attr_writer workflow_execution_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
447
|
+
def has_workflow_execution_expiration_time?: () -> bool
|
|
448
|
+
def clear_workflow_execution_expiration_time: () -> void
|
|
449
|
+
|
|
450
|
+
# For a cron workflow, this contains the amount of time between when this iteration of
|
|
451
|
+
# the cron workflow was scheduled and when it should run next per its cron_schedule.
|
|
452
|
+
attr_reader cron_schedule_to_schedule_interval(): ::Google::Protobuf::Duration?
|
|
453
|
+
attr_writer cron_schedule_to_schedule_interval(): (::Google::Protobuf::Duration | ::int)?
|
|
454
|
+
def has_cron_schedule_to_schedule_interval?: () -> bool
|
|
455
|
+
def clear_cron_schedule_to_schedule_interval: () -> void
|
|
456
|
+
|
|
457
|
+
# User-defined memo
|
|
458
|
+
attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo?
|
|
459
|
+
def has_memo?: () -> bool
|
|
460
|
+
def clear_memo: () -> void
|
|
461
|
+
|
|
462
|
+
# Search attributes created/updated when this workflow was started
|
|
463
|
+
attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
464
|
+
def has_search_attributes?: () -> bool
|
|
465
|
+
def clear_search_attributes: () -> void
|
|
466
|
+
|
|
467
|
+
# When the workflow execution started event was first written
|
|
468
|
+
attr_reader start_time(): ::Google::Protobuf::Timestamp?
|
|
469
|
+
attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
470
|
+
def has_start_time?: () -> bool
|
|
471
|
+
def clear_start_time: () -> void
|
|
472
|
+
|
|
473
|
+
# Contains information about the root workflow execution. It is possible for the namespace to
|
|
474
|
+
# be different than this workflow if using OSS and cross-namespace children, but this
|
|
475
|
+
# information is not retained. Users should take care to track it by other means in such
|
|
476
|
+
# situations.
|
|
477
|
+
# The root workflow execution is defined as follows:
|
|
478
|
+
# 1. A workflow without parent workflow is its own root workflow.
|
|
479
|
+
# 2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
|
|
480
|
+
# See field in WorkflowExecutionStarted for more detail.
|
|
481
|
+
attr_accessor root_workflow(): ::Temporalio::Api::Common::V1::WorkflowExecution?
|
|
482
|
+
def has_root_workflow?: () -> bool
|
|
483
|
+
def clear_root_workflow: () -> void
|
|
484
|
+
|
|
485
|
+
# Priority of this workflow execution
|
|
486
|
+
attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority?
|
|
487
|
+
def has_priority?: () -> bool
|
|
488
|
+
def clear_priority: () -> void
|
|
489
|
+
|
|
490
|
+
type init_map = {
|
|
491
|
+
workflow_type: (::String | ::Symbol)?,
|
|
492
|
+
"workflow_type" => (::String | ::Symbol)?,
|
|
493
|
+
workflow_id: (::String | ::Symbol)?,
|
|
494
|
+
"workflow_id" => (::String | ::Symbol)?,
|
|
495
|
+
arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
496
|
+
"arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
497
|
+
randomness_seed: (::Integer | ::Float)?,
|
|
498
|
+
"randomness_seed" => (::Integer | ::Float)?,
|
|
499
|
+
headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
500
|
+
"headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
501
|
+
identity: (::String | ::Symbol)?,
|
|
502
|
+
"identity" => (::String | ::Symbol)?,
|
|
503
|
+
parent_workflow_info: (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?,
|
|
504
|
+
"parent_workflow_info" => (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?,
|
|
505
|
+
workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
506
|
+
"workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
507
|
+
workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
508
|
+
"workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
509
|
+
workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
510
|
+
"workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
511
|
+
continued_from_execution_run_id: (::String | ::Symbol)?,
|
|
512
|
+
"continued_from_execution_run_id" => (::String | ::Symbol)?,
|
|
513
|
+
continued_initiator: (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?,
|
|
514
|
+
"continued_initiator" => (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?,
|
|
515
|
+
continued_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
516
|
+
"continued_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
517
|
+
last_completion_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
|
|
518
|
+
"last_completion_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
|
|
519
|
+
first_execution_run_id: (::String | ::Symbol)?,
|
|
520
|
+
"first_execution_run_id" => (::String | ::Symbol)?,
|
|
521
|
+
retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?,
|
|
522
|
+
"retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?,
|
|
523
|
+
attempt: (::Integer | ::Float)?,
|
|
524
|
+
"attempt" => (::Integer | ::Float)?,
|
|
525
|
+
cron_schedule: (::String | ::Symbol)?,
|
|
526
|
+
"cron_schedule" => (::String | ::Symbol)?,
|
|
527
|
+
workflow_execution_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
528
|
+
"workflow_execution_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
529
|
+
cron_schedule_to_schedule_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
530
|
+
"cron_schedule_to_schedule_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
531
|
+
memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
|
|
532
|
+
"memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?,
|
|
533
|
+
search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
|
|
534
|
+
"search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
|
|
535
|
+
start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
536
|
+
"start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
537
|
+
root_workflow: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
|
|
538
|
+
"root_workflow" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
|
|
539
|
+
priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
|
|
540
|
+
"priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?,
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
def initialize: (?init_map initial_value) -> void
|
|
544
|
+
|
|
545
|
+
def []:
|
|
546
|
+
("workflow_type" name) -> ::String
|
|
547
|
+
| ("workflow_id" name) -> ::String
|
|
548
|
+
| ("arguments" name) -> ::Google::Protobuf::RepeatedField
|
|
549
|
+
| ("randomness_seed" name) -> ::Integer
|
|
550
|
+
| ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
|
|
551
|
+
| ("identity" name) -> ::String
|
|
552
|
+
| ("parent_workflow_info" name) -> ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution?
|
|
553
|
+
| ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration?
|
|
554
|
+
| ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration?
|
|
555
|
+
| ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration?
|
|
556
|
+
| ("continued_from_execution_run_id" name) -> ::String
|
|
557
|
+
| ("continued_initiator" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer)
|
|
558
|
+
| ("continued_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
559
|
+
| ("last_completion_result" name) -> ::Temporalio::Api::Common::V1::Payloads?
|
|
560
|
+
| ("first_execution_run_id" name) -> ::String
|
|
561
|
+
| ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy?
|
|
562
|
+
| ("attempt" name) -> ::Integer
|
|
563
|
+
| ("cron_schedule" name) -> ::String
|
|
564
|
+
| ("workflow_execution_expiration_time" name) -> ::Google::Protobuf::Timestamp?
|
|
565
|
+
| ("cron_schedule_to_schedule_interval" name) -> ::Google::Protobuf::Duration?
|
|
566
|
+
| ("memo" name) -> ::Temporalio::Api::Common::V1::Memo?
|
|
567
|
+
| ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
568
|
+
| ("start_time" name) -> ::Google::Protobuf::Timestamp?
|
|
569
|
+
| ("root_workflow" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
|
|
570
|
+
| ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
|
|
571
|
+
|
|
572
|
+
def []=:
|
|
573
|
+
("workflow_type" name, (::String | ::Symbol) value) -> void
|
|
574
|
+
| ("workflow_id" name, (::String | ::Symbol) value) -> void
|
|
575
|
+
| ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
576
|
+
| ("randomness_seed" name, (::Integer | ::Float) value) -> void
|
|
577
|
+
| ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
|
|
578
|
+
| ("identity" name, (::String | ::Symbol) value) -> void
|
|
579
|
+
| ("parent_workflow_info" name, ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? value) -> void
|
|
580
|
+
| ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
581
|
+
| ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
582
|
+
| ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
583
|
+
| ("continued_from_execution_run_id" name, (::String | ::Symbol) value) -> void
|
|
584
|
+
| ("continued_initiator" name, (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float) value) -> void
|
|
585
|
+
| ("continued_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
586
|
+
| ("last_completion_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
|
|
587
|
+
| ("first_execution_run_id" name, (::String | ::Symbol) value) -> void
|
|
588
|
+
| ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void
|
|
589
|
+
| ("attempt" name, (::Integer | ::Float) value) -> void
|
|
590
|
+
| ("cron_schedule" name, (::String | ::Symbol) value) -> void
|
|
591
|
+
| ("workflow_execution_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
592
|
+
| ("cron_schedule_to_schedule_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
593
|
+
| ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void
|
|
594
|
+
| ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
|
|
595
|
+
| ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
596
|
+
| ("root_workflow" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
|
|
597
|
+
| ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
# Notify a workflow that a timer has fired
|
|
601
|
+
class FireTimer < ::Google::Protobuf::AbstractMessage
|
|
602
|
+
|
|
603
|
+
# Sequence number as provided by lang in the corresponding StartTimer command
|
|
604
|
+
attr_reader seq(): ::Integer
|
|
605
|
+
attr_writer seq(): ::Integer | ::Float
|
|
606
|
+
def clear_seq: () -> void
|
|
607
|
+
|
|
608
|
+
type init_map = {
|
|
609
|
+
seq: (::Integer | ::Float)?,
|
|
610
|
+
"seq" => (::Integer | ::Float)?,
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
def initialize: (?init_map initial_value) -> void
|
|
614
|
+
|
|
615
|
+
def []:
|
|
616
|
+
("seq" name) -> ::Integer
|
|
617
|
+
|
|
618
|
+
def []=:
|
|
619
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# Notify a workflow that an activity has been resolved
|
|
623
|
+
class ResolveActivity < ::Google::Protobuf::AbstractMessage
|
|
624
|
+
|
|
625
|
+
# Sequence number as provided by lang in the corresponding ScheduleActivity command
|
|
626
|
+
attr_reader seq(): ::Integer
|
|
627
|
+
attr_writer seq(): ::Integer | ::Float
|
|
628
|
+
def clear_seq: () -> void
|
|
629
|
+
|
|
630
|
+
attr_accessor result(): ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution?
|
|
631
|
+
def has_result?: () -> bool
|
|
632
|
+
def clear_result: () -> void
|
|
633
|
+
|
|
634
|
+
# Set to true if the resolution is for a local activity. This is used internally by Core and
|
|
635
|
+
# lang does not need to care about it.
|
|
636
|
+
attr_accessor is_local(): bool
|
|
637
|
+
def clear_is_local: () -> void
|
|
638
|
+
|
|
639
|
+
type init_map = {
|
|
640
|
+
seq: (::Integer | ::Float)?,
|
|
641
|
+
"seq" => (::Integer | ::Float)?,
|
|
642
|
+
result: (::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution | ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution::init_map)?,
|
|
643
|
+
"result" => (::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution | ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution::init_map)?,
|
|
644
|
+
is_local: bool?,
|
|
645
|
+
"is_local" => bool?,
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
def initialize: (?init_map initial_value) -> void
|
|
649
|
+
|
|
650
|
+
def []:
|
|
651
|
+
("seq" name) -> ::Integer
|
|
652
|
+
| ("result" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution?
|
|
653
|
+
| ("is_local" name) -> bool
|
|
654
|
+
|
|
655
|
+
def []=:
|
|
656
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
657
|
+
| ("result" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution? value) -> void
|
|
658
|
+
| ("is_local" name, bool value) -> void
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# Notify a workflow that a start child workflow execution request has succeeded, failed or was
|
|
662
|
+
# cancelled.
|
|
663
|
+
class ResolveChildWorkflowExecutionStart < ::Google::Protobuf::AbstractMessage
|
|
664
|
+
|
|
665
|
+
# Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
|
|
666
|
+
attr_reader seq(): ::Integer
|
|
667
|
+
attr_writer seq(): ::Integer | ::Float
|
|
668
|
+
def clear_seq: () -> void
|
|
669
|
+
|
|
670
|
+
attr_accessor succeeded(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?
|
|
671
|
+
def has_succeeded?: () -> bool
|
|
672
|
+
def clear_succeeded: () -> void
|
|
673
|
+
|
|
674
|
+
attr_accessor failed(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?
|
|
675
|
+
def has_failed?: () -> bool
|
|
676
|
+
def clear_failed: () -> void
|
|
677
|
+
|
|
678
|
+
attr_accessor cancelled(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?
|
|
679
|
+
def has_cancelled?: () -> bool
|
|
680
|
+
def clear_cancelled: () -> void
|
|
681
|
+
|
|
682
|
+
attr_reader status(): (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled)?
|
|
683
|
+
def has_status?: () -> bool
|
|
684
|
+
def clear_status: () -> void
|
|
685
|
+
|
|
686
|
+
type init_map = {
|
|
687
|
+
seq: (::Integer | ::Float)?,
|
|
688
|
+
"seq" => (::Integer | ::Float)?,
|
|
689
|
+
succeeded: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::init_map)?,
|
|
690
|
+
"succeeded" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::init_map)?,
|
|
691
|
+
failed: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::init_map)?,
|
|
692
|
+
"failed" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::init_map)?,
|
|
693
|
+
cancelled: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::init_map)?,
|
|
694
|
+
"cancelled" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::init_map)?,
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
def initialize: (?init_map initial_value) -> void
|
|
698
|
+
|
|
699
|
+
def []:
|
|
700
|
+
("seq" name) -> ::Integer
|
|
701
|
+
| ("succeeded" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess?
|
|
702
|
+
| ("failed" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure?
|
|
703
|
+
| ("cancelled" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled?
|
|
704
|
+
|
|
705
|
+
def []=:
|
|
706
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
707
|
+
| ("succeeded" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess? value) -> void
|
|
708
|
+
| ("failed" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure? value) -> void
|
|
709
|
+
| ("cancelled" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled? value) -> void
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
# Simply pass the run_id to lang
|
|
713
|
+
class ResolveChildWorkflowExecutionStartSuccess < ::Google::Protobuf::AbstractMessage
|
|
714
|
+
|
|
715
|
+
attr_reader run_id(): ::String
|
|
716
|
+
attr_writer run_id(): ::String | ::Symbol
|
|
717
|
+
def clear_run_id: () -> void
|
|
718
|
+
|
|
719
|
+
type init_map = {
|
|
720
|
+
run_id: (::String | ::Symbol)?,
|
|
721
|
+
"run_id" => (::String | ::Symbol)?,
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
def initialize: (?init_map initial_value) -> void
|
|
725
|
+
|
|
726
|
+
def []:
|
|
727
|
+
("run_id" name) -> ::String
|
|
728
|
+
|
|
729
|
+
def []=:
|
|
730
|
+
("run_id" name, (::String | ::Symbol) value) -> void
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Provide lang the cause of failure
|
|
734
|
+
class ResolveChildWorkflowExecutionStartFailure < ::Google::Protobuf::AbstractMessage
|
|
735
|
+
|
|
736
|
+
# Lang should have this information but it's more convenient to pass it back
|
|
737
|
+
# for error construction on the lang side.
|
|
738
|
+
attr_reader workflow_id(): ::String
|
|
739
|
+
attr_writer workflow_id(): ::String | ::Symbol
|
|
740
|
+
def clear_workflow_id: () -> void
|
|
741
|
+
|
|
742
|
+
attr_reader workflow_type(): ::String
|
|
743
|
+
attr_writer workflow_type(): ::String | ::Symbol
|
|
744
|
+
def clear_workflow_type: () -> void
|
|
745
|
+
|
|
746
|
+
attr_reader cause(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Integer
|
|
747
|
+
attr_writer cause(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float
|
|
748
|
+
attr_reader cause_const(): ::Integer
|
|
749
|
+
def clear_cause: () -> void
|
|
750
|
+
|
|
751
|
+
type init_map = {
|
|
752
|
+
workflow_id: (::String | ::Symbol)?,
|
|
753
|
+
"workflow_id" => (::String | ::Symbol)?,
|
|
754
|
+
workflow_type: (::String | ::Symbol)?,
|
|
755
|
+
"workflow_type" => (::String | ::Symbol)?,
|
|
756
|
+
cause: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?,
|
|
757
|
+
"cause" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?,
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
def initialize: (?init_map initial_value) -> void
|
|
761
|
+
|
|
762
|
+
def []:
|
|
763
|
+
("workflow_id" name) -> ::String
|
|
764
|
+
| ("workflow_type" name) -> ::String
|
|
765
|
+
| ("cause" name) -> (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Integer)
|
|
766
|
+
|
|
767
|
+
def []=:
|
|
768
|
+
("workflow_id" name, (::String | ::Symbol) value) -> void
|
|
769
|
+
| ("workflow_type" name, (::String | ::Symbol) value) -> void
|
|
770
|
+
| ("cause" name, (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float) value) -> void
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# `failure` should be ChildWorkflowFailure with cause set to CancelledFailure.
|
|
774
|
+
# The failure is constructed in core for lang's convenience.
|
|
775
|
+
class ResolveChildWorkflowExecutionStartCancelled < ::Google::Protobuf::AbstractMessage
|
|
776
|
+
|
|
777
|
+
attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
778
|
+
def has_failure?: () -> bool
|
|
779
|
+
def clear_failure: () -> void
|
|
780
|
+
|
|
781
|
+
type init_map = {
|
|
782
|
+
failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
783
|
+
"failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
def initialize: (?init_map initial_value) -> void
|
|
787
|
+
|
|
788
|
+
def []:
|
|
789
|
+
("failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
790
|
+
|
|
791
|
+
def []=:
|
|
792
|
+
("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
# Notify a workflow that a child workflow execution has been resolved
|
|
796
|
+
class ResolveChildWorkflowExecution < ::Google::Protobuf::AbstractMessage
|
|
797
|
+
|
|
798
|
+
# Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command
|
|
799
|
+
attr_reader seq(): ::Integer
|
|
800
|
+
attr_writer seq(): ::Integer | ::Float
|
|
801
|
+
def clear_seq: () -> void
|
|
802
|
+
|
|
803
|
+
attr_accessor result(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult?
|
|
804
|
+
def has_result?: () -> bool
|
|
805
|
+
def clear_result: () -> void
|
|
806
|
+
|
|
807
|
+
type init_map = {
|
|
808
|
+
seq: (::Integer | ::Float)?,
|
|
809
|
+
"seq" => (::Integer | ::Float)?,
|
|
810
|
+
result: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult::init_map)?,
|
|
811
|
+
"result" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult::init_map)?,
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
def initialize: (?init_map initial_value) -> void
|
|
815
|
+
|
|
816
|
+
def []:
|
|
817
|
+
("seq" name) -> ::Integer
|
|
818
|
+
| ("result" name) -> ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult?
|
|
819
|
+
|
|
820
|
+
def []=:
|
|
821
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
822
|
+
| ("result" name, ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult? value) -> void
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# Update the workflow's random seed
|
|
826
|
+
class UpdateRandomSeed < ::Google::Protobuf::AbstractMessage
|
|
827
|
+
|
|
828
|
+
attr_reader randomness_seed(): ::Integer
|
|
829
|
+
attr_writer randomness_seed(): ::Integer | ::Float
|
|
830
|
+
def clear_randomness_seed: () -> void
|
|
831
|
+
|
|
832
|
+
type init_map = {
|
|
833
|
+
randomness_seed: (::Integer | ::Float)?,
|
|
834
|
+
"randomness_seed" => (::Integer | ::Float)?,
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
def initialize: (?init_map initial_value) -> void
|
|
838
|
+
|
|
839
|
+
def []:
|
|
840
|
+
("randomness_seed" name) -> ::Integer
|
|
841
|
+
|
|
842
|
+
def []=:
|
|
843
|
+
("randomness_seed" name, (::Integer | ::Float) value) -> void
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
# Query a workflow
|
|
847
|
+
class QueryWorkflow < ::Google::Protobuf::AbstractMessage
|
|
848
|
+
|
|
849
|
+
# For PollWFTResp `query` field, this will be set to the special value `legacy`. For the
|
|
850
|
+
# `queries` field, the server provides a unique identifier. If it is a `legacy` query,
|
|
851
|
+
# lang cannot issue any commands in response other than to answer the query.
|
|
852
|
+
attr_reader query_id(): ::String
|
|
853
|
+
attr_writer query_id(): ::String | ::Symbol
|
|
854
|
+
def clear_query_id: () -> void
|
|
855
|
+
|
|
856
|
+
# The query's function/method/etc name
|
|
857
|
+
attr_reader query_type(): ::String
|
|
858
|
+
attr_writer query_type(): ::String | ::Symbol
|
|
859
|
+
def clear_query_type: () -> void
|
|
860
|
+
|
|
861
|
+
attr_accessor arguments(): ::Google::Protobuf::RepeatedField
|
|
862
|
+
def clear_arguments: () -> void
|
|
863
|
+
|
|
864
|
+
# Headers attached to the query
|
|
865
|
+
attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
|
|
866
|
+
def clear_headers: () -> void
|
|
867
|
+
|
|
868
|
+
type init_map = {
|
|
869
|
+
query_id: (::String | ::Symbol)?,
|
|
870
|
+
"query_id" => (::String | ::Symbol)?,
|
|
871
|
+
query_type: (::String | ::Symbol)?,
|
|
872
|
+
"query_type" => (::String | ::Symbol)?,
|
|
873
|
+
arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
874
|
+
"arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
875
|
+
headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
876
|
+
"headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
def initialize: (?init_map initial_value) -> void
|
|
880
|
+
|
|
881
|
+
def []:
|
|
882
|
+
("query_id" name) -> ::String
|
|
883
|
+
| ("query_type" name) -> ::String
|
|
884
|
+
| ("arguments" name) -> ::Google::Protobuf::RepeatedField
|
|
885
|
+
| ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
|
|
886
|
+
|
|
887
|
+
def []=:
|
|
888
|
+
("query_id" name, (::String | ::Symbol) value) -> void
|
|
889
|
+
| ("query_type" name, (::String | ::Symbol) value) -> void
|
|
890
|
+
| ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
891
|
+
| ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
# Cancel a running workflow
|
|
895
|
+
class CancelWorkflow < ::Google::Protobuf::AbstractMessage
|
|
896
|
+
|
|
897
|
+
# User-specified reason the cancel request was issued
|
|
898
|
+
attr_reader reason(): ::String
|
|
899
|
+
attr_writer reason(): ::String | ::Symbol
|
|
900
|
+
def clear_reason: () -> void
|
|
901
|
+
|
|
902
|
+
type init_map = {
|
|
903
|
+
reason: (::String | ::Symbol)?,
|
|
904
|
+
"reason" => (::String | ::Symbol)?,
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
def initialize: (?init_map initial_value) -> void
|
|
908
|
+
|
|
909
|
+
def []:
|
|
910
|
+
("reason" name) -> ::String
|
|
911
|
+
|
|
912
|
+
def []=:
|
|
913
|
+
("reason" name, (::String | ::Symbol) value) -> void
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# Send a signal to a workflow
|
|
917
|
+
class SignalWorkflow < ::Google::Protobuf::AbstractMessage
|
|
918
|
+
|
|
919
|
+
attr_reader signal_name(): ::String
|
|
920
|
+
attr_writer signal_name(): ::String | ::Symbol
|
|
921
|
+
def clear_signal_name: () -> void
|
|
922
|
+
|
|
923
|
+
attr_accessor input(): ::Google::Protobuf::RepeatedField
|
|
924
|
+
def clear_input: () -> void
|
|
925
|
+
|
|
926
|
+
# Identity of the sender of the signal
|
|
927
|
+
attr_reader identity(): ::String
|
|
928
|
+
attr_writer identity(): ::String | ::Symbol
|
|
929
|
+
def clear_identity: () -> void
|
|
930
|
+
|
|
931
|
+
# Headers attached to the signal
|
|
932
|
+
attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
|
|
933
|
+
def clear_headers: () -> void
|
|
934
|
+
|
|
935
|
+
type init_map = {
|
|
936
|
+
signal_name: (::String | ::Symbol)?,
|
|
937
|
+
"signal_name" => (::String | ::Symbol)?,
|
|
938
|
+
input: ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
939
|
+
"input" => ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
940
|
+
identity: (::String | ::Symbol)?,
|
|
941
|
+
"identity" => (::String | ::Symbol)?,
|
|
942
|
+
headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
943
|
+
"headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
def initialize: (?init_map initial_value) -> void
|
|
947
|
+
|
|
948
|
+
def []:
|
|
949
|
+
("signal_name" name) -> ::String
|
|
950
|
+
| ("input" name) -> ::Google::Protobuf::RepeatedField
|
|
951
|
+
| ("identity" name) -> ::String
|
|
952
|
+
| ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
|
|
953
|
+
|
|
954
|
+
def []=:
|
|
955
|
+
("signal_name" name, (::String | ::Symbol) value) -> void
|
|
956
|
+
| ("input" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
957
|
+
| ("identity" name, (::String | ::Symbol) value) -> void
|
|
958
|
+
| ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
# Inform lang what the result of a call to `patched` or similar API should be -- this is always
|
|
962
|
+
# sent pre-emptively, so any time it is sent the change is present
|
|
963
|
+
class NotifyHasPatch < ::Google::Protobuf::AbstractMessage
|
|
964
|
+
|
|
965
|
+
attr_reader patch_id(): ::String
|
|
966
|
+
attr_writer patch_id(): ::String | ::Symbol
|
|
967
|
+
def clear_patch_id: () -> void
|
|
968
|
+
|
|
969
|
+
type init_map = {
|
|
970
|
+
patch_id: (::String | ::Symbol)?,
|
|
971
|
+
"patch_id" => (::String | ::Symbol)?,
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
def initialize: (?init_map initial_value) -> void
|
|
975
|
+
|
|
976
|
+
def []:
|
|
977
|
+
("patch_id" name) -> ::String
|
|
978
|
+
|
|
979
|
+
def []=:
|
|
980
|
+
("patch_id" name, (::String | ::Symbol) value) -> void
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
class ResolveSignalExternalWorkflow < ::Google::Protobuf::AbstractMessage
|
|
984
|
+
|
|
985
|
+
# Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution
|
|
986
|
+
# command
|
|
987
|
+
attr_reader seq(): ::Integer
|
|
988
|
+
attr_writer seq(): ::Integer | ::Float
|
|
989
|
+
def clear_seq: () -> void
|
|
990
|
+
|
|
991
|
+
# If populated, this signal either failed to be sent or was cancelled depending on failure
|
|
992
|
+
# type / info.
|
|
993
|
+
attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
994
|
+
def has_failure?: () -> bool
|
|
995
|
+
def clear_failure: () -> void
|
|
996
|
+
|
|
997
|
+
type init_map = {
|
|
998
|
+
seq: (::Integer | ::Float)?,
|
|
999
|
+
"seq" => (::Integer | ::Float)?,
|
|
1000
|
+
failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1001
|
+
"failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
def initialize: (?init_map initial_value) -> void
|
|
1005
|
+
|
|
1006
|
+
def []:
|
|
1007
|
+
("seq" name) -> ::Integer
|
|
1008
|
+
| ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
1009
|
+
|
|
1010
|
+
def []=:
|
|
1011
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
1012
|
+
| ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
class ResolveRequestCancelExternalWorkflow < ::Google::Protobuf::AbstractMessage
|
|
1016
|
+
|
|
1017
|
+
# Sequence number as provided by lang in the corresponding
|
|
1018
|
+
# RequestCancelExternalWorkflowExecution command
|
|
1019
|
+
attr_reader seq(): ::Integer
|
|
1020
|
+
attr_writer seq(): ::Integer | ::Float
|
|
1021
|
+
def clear_seq: () -> void
|
|
1022
|
+
|
|
1023
|
+
# If populated, this signal either failed to be sent or was cancelled depending on failure
|
|
1024
|
+
# type / info.
|
|
1025
|
+
attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
1026
|
+
def has_failure?: () -> bool
|
|
1027
|
+
def clear_failure: () -> void
|
|
1028
|
+
|
|
1029
|
+
type init_map = {
|
|
1030
|
+
seq: (::Integer | ::Float)?,
|
|
1031
|
+
"seq" => (::Integer | ::Float)?,
|
|
1032
|
+
failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1033
|
+
"failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
def initialize: (?init_map initial_value) -> void
|
|
1037
|
+
|
|
1038
|
+
def []:
|
|
1039
|
+
("seq" name) -> ::Integer
|
|
1040
|
+
| ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
1041
|
+
|
|
1042
|
+
def []=:
|
|
1043
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
1044
|
+
| ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
1045
|
+
end
|
|
1046
|
+
|
|
1047
|
+
# Lang is requested to invoke an update handler on the workflow. Lang should invoke the update
|
|
1048
|
+
# validator first (if requested). If it accepts the update, immediately invoke the update handler.
|
|
1049
|
+
# Lang must reply to the activation containing this job with an `UpdateResponse`.
|
|
1050
|
+
class DoUpdate < ::Google::Protobuf::AbstractMessage
|
|
1051
|
+
|
|
1052
|
+
# A workflow-unique identifier for this update
|
|
1053
|
+
attr_reader id(): ::String
|
|
1054
|
+
attr_writer id(): ::String | ::Symbol
|
|
1055
|
+
def clear_id: () -> void
|
|
1056
|
+
|
|
1057
|
+
# The protocol message instance ID - this is used to uniquely track the ID server side and
|
|
1058
|
+
# internally.
|
|
1059
|
+
attr_reader protocol_instance_id(): ::String
|
|
1060
|
+
attr_writer protocol_instance_id(): ::String | ::Symbol
|
|
1061
|
+
def clear_protocol_instance_id: () -> void
|
|
1062
|
+
|
|
1063
|
+
# The name of the update handler
|
|
1064
|
+
attr_reader name(): ::String
|
|
1065
|
+
attr_writer name(): ::String | ::Symbol
|
|
1066
|
+
def clear_name: () -> void
|
|
1067
|
+
|
|
1068
|
+
# The input to the update
|
|
1069
|
+
attr_accessor input(): ::Google::Protobuf::RepeatedField
|
|
1070
|
+
def clear_input: () -> void
|
|
1071
|
+
|
|
1072
|
+
# Headers attached to the update
|
|
1073
|
+
attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]
|
|
1074
|
+
def clear_headers: () -> void
|
|
1075
|
+
|
|
1076
|
+
# Remaining metadata associated with the update. The `update_id` field is stripped from here
|
|
1077
|
+
# and moved to `id`, since it is guaranteed to be present.
|
|
1078
|
+
attr_accessor meta(): ::Temporalio::Api::Update::V1::Meta?
|
|
1079
|
+
def has_meta?: () -> bool
|
|
1080
|
+
def clear_meta: () -> void
|
|
1081
|
+
|
|
1082
|
+
# If set true, lang must run the update's validator before running the handler. This will be
|
|
1083
|
+
# set false during replay, since validation is not re-run during replay.
|
|
1084
|
+
attr_accessor run_validator(): bool
|
|
1085
|
+
def clear_run_validator: () -> void
|
|
1086
|
+
|
|
1087
|
+
type init_map = {
|
|
1088
|
+
id: (::String | ::Symbol)?,
|
|
1089
|
+
"id" => (::String | ::Symbol)?,
|
|
1090
|
+
protocol_instance_id: (::String | ::Symbol)?,
|
|
1091
|
+
"protocol_instance_id" => (::String | ::Symbol)?,
|
|
1092
|
+
name: (::String | ::Symbol)?,
|
|
1093
|
+
"name" => (::String | ::Symbol)?,
|
|
1094
|
+
input: ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
1095
|
+
"input" => ::Array[::Temporalio::Api::Common::V1::Payload]?,
|
|
1096
|
+
headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
1097
|
+
"headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?,
|
|
1098
|
+
meta: (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?,
|
|
1099
|
+
"meta" => (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?,
|
|
1100
|
+
run_validator: bool?,
|
|
1101
|
+
"run_validator" => bool?,
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
def initialize: (?init_map initial_value) -> void
|
|
1105
|
+
|
|
1106
|
+
def []:
|
|
1107
|
+
("id" name) -> ::String
|
|
1108
|
+
| ("protocol_instance_id" name) -> ::String
|
|
1109
|
+
| ("name" name) -> ::String
|
|
1110
|
+
| ("input" name) -> ::Google::Protobuf::RepeatedField
|
|
1111
|
+
| ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload])
|
|
1112
|
+
| ("meta" name) -> ::Temporalio::Api::Update::V1::Meta?
|
|
1113
|
+
| ("run_validator" name) -> bool
|
|
1114
|
+
|
|
1115
|
+
def []=:
|
|
1116
|
+
("id" name, (::String | ::Symbol) value) -> void
|
|
1117
|
+
| ("protocol_instance_id" name, (::String | ::Symbol) value) -> void
|
|
1118
|
+
| ("name" name, (::String | ::Symbol) value) -> void
|
|
1119
|
+
| ("input" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
1120
|
+
| ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void
|
|
1121
|
+
| ("meta" name, ::Temporalio::Api::Update::V1::Meta? value) -> void
|
|
1122
|
+
| ("run_validator" name, bool value) -> void
|
|
1123
|
+
end
|
|
1124
|
+
|
|
1125
|
+
class ResolveNexusOperationStart < ::Google::Protobuf::AbstractMessage
|
|
1126
|
+
|
|
1127
|
+
# Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
|
|
1128
|
+
attr_reader seq(): ::Integer
|
|
1129
|
+
attr_writer seq(): ::Integer | ::Float
|
|
1130
|
+
def clear_seq: () -> void
|
|
1131
|
+
|
|
1132
|
+
# The operation started asynchronously. Contains a token that can be used to perform
|
|
1133
|
+
# operations on the started operation by, ex, clients. A `ResolveNexusOperation` job will
|
|
1134
|
+
# follow at some point.
|
|
1135
|
+
attr_reader operation_token(): ::String
|
|
1136
|
+
attr_writer operation_token(): (::String | ::Symbol)?
|
|
1137
|
+
def has_operation_token?: () -> bool
|
|
1138
|
+
def clear_operation_token: () -> void
|
|
1139
|
+
|
|
1140
|
+
# If true the operation "started" but only because it's also already resolved. A
|
|
1141
|
+
# `ResolveNexusOperation` job will be in the same activation.
|
|
1142
|
+
attr_reader started_sync(): bool
|
|
1143
|
+
attr_writer started_sync(): bool?
|
|
1144
|
+
def has_started_sync?: () -> bool
|
|
1145
|
+
def clear_started_sync: () -> void
|
|
1146
|
+
|
|
1147
|
+
# The operation either failed to start, was cancelled before it started, timed out, or
|
|
1148
|
+
# failed synchronously. Details are included inside the message. In this case, the
|
|
1149
|
+
# subsequent ResolveNexusOperation will never be sent.
|
|
1150
|
+
attr_accessor failed(): ::Temporalio::Api::Failure::V1::Failure?
|
|
1151
|
+
def has_failed?: () -> bool
|
|
1152
|
+
def clear_failed: () -> void
|
|
1153
|
+
|
|
1154
|
+
attr_reader status(): (::String | bool | ::Temporalio::Api::Failure::V1::Failure)?
|
|
1155
|
+
def has_status?: () -> bool
|
|
1156
|
+
def clear_status: () -> void
|
|
1157
|
+
|
|
1158
|
+
type init_map = {
|
|
1159
|
+
seq: (::Integer | ::Float)?,
|
|
1160
|
+
"seq" => (::Integer | ::Float)?,
|
|
1161
|
+
operation_token: (::String | ::Symbol)?,
|
|
1162
|
+
"operation_token" => (::String | ::Symbol)?,
|
|
1163
|
+
started_sync: bool?,
|
|
1164
|
+
"started_sync" => bool?,
|
|
1165
|
+
failed: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1166
|
+
"failed" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
def initialize: (?init_map initial_value) -> void
|
|
1170
|
+
|
|
1171
|
+
def []:
|
|
1172
|
+
("seq" name) -> ::Integer
|
|
1173
|
+
| ("operation_token" name) -> ::String
|
|
1174
|
+
| ("started_sync" name) -> bool
|
|
1175
|
+
| ("failed" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
1176
|
+
|
|
1177
|
+
def []=:
|
|
1178
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
1179
|
+
| ("operation_token" name, ((::String | ::Symbol)?) value) -> void
|
|
1180
|
+
| ("started_sync" name, bool? value) -> void
|
|
1181
|
+
| ("failed" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
1182
|
+
end
|
|
1183
|
+
|
|
1184
|
+
class ResolveNexusOperation < ::Google::Protobuf::AbstractMessage
|
|
1185
|
+
|
|
1186
|
+
# Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
|
|
1187
|
+
attr_reader seq(): ::Integer
|
|
1188
|
+
attr_writer seq(): ::Integer | ::Float
|
|
1189
|
+
def clear_seq: () -> void
|
|
1190
|
+
|
|
1191
|
+
attr_accessor result(): ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult?
|
|
1192
|
+
def has_result?: () -> bool
|
|
1193
|
+
def clear_result: () -> void
|
|
1194
|
+
|
|
1195
|
+
type init_map = {
|
|
1196
|
+
seq: (::Integer | ::Float)?,
|
|
1197
|
+
"seq" => (::Integer | ::Float)?,
|
|
1198
|
+
result: (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult::init_map)?,
|
|
1199
|
+
"result" => (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult::init_map)?,
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
def initialize: (?init_map initial_value) -> void
|
|
1203
|
+
|
|
1204
|
+
def []:
|
|
1205
|
+
("seq" name) -> ::Integer
|
|
1206
|
+
| ("result" name) -> ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult?
|
|
1207
|
+
|
|
1208
|
+
def []=:
|
|
1209
|
+
("seq" name, (::Integer | ::Float) value) -> void
|
|
1210
|
+
| ("result" name, ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult? value) -> void
|
|
1211
|
+
end
|
|
1212
|
+
|
|
1213
|
+
class RemoveFromCache < ::Google::Protobuf::AbstractMessage
|
|
1214
|
+
module EvictionReason
|
|
1215
|
+
|
|
1216
|
+
UNSPECIFIED: 0
|
|
1217
|
+
|
|
1218
|
+
# Workflow cache is full
|
|
1219
|
+
CACHE_FULL: 1
|
|
1220
|
+
|
|
1221
|
+
# Workflow received a partial task but was not in the cache. Typically it won't be in the
|
|
1222
|
+
# lang cache either at this point, but we send an eviction to be sure.
|
|
1223
|
+
CACHE_MISS: 2
|
|
1224
|
+
|
|
1225
|
+
# The workflow produced results inconsistent with history.
|
|
1226
|
+
NONDETERMINISM: 3
|
|
1227
|
+
|
|
1228
|
+
# The lang side completed the workflow activation with a failure.
|
|
1229
|
+
LANG_FAIL: 4
|
|
1230
|
+
|
|
1231
|
+
# The lang side explicitly requested this workflow be evicted.
|
|
1232
|
+
LANG_REQUESTED: 5
|
|
1233
|
+
|
|
1234
|
+
# The workflow task we tried to respond to didn't exist. The workflow might have already
|
|
1235
|
+
# finished, or the WFT timed out but we didn't learn about that yet.
|
|
1236
|
+
TASK_NOT_FOUND: 6
|
|
1237
|
+
|
|
1238
|
+
# There was new work that must be handled while we attempted to complete the WFT. Ex:
|
|
1239
|
+
# a new signal came in while trying to complete the workflow.
|
|
1240
|
+
UNHANDLED_COMMAND: 7
|
|
1241
|
+
|
|
1242
|
+
# There was some fatal error processing the workflow, typically an internal error, but
|
|
1243
|
+
# can also happen if then network drops out while paginating. Check message string.
|
|
1244
|
+
FATAL: 8
|
|
1245
|
+
|
|
1246
|
+
# Something went wrong attempting to fetch more history events.
|
|
1247
|
+
PAGINATION_OR_HISTORY_FETCH: 9
|
|
1248
|
+
|
|
1249
|
+
# The workflow is being completed with a terminal command and we sent the WFT completion
|
|
1250
|
+
# to server successfully.
|
|
1251
|
+
WORKFLOW_EXECUTION_ENDING: 10
|
|
1252
|
+
|
|
1253
|
+
def self.lookup: (::Integer number) -> ::Symbol
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
def self.resolve: (::Symbol name) -> ::Integer
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
type names = :UNSPECIFIED | :CACHE_FULL | :CACHE_MISS | :NONDETERMINISM | :LANG_FAIL | :LANG_REQUESTED | :TASK_NOT_FOUND | :UNHANDLED_COMMAND | :FATAL | :PAGINATION_OR_HISTORY_FETCH | :WORKFLOW_EXECUTION_ENDING
|
|
1260
|
+
|
|
1261
|
+
type strings = "UNSPECIFIED" | "CACHE_FULL" | "CACHE_MISS" | "NONDETERMINISM" | "LANG_FAIL" | "LANG_REQUESTED" | "TASK_NOT_FOUND" | "UNHANDLED_COMMAND" | "FATAL" | "PAGINATION_OR_HISTORY_FETCH" | "WORKFLOW_EXECUTION_ENDING"
|
|
1262
|
+
|
|
1263
|
+
type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
attr_reader message(): ::String
|
|
1267
|
+
attr_writer message(): ::String | ::Symbol
|
|
1268
|
+
def clear_message: () -> void
|
|
1269
|
+
|
|
1270
|
+
attr_reader reason(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Integer
|
|
1271
|
+
attr_writer reason(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float
|
|
1272
|
+
attr_reader reason_const(): ::Integer
|
|
1273
|
+
def clear_reason: () -> void
|
|
1274
|
+
|
|
1275
|
+
type init_map = {
|
|
1276
|
+
message: (::String | ::Symbol)?,
|
|
1277
|
+
"message" => (::String | ::Symbol)?,
|
|
1278
|
+
reason: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float)?,
|
|
1279
|
+
"reason" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float)?,
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
def initialize: (?init_map initial_value) -> void
|
|
1283
|
+
|
|
1284
|
+
def []:
|
|
1285
|
+
("message" name) -> ::String
|
|
1286
|
+
| ("reason" name) -> (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Integer)
|
|
1287
|
+
|
|
1288
|
+
def []=:
|
|
1289
|
+
("message" name, (::String | ::Symbol) value) -> void
|
|
1290
|
+
| ("reason" name, (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float) value) -> void
|
|
1291
|
+
end
|
|
1292
|
+
end
|
|
1293
|
+
end
|
|
1294
|
+
end
|
|
1295
|
+
end
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1298
|
+
module Google
|
|
1299
|
+
module Protobuf
|
|
1300
|
+
class DescriptorPool
|
|
1301
|
+
def lookup: (::String name) -> ::Google::Protobuf::Descriptor
|
|
1302
|
+
end
|
|
1303
|
+
end
|
|
1304
|
+
end
|