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,1453 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/activity/v1/message.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
# The outcome of a completed activity execution: either a successful result or a failure.
|
|
6
|
+
class Temporalio::Api::Activity::V1::ActivityExecutionOutcome
|
|
7
|
+
include ::Google::Protobuf::MessageExts
|
|
8
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
9
|
+
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
result: T.nilable(Temporalio::Api::Common::V1::Payloads),
|
|
13
|
+
failure: T.nilable(Temporalio::Api::Failure::V1::Failure)
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(
|
|
17
|
+
result: nil,
|
|
18
|
+
failure: nil
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# The result if the activity completed successfully.
|
|
23
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
|
|
24
|
+
def result
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# The result if the activity completed successfully.
|
|
28
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
|
|
29
|
+
def result=(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# The result if the activity completed successfully.
|
|
33
|
+
sig { void }
|
|
34
|
+
def clear_result
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# The failure if the activity completed unsuccessfully.
|
|
38
|
+
sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
|
|
39
|
+
def failure
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# The failure if the activity completed unsuccessfully.
|
|
43
|
+
sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
|
|
44
|
+
def failure=(value)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# The failure if the activity completed unsuccessfully.
|
|
48
|
+
sig { void }
|
|
49
|
+
def clear_failure
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
sig { returns(T.nilable(Symbol)) }
|
|
53
|
+
def value
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
sig { params(field: String).returns(T.untyped) }
|
|
57
|
+
def [](field)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig { params(field: String, value: T.untyped).void }
|
|
61
|
+
def []=(field, value)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
65
|
+
def to_h
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityExecutionOutcome) }
|
|
69
|
+
def self.decode(str)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionOutcome).returns(String) }
|
|
73
|
+
def self.encode(msg)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityExecutionOutcome) }
|
|
77
|
+
def self.decode_json(str, **kw)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionOutcome, kw: T.untyped).returns(String) }
|
|
81
|
+
def self.encode_json(msg, **kw)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
85
|
+
def self.descriptor
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class Temporalio::Api::Activity::V1::ActivityOptions
|
|
90
|
+
include ::Google::Protobuf::MessageExts
|
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
92
|
+
|
|
93
|
+
sig do
|
|
94
|
+
params(
|
|
95
|
+
task_queue: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue),
|
|
96
|
+
schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
|
|
97
|
+
schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
|
|
98
|
+
start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
|
|
99
|
+
heartbeat_timeout: T.nilable(Google::Protobuf::Duration),
|
|
100
|
+
retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
|
|
101
|
+
priority: T.nilable(Temporalio::Api::Common::V1::Priority)
|
|
102
|
+
).void
|
|
103
|
+
end
|
|
104
|
+
def initialize(
|
|
105
|
+
task_queue: nil,
|
|
106
|
+
schedule_to_close_timeout: nil,
|
|
107
|
+
schedule_to_start_timeout: nil,
|
|
108
|
+
start_to_close_timeout: nil,
|
|
109
|
+
heartbeat_timeout: nil,
|
|
110
|
+
retry_policy: nil,
|
|
111
|
+
priority: nil
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)) }
|
|
116
|
+
def task_queue
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::TaskQueue)).void }
|
|
120
|
+
def task_queue=(value)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
sig { void }
|
|
124
|
+
def clear_task_queue
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Indicates how long the caller is willing to wait for an activity completion. Limits how long
|
|
128
|
+
# retries will be attempted. Either this or `start_to_close_timeout` must be specified.
|
|
129
|
+
#
|
|
130
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
131
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
132
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
133
|
+
def schedule_to_close_timeout
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Indicates how long the caller is willing to wait for an activity completion. Limits how long
|
|
137
|
+
# retries will be attempted. Either this or `start_to_close_timeout` must be specified.
|
|
138
|
+
#
|
|
139
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
140
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
141
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
142
|
+
def schedule_to_close_timeout=(value)
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Indicates how long the caller is willing to wait for an activity completion. Limits how long
|
|
146
|
+
# retries will be attempted. Either this or `start_to_close_timeout` must be specified.
|
|
147
|
+
#
|
|
148
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
149
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
150
|
+
sig { void }
|
|
151
|
+
def clear_schedule_to_close_timeout
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Limits time an activity task can stay in a task queue before a worker picks it up. This
|
|
155
|
+
# timeout is always non retryable, as all a retry would achieve is to put it back into the same
|
|
156
|
+
# queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
|
|
157
|
+
# specified.
|
|
158
|
+
#
|
|
159
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
160
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
161
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
162
|
+
def schedule_to_start_timeout
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Limits time an activity task can stay in a task queue before a worker picks it up. This
|
|
166
|
+
# timeout is always non retryable, as all a retry would achieve is to put it back into the same
|
|
167
|
+
# queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
|
|
168
|
+
# specified.
|
|
169
|
+
#
|
|
170
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
171
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
172
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
173
|
+
def schedule_to_start_timeout=(value)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Limits time an activity task can stay in a task queue before a worker picks it up. This
|
|
177
|
+
# timeout is always non retryable, as all a retry would achieve is to put it back into the same
|
|
178
|
+
# queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
|
|
179
|
+
# specified.
|
|
180
|
+
#
|
|
181
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
182
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
183
|
+
sig { void }
|
|
184
|
+
def clear_schedule_to_start_timeout
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Maximum time an activity is allowed to execute after being picked up by a worker. This
|
|
188
|
+
# timeout is always retryable. Either this or `schedule_to_close_timeout` must be
|
|
189
|
+
# specified.
|
|
190
|
+
#
|
|
191
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
192
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
193
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
194
|
+
def start_to_close_timeout
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Maximum time an activity is allowed to execute after being picked up by a worker. This
|
|
198
|
+
# timeout is always retryable. Either this or `schedule_to_close_timeout` must be
|
|
199
|
+
# specified.
|
|
200
|
+
#
|
|
201
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
202
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
203
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
204
|
+
def start_to_close_timeout=(value)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Maximum time an activity is allowed to execute after being picked up by a worker. This
|
|
208
|
+
# timeout is always retryable. Either this or `schedule_to_close_timeout` must be
|
|
209
|
+
# specified.
|
|
210
|
+
#
|
|
211
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
212
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
213
|
+
sig { void }
|
|
214
|
+
def clear_start_to_close_timeout
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Maximum permitted time between successful worker heartbeats.
|
|
218
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
219
|
+
def heartbeat_timeout
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Maximum permitted time between successful worker heartbeats.
|
|
223
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
224
|
+
def heartbeat_timeout=(value)
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Maximum permitted time between successful worker heartbeats.
|
|
228
|
+
sig { void }
|
|
229
|
+
def clear_heartbeat_timeout
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
|
|
233
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
|
|
234
|
+
def retry_policy
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
|
|
238
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
|
|
239
|
+
def retry_policy=(value)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
|
|
243
|
+
sig { void }
|
|
244
|
+
def clear_retry_policy
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Priority metadata. If this message is not present, or any fields are not
|
|
248
|
+
# present, they inherit the values from the workflow.
|
|
249
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
|
|
250
|
+
def priority
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Priority metadata. If this message is not present, or any fields are not
|
|
254
|
+
# present, they inherit the values from the workflow.
|
|
255
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
|
|
256
|
+
def priority=(value)
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Priority metadata. If this message is not present, or any fields are not
|
|
260
|
+
# present, they inherit the values from the workflow.
|
|
261
|
+
sig { void }
|
|
262
|
+
def clear_priority
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
sig { params(field: String).returns(T.untyped) }
|
|
266
|
+
def [](field)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
sig { params(field: String, value: T.untyped).void }
|
|
270
|
+
def []=(field, value)
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
274
|
+
def to_h
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityOptions) }
|
|
278
|
+
def self.decode(str)
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityOptions).returns(String) }
|
|
282
|
+
def self.encode(msg)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityOptions) }
|
|
286
|
+
def self.decode_json(str, **kw)
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityOptions, kw: T.untyped).returns(String) }
|
|
290
|
+
def self.encode_json(msg, **kw)
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
294
|
+
def self.descriptor
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Information about a standalone activity.
|
|
299
|
+
class Temporalio::Api::Activity::V1::ActivityExecutionInfo
|
|
300
|
+
include ::Google::Protobuf::MessageExts
|
|
301
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
302
|
+
|
|
303
|
+
sig do
|
|
304
|
+
params(
|
|
305
|
+
activity_id: T.nilable(String),
|
|
306
|
+
run_id: T.nilable(String),
|
|
307
|
+
activity_type: T.nilable(Temporalio::Api::Common::V1::ActivityType),
|
|
308
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
309
|
+
run_state: T.nilable(T.any(Symbol, String, Integer)),
|
|
310
|
+
task_queue: T.nilable(String),
|
|
311
|
+
schedule_to_close_timeout: T.nilable(Google::Protobuf::Duration),
|
|
312
|
+
schedule_to_start_timeout: T.nilable(Google::Protobuf::Duration),
|
|
313
|
+
start_to_close_timeout: T.nilable(Google::Protobuf::Duration),
|
|
314
|
+
heartbeat_timeout: T.nilable(Google::Protobuf::Duration),
|
|
315
|
+
retry_policy: T.nilable(Temporalio::Api::Common::V1::RetryPolicy),
|
|
316
|
+
heartbeat_details: T.nilable(Temporalio::Api::Common::V1::Payloads),
|
|
317
|
+
last_heartbeat_time: T.nilable(Google::Protobuf::Timestamp),
|
|
318
|
+
last_started_time: T.nilable(Google::Protobuf::Timestamp),
|
|
319
|
+
attempt: T.nilable(Integer),
|
|
320
|
+
execution_duration: T.nilable(Google::Protobuf::Duration),
|
|
321
|
+
schedule_time: T.nilable(Google::Protobuf::Timestamp),
|
|
322
|
+
expiration_time: T.nilable(Google::Protobuf::Timestamp),
|
|
323
|
+
close_time: T.nilable(Google::Protobuf::Timestamp),
|
|
324
|
+
last_failure: T.nilable(Temporalio::Api::Failure::V1::Failure),
|
|
325
|
+
last_worker_identity: T.nilable(String),
|
|
326
|
+
current_retry_interval: T.nilable(Google::Protobuf::Duration),
|
|
327
|
+
last_attempt_complete_time: T.nilable(Google::Protobuf::Timestamp),
|
|
328
|
+
next_attempt_schedule_time: T.nilable(Google::Protobuf::Timestamp),
|
|
329
|
+
last_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
330
|
+
priority: T.nilable(Temporalio::Api::Common::V1::Priority),
|
|
331
|
+
state_transition_count: T.nilable(Integer),
|
|
332
|
+
state_size_bytes: T.nilable(Integer),
|
|
333
|
+
search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
|
|
334
|
+
header: T.nilable(Temporalio::Api::Common::V1::Header),
|
|
335
|
+
user_metadata: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata),
|
|
336
|
+
canceled_reason: T.nilable(String),
|
|
337
|
+
links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]),
|
|
338
|
+
total_heartbeat_count: T.nilable(Integer),
|
|
339
|
+
sdk_name: T.nilable(String),
|
|
340
|
+
sdk_version: T.nilable(String),
|
|
341
|
+
start_delay: T.nilable(Google::Protobuf::Duration)
|
|
342
|
+
).void
|
|
343
|
+
end
|
|
344
|
+
def initialize(
|
|
345
|
+
activity_id: "",
|
|
346
|
+
run_id: "",
|
|
347
|
+
activity_type: nil,
|
|
348
|
+
status: :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED,
|
|
349
|
+
run_state: :PENDING_ACTIVITY_STATE_UNSPECIFIED,
|
|
350
|
+
task_queue: "",
|
|
351
|
+
schedule_to_close_timeout: nil,
|
|
352
|
+
schedule_to_start_timeout: nil,
|
|
353
|
+
start_to_close_timeout: nil,
|
|
354
|
+
heartbeat_timeout: nil,
|
|
355
|
+
retry_policy: nil,
|
|
356
|
+
heartbeat_details: nil,
|
|
357
|
+
last_heartbeat_time: nil,
|
|
358
|
+
last_started_time: nil,
|
|
359
|
+
attempt: 0,
|
|
360
|
+
execution_duration: nil,
|
|
361
|
+
schedule_time: nil,
|
|
362
|
+
expiration_time: nil,
|
|
363
|
+
close_time: nil,
|
|
364
|
+
last_failure: nil,
|
|
365
|
+
last_worker_identity: "",
|
|
366
|
+
current_retry_interval: nil,
|
|
367
|
+
last_attempt_complete_time: nil,
|
|
368
|
+
next_attempt_schedule_time: nil,
|
|
369
|
+
last_deployment_version: nil,
|
|
370
|
+
priority: nil,
|
|
371
|
+
state_transition_count: 0,
|
|
372
|
+
state_size_bytes: 0,
|
|
373
|
+
search_attributes: nil,
|
|
374
|
+
header: nil,
|
|
375
|
+
user_metadata: nil,
|
|
376
|
+
canceled_reason: "",
|
|
377
|
+
links: [],
|
|
378
|
+
total_heartbeat_count: 0,
|
|
379
|
+
sdk_name: "",
|
|
380
|
+
sdk_version: "",
|
|
381
|
+
start_delay: nil
|
|
382
|
+
)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Unique identifier of this activity within its namespace along with run ID (below).
|
|
386
|
+
sig { returns(String) }
|
|
387
|
+
def activity_id
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Unique identifier of this activity within its namespace along with run ID (below).
|
|
391
|
+
sig { params(value: String).void }
|
|
392
|
+
def activity_id=(value)
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Unique identifier of this activity within its namespace along with run ID (below).
|
|
396
|
+
sig { void }
|
|
397
|
+
def clear_activity_id
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
sig { returns(String) }
|
|
401
|
+
def run_id
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
sig { params(value: String).void }
|
|
405
|
+
def run_id=(value)
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
sig { void }
|
|
409
|
+
def clear_run_id
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# The type of the activity, a string that maps to a registered activity on a worker.
|
|
413
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::ActivityType)) }
|
|
414
|
+
def activity_type
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# The type of the activity, a string that maps to a registered activity on a worker.
|
|
418
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::ActivityType)).void }
|
|
419
|
+
def activity_type=(value)
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# The type of the activity, a string that maps to a registered activity on a worker.
|
|
423
|
+
sig { void }
|
|
424
|
+
def clear_activity_type
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
|
|
428
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
429
|
+
def status
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
|
|
433
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
434
|
+
def status=(value)
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
|
|
438
|
+
sig { void }
|
|
439
|
+
def clear_status
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
|
|
443
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
444
|
+
def run_state
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
|
|
448
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
449
|
+
def run_state=(value)
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
|
|
453
|
+
sig { void }
|
|
454
|
+
def clear_run_state
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
sig { returns(String) }
|
|
458
|
+
def task_queue
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
sig { params(value: String).void }
|
|
462
|
+
def task_queue=(value)
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
sig { void }
|
|
466
|
+
def clear_task_queue
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Indicates how long the caller is willing to wait for an activity completion. Limits how long
|
|
470
|
+
# retries will be attempted.
|
|
471
|
+
#
|
|
472
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
473
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
474
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
475
|
+
def schedule_to_close_timeout
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Indicates how long the caller is willing to wait for an activity completion. Limits how long
|
|
479
|
+
# retries will be attempted.
|
|
480
|
+
#
|
|
481
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
482
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
483
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
484
|
+
def schedule_to_close_timeout=(value)
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Indicates how long the caller is willing to wait for an activity completion. Limits how long
|
|
488
|
+
# retries will be attempted.
|
|
489
|
+
#
|
|
490
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
491
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
492
|
+
sig { void }
|
|
493
|
+
def clear_schedule_to_close_timeout
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# Limits time an activity task can stay in a task queue before a worker picks it up. This
|
|
497
|
+
# timeout is always non retryable, as all a retry would achieve is to put it back into the same
|
|
498
|
+
# queue. Defaults to `schedule_to_close_timeout`.
|
|
499
|
+
#
|
|
500
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
501
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
502
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
503
|
+
def schedule_to_start_timeout
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# Limits time an activity task can stay in a task queue before a worker picks it up. This
|
|
507
|
+
# timeout is always non retryable, as all a retry would achieve is to put it back into the same
|
|
508
|
+
# queue. Defaults to `schedule_to_close_timeout`.
|
|
509
|
+
#
|
|
510
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
511
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
512
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
513
|
+
def schedule_to_start_timeout=(value)
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
# Limits time an activity task can stay in a task queue before a worker picks it up. This
|
|
517
|
+
# timeout is always non retryable, as all a retry would achieve is to put it back into the same
|
|
518
|
+
# queue. Defaults to `schedule_to_close_timeout`.
|
|
519
|
+
#
|
|
520
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
521
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
522
|
+
sig { void }
|
|
523
|
+
def clear_schedule_to_start_timeout
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
# Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
|
|
527
|
+
# timeout is always retryable.
|
|
528
|
+
#
|
|
529
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
530
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
531
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
532
|
+
def start_to_close_timeout
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
|
|
536
|
+
# timeout is always retryable.
|
|
537
|
+
#
|
|
538
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
539
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
540
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
541
|
+
def start_to_close_timeout=(value)
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
|
|
545
|
+
# timeout is always retryable.
|
|
546
|
+
#
|
|
547
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
548
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
549
|
+
sig { void }
|
|
550
|
+
def clear_start_to_close_timeout
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Maximum permitted time between successful worker heartbeats.
|
|
554
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
555
|
+
def heartbeat_timeout
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
# Maximum permitted time between successful worker heartbeats.
|
|
559
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
560
|
+
def heartbeat_timeout=(value)
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# Maximum permitted time between successful worker heartbeats.
|
|
564
|
+
sig { void }
|
|
565
|
+
def clear_heartbeat_timeout
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
|
|
569
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::RetryPolicy)) }
|
|
570
|
+
def retry_policy
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
|
|
574
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::RetryPolicy)).void }
|
|
575
|
+
def retry_policy=(value)
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
|
|
579
|
+
sig { void }
|
|
580
|
+
def clear_retry_policy
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# Details provided in the last recorded activity heartbeat.
|
|
584
|
+
# DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
|
|
585
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Payloads)) }
|
|
586
|
+
def heartbeat_details
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Details provided in the last recorded activity heartbeat.
|
|
590
|
+
# DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
|
|
591
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payloads)).void }
|
|
592
|
+
def heartbeat_details=(value)
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
# Details provided in the last recorded activity heartbeat.
|
|
596
|
+
# DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
|
|
597
|
+
sig { void }
|
|
598
|
+
def clear_heartbeat_details
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Time the last heartbeat was recorded.
|
|
602
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
603
|
+
def last_heartbeat_time
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# Time the last heartbeat was recorded.
|
|
607
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
608
|
+
def last_heartbeat_time=(value)
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# Time the last heartbeat was recorded.
|
|
612
|
+
sig { void }
|
|
613
|
+
def clear_last_heartbeat_time
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
# Time the last attempt was started.
|
|
617
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
618
|
+
def last_started_time
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Time the last attempt was started.
|
|
622
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
623
|
+
def last_started_time=(value)
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# Time the last attempt was started.
|
|
627
|
+
sig { void }
|
|
628
|
+
def clear_last_started_time
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
|
|
632
|
+
sig { returns(Integer) }
|
|
633
|
+
def attempt
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
# The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
|
|
637
|
+
sig { params(value: Integer).void }
|
|
638
|
+
def attempt=(value)
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
# The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
|
|
642
|
+
sig { void }
|
|
643
|
+
def clear_attempt
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
# How long this activity has been running for, including all attempts and backoff between attempts.
|
|
647
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
648
|
+
def execution_duration
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# How long this activity has been running for, including all attempts and backoff between attempts.
|
|
652
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
653
|
+
def execution_duration=(value)
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
# How long this activity has been running for, including all attempts and backoff between attempts.
|
|
657
|
+
sig { void }
|
|
658
|
+
def clear_execution_duration
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# Time the activity was originally scheduled via a StartActivityExecution request.
|
|
662
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
663
|
+
def schedule_time
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
# Time the activity was originally scheduled via a StartActivityExecution request.
|
|
667
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
668
|
+
def schedule_time=(value)
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
# Time the activity was originally scheduled via a StartActivityExecution request.
|
|
672
|
+
sig { void }
|
|
673
|
+
def clear_schedule_time
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Scheduled time + schedule to close timeout.
|
|
677
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
678
|
+
def expiration_time
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
# Scheduled time + schedule to close timeout.
|
|
682
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
683
|
+
def expiration_time=(value)
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# Scheduled time + schedule to close timeout.
|
|
687
|
+
sig { void }
|
|
688
|
+
def clear_expiration_time
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
# Time when the activity transitioned to a closed state.
|
|
692
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
693
|
+
def close_time
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
# Time when the activity transitioned to a closed state.
|
|
697
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
698
|
+
def close_time=(value)
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
# Time when the activity transitioned to a closed state.
|
|
702
|
+
sig { void }
|
|
703
|
+
def clear_close_time
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Failure details from the last failed attempt.
|
|
707
|
+
# DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
|
|
708
|
+
sig { returns(T.nilable(Temporalio::Api::Failure::V1::Failure)) }
|
|
709
|
+
def last_failure
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
# Failure details from the last failed attempt.
|
|
713
|
+
# DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
|
|
714
|
+
sig { params(value: T.nilable(Temporalio::Api::Failure::V1::Failure)).void }
|
|
715
|
+
def last_failure=(value)
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
# Failure details from the last failed attempt.
|
|
719
|
+
# DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
|
|
720
|
+
sig { void }
|
|
721
|
+
def clear_last_failure
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
sig { returns(String) }
|
|
725
|
+
def last_worker_identity
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
sig { params(value: String).void }
|
|
729
|
+
def last_worker_identity=(value)
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
sig { void }
|
|
733
|
+
def clear_last_worker_identity
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Time from the last attempt failure to the next activity retry.
|
|
737
|
+
# If the activity is currently running, this represents the next retry interval in case the attempt fails.
|
|
738
|
+
# If activity is currently backing off between attempt, this represents the current retry interval.
|
|
739
|
+
# If there is no next retry allowed, this field will be null.
|
|
740
|
+
# This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
|
|
741
|
+
# with a retryable application failure specifying a retry delay.
|
|
742
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
743
|
+
def current_retry_interval
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Time from the last attempt failure to the next activity retry.
|
|
747
|
+
# If the activity is currently running, this represents the next retry interval in case the attempt fails.
|
|
748
|
+
# If activity is currently backing off between attempt, this represents the current retry interval.
|
|
749
|
+
# If there is no next retry allowed, this field will be null.
|
|
750
|
+
# This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
|
|
751
|
+
# with a retryable application failure specifying a retry delay.
|
|
752
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
753
|
+
def current_retry_interval=(value)
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# Time from the last attempt failure to the next activity retry.
|
|
757
|
+
# If the activity is currently running, this represents the next retry interval in case the attempt fails.
|
|
758
|
+
# If activity is currently backing off between attempt, this represents the current retry interval.
|
|
759
|
+
# If there is no next retry allowed, this field will be null.
|
|
760
|
+
# This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
|
|
761
|
+
# with a retryable application failure specifying a retry delay.
|
|
762
|
+
sig { void }
|
|
763
|
+
def clear_current_retry_interval
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
# The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
|
|
767
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
768
|
+
def last_attempt_complete_time
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
|
|
772
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
773
|
+
def last_attempt_complete_time=(value)
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
|
|
777
|
+
sig { void }
|
|
778
|
+
def clear_last_attempt_complete_time
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# The time when the next activity attempt will be scheduled.
|
|
782
|
+
# If activity is currently scheduled or started, this field will be null.
|
|
783
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
784
|
+
def next_attempt_schedule_time
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# The time when the next activity attempt will be scheduled.
|
|
788
|
+
# If activity is currently scheduled or started, this field will be null.
|
|
789
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
790
|
+
def next_attempt_schedule_time=(value)
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
# The time when the next activity attempt will be scheduled.
|
|
794
|
+
# If activity is currently scheduled or started, this field will be null.
|
|
795
|
+
sig { void }
|
|
796
|
+
def clear_next_attempt_schedule_time
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
# The Worker Deployment Version this activity was dispatched to most recently.
|
|
800
|
+
# If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
|
|
801
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
802
|
+
def last_deployment_version
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
# The Worker Deployment Version this activity was dispatched to most recently.
|
|
806
|
+
# If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
|
|
807
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
808
|
+
def last_deployment_version=(value)
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# The Worker Deployment Version this activity was dispatched to most recently.
|
|
812
|
+
# If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
|
|
813
|
+
sig { void }
|
|
814
|
+
def clear_last_deployment_version
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
# Priority metadata.
|
|
818
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Priority)) }
|
|
819
|
+
def priority
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
# Priority metadata.
|
|
823
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Priority)).void }
|
|
824
|
+
def priority=(value)
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Priority metadata.
|
|
828
|
+
sig { void }
|
|
829
|
+
def clear_priority
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Incremented each time the activity's state is mutated in persistence.
|
|
833
|
+
sig { returns(Integer) }
|
|
834
|
+
def state_transition_count
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# Incremented each time the activity's state is mutated in persistence.
|
|
838
|
+
sig { params(value: Integer).void }
|
|
839
|
+
def state_transition_count=(value)
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# Incremented each time the activity's state is mutated in persistence.
|
|
843
|
+
sig { void }
|
|
844
|
+
def clear_state_transition_count
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Updated once on scheduled and once on terminal status.
|
|
848
|
+
sig { returns(Integer) }
|
|
849
|
+
def state_size_bytes
|
|
850
|
+
end
|
|
851
|
+
|
|
852
|
+
# Updated once on scheduled and once on terminal status.
|
|
853
|
+
sig { params(value: Integer).void }
|
|
854
|
+
def state_size_bytes=(value)
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# Updated once on scheduled and once on terminal status.
|
|
858
|
+
sig { void }
|
|
859
|
+
def clear_state_size_bytes
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
|
|
863
|
+
def search_attributes
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
|
|
867
|
+
def search_attributes=(value)
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
sig { void }
|
|
871
|
+
def clear_search_attributes
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Header)) }
|
|
875
|
+
def header
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Header)).void }
|
|
879
|
+
def header=(value)
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
sig { void }
|
|
883
|
+
def clear_header
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
# Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
|
|
887
|
+
sig { returns(T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)) }
|
|
888
|
+
def user_metadata
|
|
889
|
+
end
|
|
890
|
+
|
|
891
|
+
# Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
|
|
892
|
+
sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::UserMetadata)).void }
|
|
893
|
+
def user_metadata=(value)
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
# Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
|
|
897
|
+
sig { void }
|
|
898
|
+
def clear_user_metadata
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# Set if activity cancelation was requested.
|
|
902
|
+
sig { returns(String) }
|
|
903
|
+
def canceled_reason
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
# Set if activity cancelation was requested.
|
|
907
|
+
sig { params(value: String).void }
|
|
908
|
+
def canceled_reason=(value)
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
# Set if activity cancelation was requested.
|
|
912
|
+
sig { void }
|
|
913
|
+
def clear_canceled_reason
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# Links to related entities, such as the entity that started this activity.
|
|
917
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
|
|
918
|
+
def links
|
|
919
|
+
end
|
|
920
|
+
|
|
921
|
+
# Links to related entities, such as the entity that started this activity.
|
|
922
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
923
|
+
def links=(value)
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
# Links to related entities, such as the entity that started this activity.
|
|
927
|
+
sig { void }
|
|
928
|
+
def clear_links
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Total number of heartbeats recorded across all attempts of this activity, including retries.
|
|
932
|
+
sig { returns(Integer) }
|
|
933
|
+
def total_heartbeat_count
|
|
934
|
+
end
|
|
935
|
+
|
|
936
|
+
# Total number of heartbeats recorded across all attempts of this activity, including retries.
|
|
937
|
+
sig { params(value: Integer).void }
|
|
938
|
+
def total_heartbeat_count=(value)
|
|
939
|
+
end
|
|
940
|
+
|
|
941
|
+
# Total number of heartbeats recorded across all attempts of this activity, including retries.
|
|
942
|
+
sig { void }
|
|
943
|
+
def clear_total_heartbeat_count
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# The name of the SDK of the worker that most recently picked up an attempt of this activity.
|
|
947
|
+
# Overwritten on each new attempt. Empty if unknown.
|
|
948
|
+
sig { returns(String) }
|
|
949
|
+
def sdk_name
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
# The name of the SDK of the worker that most recently picked up an attempt of this activity.
|
|
953
|
+
# Overwritten on each new attempt. Empty if unknown.
|
|
954
|
+
sig { params(value: String).void }
|
|
955
|
+
def sdk_name=(value)
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
# The name of the SDK of the worker that most recently picked up an attempt of this activity.
|
|
959
|
+
# Overwritten on each new attempt. Empty if unknown.
|
|
960
|
+
sig { void }
|
|
961
|
+
def clear_sdk_name
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
# The version of the SDK of the worker that most recently picked up an attempt of this activity.
|
|
965
|
+
# Overwritten on each new attempt. Empty if unknown.
|
|
966
|
+
sig { returns(String) }
|
|
967
|
+
def sdk_version
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
# The version of the SDK of the worker that most recently picked up an attempt of this activity.
|
|
971
|
+
# Overwritten on each new attempt. Empty if unknown.
|
|
972
|
+
sig { params(value: String).void }
|
|
973
|
+
def sdk_version=(value)
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
# The version of the SDK of the worker that most recently picked up an attempt of this activity.
|
|
977
|
+
# Overwritten on each new attempt. Empty if unknown.
|
|
978
|
+
sig { void }
|
|
979
|
+
def clear_sdk_version
|
|
980
|
+
end
|
|
981
|
+
|
|
982
|
+
# Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
|
|
983
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
984
|
+
def start_delay
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
|
|
988
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
989
|
+
def start_delay=(value)
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
# Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
|
|
993
|
+
sig { void }
|
|
994
|
+
def clear_start_delay
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
sig { params(field: String).returns(T.untyped) }
|
|
998
|
+
def [](field)
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1002
|
+
def []=(field, value)
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1006
|
+
def to_h
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityExecutionInfo) }
|
|
1010
|
+
def self.decode(str)
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionInfo).returns(String) }
|
|
1014
|
+
def self.encode(msg)
|
|
1015
|
+
end
|
|
1016
|
+
|
|
1017
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityExecutionInfo) }
|
|
1018
|
+
def self.decode_json(str, **kw)
|
|
1019
|
+
end
|
|
1020
|
+
|
|
1021
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionInfo, kw: T.untyped).returns(String) }
|
|
1022
|
+
def self.encode_json(msg, **kw)
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1026
|
+
def self.descriptor
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
# Limited activity information returned in the list response.
|
|
1031
|
+
# When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it
|
|
1032
|
+
# may already be present in ActivityExecutionInfo but not at the top-level).
|
|
1033
|
+
class Temporalio::Api::Activity::V1::ActivityExecutionListInfo
|
|
1034
|
+
include ::Google::Protobuf::MessageExts
|
|
1035
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1036
|
+
|
|
1037
|
+
sig do
|
|
1038
|
+
params(
|
|
1039
|
+
activity_id: T.nilable(String),
|
|
1040
|
+
run_id: T.nilable(String),
|
|
1041
|
+
activity_type: T.nilable(Temporalio::Api::Common::V1::ActivityType),
|
|
1042
|
+
schedule_time: T.nilable(Google::Protobuf::Timestamp),
|
|
1043
|
+
close_time: T.nilable(Google::Protobuf::Timestamp),
|
|
1044
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
1045
|
+
search_attributes: T.nilable(Temporalio::Api::Common::V1::SearchAttributes),
|
|
1046
|
+
task_queue: T.nilable(String),
|
|
1047
|
+
state_transition_count: T.nilable(Integer),
|
|
1048
|
+
state_size_bytes: T.nilable(Integer),
|
|
1049
|
+
execution_duration: T.nilable(Google::Protobuf::Duration)
|
|
1050
|
+
).void
|
|
1051
|
+
end
|
|
1052
|
+
def initialize(
|
|
1053
|
+
activity_id: "",
|
|
1054
|
+
run_id: "",
|
|
1055
|
+
activity_type: nil,
|
|
1056
|
+
schedule_time: nil,
|
|
1057
|
+
close_time: nil,
|
|
1058
|
+
status: :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED,
|
|
1059
|
+
search_attributes: nil,
|
|
1060
|
+
task_queue: "",
|
|
1061
|
+
state_transition_count: 0,
|
|
1062
|
+
state_size_bytes: 0,
|
|
1063
|
+
execution_duration: nil
|
|
1064
|
+
)
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
# A unique identifier of this activity within its namespace along with run ID (below).
|
|
1068
|
+
sig { returns(String) }
|
|
1069
|
+
def activity_id
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
# A unique identifier of this activity within its namespace along with run ID (below).
|
|
1073
|
+
sig { params(value: String).void }
|
|
1074
|
+
def activity_id=(value)
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# A unique identifier of this activity within its namespace along with run ID (below).
|
|
1078
|
+
sig { void }
|
|
1079
|
+
def clear_activity_id
|
|
1080
|
+
end
|
|
1081
|
+
|
|
1082
|
+
# The run ID of the standalone activity.
|
|
1083
|
+
sig { returns(String) }
|
|
1084
|
+
def run_id
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1087
|
+
# The run ID of the standalone activity.
|
|
1088
|
+
sig { params(value: String).void }
|
|
1089
|
+
def run_id=(value)
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
# The run ID of the standalone activity.
|
|
1093
|
+
sig { void }
|
|
1094
|
+
def clear_run_id
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
# The type of the activity, a string that maps to a registered activity on a worker.
|
|
1098
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::ActivityType)) }
|
|
1099
|
+
def activity_type
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1102
|
+
# The type of the activity, a string that maps to a registered activity on a worker.
|
|
1103
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::ActivityType)).void }
|
|
1104
|
+
def activity_type=(value)
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
# The type of the activity, a string that maps to a registered activity on a worker.
|
|
1108
|
+
sig { void }
|
|
1109
|
+
def clear_activity_type
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
# Time the activity was originally scheduled via a StartActivityExecution request.
|
|
1113
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1114
|
+
def schedule_time
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
# Time the activity was originally scheduled via a StartActivityExecution request.
|
|
1118
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1119
|
+
def schedule_time=(value)
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
# Time the activity was originally scheduled via a StartActivityExecution request.
|
|
1123
|
+
sig { void }
|
|
1124
|
+
def clear_schedule_time
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
# If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
|
|
1128
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1129
|
+
def close_time
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
# If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
|
|
1133
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1134
|
+
def close_time=(value)
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
# If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
|
|
1138
|
+
sig { void }
|
|
1139
|
+
def clear_close_time
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
# Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
|
|
1143
|
+
# available in the list response.
|
|
1144
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1145
|
+
def status
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
|
|
1149
|
+
# available in the list response.
|
|
1150
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1151
|
+
def status=(value)
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
# Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
|
|
1155
|
+
# available in the list response.
|
|
1156
|
+
sig { void }
|
|
1157
|
+
def clear_status
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
# Search attributes from the start request.
|
|
1161
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::SearchAttributes)) }
|
|
1162
|
+
def search_attributes
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
# Search attributes from the start request.
|
|
1166
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::SearchAttributes)).void }
|
|
1167
|
+
def search_attributes=(value)
|
|
1168
|
+
end
|
|
1169
|
+
|
|
1170
|
+
# Search attributes from the start request.
|
|
1171
|
+
sig { void }
|
|
1172
|
+
def clear_search_attributes
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
# The task queue this activity was scheduled on when it was originally started, updated on activity options update.
|
|
1176
|
+
sig { returns(String) }
|
|
1177
|
+
def task_queue
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
# The task queue this activity was scheduled on when it was originally started, updated on activity options update.
|
|
1181
|
+
sig { params(value: String).void }
|
|
1182
|
+
def task_queue=(value)
|
|
1183
|
+
end
|
|
1184
|
+
|
|
1185
|
+
# The task queue this activity was scheduled on when it was originally started, updated on activity options update.
|
|
1186
|
+
sig { void }
|
|
1187
|
+
def clear_task_queue
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
# Updated on terminal status.
|
|
1191
|
+
sig { returns(Integer) }
|
|
1192
|
+
def state_transition_count
|
|
1193
|
+
end
|
|
1194
|
+
|
|
1195
|
+
# Updated on terminal status.
|
|
1196
|
+
sig { params(value: Integer).void }
|
|
1197
|
+
def state_transition_count=(value)
|
|
1198
|
+
end
|
|
1199
|
+
|
|
1200
|
+
# Updated on terminal status.
|
|
1201
|
+
sig { void }
|
|
1202
|
+
def clear_state_transition_count
|
|
1203
|
+
end
|
|
1204
|
+
|
|
1205
|
+
# Updated once on scheduled and once on terminal status.
|
|
1206
|
+
sig { returns(Integer) }
|
|
1207
|
+
def state_size_bytes
|
|
1208
|
+
end
|
|
1209
|
+
|
|
1210
|
+
# Updated once on scheduled and once on terminal status.
|
|
1211
|
+
sig { params(value: Integer).void }
|
|
1212
|
+
def state_size_bytes=(value)
|
|
1213
|
+
end
|
|
1214
|
+
|
|
1215
|
+
# Updated once on scheduled and once on terminal status.
|
|
1216
|
+
sig { void }
|
|
1217
|
+
def clear_state_size_bytes
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
# The difference between close time and scheduled time.
|
|
1221
|
+
# This field is only populated if the activity is closed.
|
|
1222
|
+
sig { returns(T.nilable(Google::Protobuf::Duration)) }
|
|
1223
|
+
def execution_duration
|
|
1224
|
+
end
|
|
1225
|
+
|
|
1226
|
+
# The difference between close time and scheduled time.
|
|
1227
|
+
# This field is only populated if the activity is closed.
|
|
1228
|
+
sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
|
|
1229
|
+
def execution_duration=(value)
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1232
|
+
# The difference between close time and scheduled time.
|
|
1233
|
+
# This field is only populated if the activity is closed.
|
|
1234
|
+
sig { void }
|
|
1235
|
+
def clear_execution_duration
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1239
|
+
def [](field)
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1243
|
+
def []=(field, value)
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1247
|
+
def to_h
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::ActivityExecutionListInfo) }
|
|
1251
|
+
def self.decode(str)
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionListInfo).returns(String) }
|
|
1255
|
+
def self.encode(msg)
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::ActivityExecutionListInfo) }
|
|
1259
|
+
def self.decode_json(str, **kw)
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
sig { params(msg: Temporalio::Api::Activity::V1::ActivityExecutionListInfo, kw: T.untyped).returns(String) }
|
|
1263
|
+
def self.encode_json(msg, **kw)
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1267
|
+
def self.descriptor
|
|
1268
|
+
end
|
|
1269
|
+
end
|
|
1270
|
+
|
|
1271
|
+
# CallbackInfo contains the state of an attached activity callback.
|
|
1272
|
+
class Temporalio::Api::Activity::V1::CallbackInfo
|
|
1273
|
+
include ::Google::Protobuf::MessageExts
|
|
1274
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1275
|
+
|
|
1276
|
+
sig do
|
|
1277
|
+
params(
|
|
1278
|
+
trigger: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::Trigger),
|
|
1279
|
+
info: T.nilable(Temporalio::Api::Callback::V1::CallbackInfo)
|
|
1280
|
+
).void
|
|
1281
|
+
end
|
|
1282
|
+
def initialize(
|
|
1283
|
+
trigger: nil,
|
|
1284
|
+
info: nil
|
|
1285
|
+
)
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
# Trigger for this callback.
|
|
1289
|
+
sig { returns(T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::Trigger)) }
|
|
1290
|
+
def trigger
|
|
1291
|
+
end
|
|
1292
|
+
|
|
1293
|
+
# Trigger for this callback.
|
|
1294
|
+
sig { params(value: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::Trigger)).void }
|
|
1295
|
+
def trigger=(value)
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1298
|
+
# Trigger for this callback.
|
|
1299
|
+
sig { void }
|
|
1300
|
+
def clear_trigger
|
|
1301
|
+
end
|
|
1302
|
+
|
|
1303
|
+
# Common callback info.
|
|
1304
|
+
sig { returns(T.nilable(Temporalio::Api::Callback::V1::CallbackInfo)) }
|
|
1305
|
+
def info
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# Common callback info.
|
|
1309
|
+
sig { params(value: T.nilable(Temporalio::Api::Callback::V1::CallbackInfo)).void }
|
|
1310
|
+
def info=(value)
|
|
1311
|
+
end
|
|
1312
|
+
|
|
1313
|
+
# Common callback info.
|
|
1314
|
+
sig { void }
|
|
1315
|
+
def clear_info
|
|
1316
|
+
end
|
|
1317
|
+
|
|
1318
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1319
|
+
def [](field)
|
|
1320
|
+
end
|
|
1321
|
+
|
|
1322
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1323
|
+
def []=(field, value)
|
|
1324
|
+
end
|
|
1325
|
+
|
|
1326
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1327
|
+
def to_h
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1330
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::CallbackInfo) }
|
|
1331
|
+
def self.decode(str)
|
|
1332
|
+
end
|
|
1333
|
+
|
|
1334
|
+
sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo).returns(String) }
|
|
1335
|
+
def self.encode(msg)
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::CallbackInfo) }
|
|
1339
|
+
def self.decode_json(str, **kw)
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1342
|
+
sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo, kw: T.untyped).returns(String) }
|
|
1343
|
+
def self.encode_json(msg, **kw)
|
|
1344
|
+
end
|
|
1345
|
+
|
|
1346
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1347
|
+
def self.descriptor
|
|
1348
|
+
end
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
# Trigger for when the activity is closed.
|
|
1352
|
+
class Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed
|
|
1353
|
+
include ::Google::Protobuf::MessageExts
|
|
1354
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1355
|
+
|
|
1356
|
+
sig {void}
|
|
1357
|
+
def initialize; end
|
|
1358
|
+
|
|
1359
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1360
|
+
def [](field)
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1364
|
+
def []=(field, value)
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1368
|
+
def to_h
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1371
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed) }
|
|
1372
|
+
def self.decode(str)
|
|
1373
|
+
end
|
|
1374
|
+
|
|
1375
|
+
sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed).returns(String) }
|
|
1376
|
+
def self.encode(msg)
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed) }
|
|
1380
|
+
def self.decode_json(str, **kw)
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed, kw: T.untyped).returns(String) }
|
|
1384
|
+
def self.encode_json(msg, **kw)
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1388
|
+
def self.descriptor
|
|
1389
|
+
end
|
|
1390
|
+
end
|
|
1391
|
+
|
|
1392
|
+
class Temporalio::Api::Activity::V1::CallbackInfo::Trigger
|
|
1393
|
+
include ::Google::Protobuf::MessageExts
|
|
1394
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1395
|
+
|
|
1396
|
+
sig do
|
|
1397
|
+
params(
|
|
1398
|
+
activity_closed: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed)
|
|
1399
|
+
).void
|
|
1400
|
+
end
|
|
1401
|
+
def initialize(
|
|
1402
|
+
activity_closed: nil
|
|
1403
|
+
)
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1406
|
+
sig { returns(T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed)) }
|
|
1407
|
+
def activity_closed
|
|
1408
|
+
end
|
|
1409
|
+
|
|
1410
|
+
sig { params(value: T.nilable(Temporalio::Api::Activity::V1::CallbackInfo::ActivityClosed)).void }
|
|
1411
|
+
def activity_closed=(value)
|
|
1412
|
+
end
|
|
1413
|
+
|
|
1414
|
+
sig { void }
|
|
1415
|
+
def clear_activity_closed
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
sig { returns(T.nilable(Symbol)) }
|
|
1419
|
+
def variant
|
|
1420
|
+
end
|
|
1421
|
+
|
|
1422
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1423
|
+
def [](field)
|
|
1424
|
+
end
|
|
1425
|
+
|
|
1426
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1427
|
+
def []=(field, value)
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1431
|
+
def to_h
|
|
1432
|
+
end
|
|
1433
|
+
|
|
1434
|
+
sig { params(str: String).returns(Temporalio::Api::Activity::V1::CallbackInfo::Trigger) }
|
|
1435
|
+
def self.decode(str)
|
|
1436
|
+
end
|
|
1437
|
+
|
|
1438
|
+
sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::Trigger).returns(String) }
|
|
1439
|
+
def self.encode(msg)
|
|
1440
|
+
end
|
|
1441
|
+
|
|
1442
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Activity::V1::CallbackInfo::Trigger) }
|
|
1443
|
+
def self.decode_json(str, **kw)
|
|
1444
|
+
end
|
|
1445
|
+
|
|
1446
|
+
sig { params(msg: Temporalio::Api::Activity::V1::CallbackInfo::Trigger, kw: T.untyped).returns(String) }
|
|
1447
|
+
def self.encode_json(msg, **kw)
|
|
1448
|
+
end
|
|
1449
|
+
|
|
1450
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1451
|
+
def self.descriptor
|
|
1452
|
+
end
|
|
1453
|
+
end
|