temporalio 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +4035 -0
- data/Cargo.toml +25 -0
- data/Gemfile +20 -0
- data/LICENSE +16 -15
- data/README.md +455 -195
- data/Rakefile +387 -0
- data/ext/Cargo.toml +25 -0
- data/lib/temporalio/activity/complete_async_error.rb +11 -0
- data/lib/temporalio/activity/context.rb +82 -77
- data/lib/temporalio/activity/definition.rb +77 -0
- data/lib/temporalio/activity/info.rb +42 -46
- data/lib/temporalio/activity.rb +49 -65
- data/lib/temporalio/api/batch/v1/message.rb +31 -0
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +93 -0
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +25 -0
- data/lib/temporalio/api/cloud/cloudservice.rb +3 -0
- data/lib/temporalio/api/cloud/identity/v1/message.rb +36 -0
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +35 -0
- data/lib/temporalio/api/cloud/operation/v1/message.rb +27 -0
- data/lib/temporalio/api/cloud/region/v1/message.rb +23 -0
- data/lib/temporalio/api/command/v1/message.rb +46 -0
- data/lib/temporalio/api/common/v1/grpc_status.rb +23 -0
- data/lib/temporalio/api/common/v1/message.rb +41 -0
- data/lib/temporalio/api/enums/v1/batch_operation.rb +22 -0
- data/lib/temporalio/api/enums/v1/command_type.rb +21 -0
- data/lib/temporalio/api/enums/v1/common.rb +26 -0
- data/lib/temporalio/api/enums/v1/event_type.rb +21 -0
- data/lib/temporalio/api/enums/v1/failed_cause.rb +26 -0
- data/lib/temporalio/api/enums/v1/namespace.rb +23 -0
- data/lib/temporalio/api/enums/v1/query.rb +22 -0
- data/lib/temporalio/api/enums/v1/reset.rb +23 -0
- data/lib/temporalio/api/enums/v1/schedule.rb +21 -0
- data/lib/temporalio/api/enums/v1/task_queue.rb +25 -0
- data/lib/temporalio/api/enums/v1/update.rb +22 -0
- data/lib/temporalio/api/enums/v1/workflow.rb +30 -0
- data/lib/temporalio/api/errordetails/v1/message.rb +42 -0
- data/lib/temporalio/api/export/v1/message.rb +24 -0
- data/lib/temporalio/api/failure/v1/message.rb +35 -0
- data/lib/temporalio/api/filter/v1/message.rb +27 -0
- data/lib/temporalio/api/history/v1/message.rb +90 -0
- data/lib/temporalio/api/namespace/v1/message.rb +31 -0
- data/lib/temporalio/api/nexus/v1/message.rb +40 -0
- data/lib/temporalio/api/operatorservice/v1/request_response.rb +49 -0
- data/lib/temporalio/api/operatorservice/v1/service.rb +23 -0
- data/lib/temporalio/api/operatorservice.rb +3 -0
- data/lib/temporalio/api/protocol/v1/message.rb +23 -0
- data/lib/temporalio/api/query/v1/message.rb +27 -0
- data/lib/temporalio/api/replication/v1/message.rb +26 -0
- data/lib/temporalio/api/schedule/v1/message.rb +42 -0
- data/lib/temporalio/api/sdk/v1/enhanced_stack_trace.rb +25 -0
- data/lib/temporalio/api/sdk/v1/task_complete_metadata.rb +21 -0
- data/lib/temporalio/api/sdk/v1/user_metadata.rb +23 -0
- data/lib/temporalio/api/sdk/v1/workflow_metadata.rb +23 -0
- data/lib/temporalio/api/taskqueue/v1/message.rb +45 -0
- data/lib/temporalio/api/update/v1/message.rb +33 -0
- data/lib/temporalio/api/version/v1/message.rb +26 -0
- data/lib/temporalio/api/workflow/v1/message.rb +43 -0
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +189 -0
- data/lib/temporalio/api/workflowservice/v1/service.rb +23 -0
- data/lib/temporalio/api/workflowservice.rb +3 -0
- data/lib/temporalio/api.rb +13 -0
- data/lib/temporalio/cancellation.rb +150 -0
- data/lib/temporalio/client/activity_id_reference.rb +32 -0
- data/lib/temporalio/client/async_activity_handle.rb +110 -0
- data/lib/temporalio/client/connection/cloud_service.rb +648 -0
- data/lib/temporalio/client/connection/operator_service.rb +249 -0
- data/lib/temporalio/client/connection/service.rb +41 -0
- data/lib/temporalio/client/connection/workflow_service.rb +1218 -0
- data/lib/temporalio/client/connection.rb +270 -0
- data/lib/temporalio/client/interceptor.rb +316 -0
- data/lib/temporalio/client/workflow_execution.rb +103 -0
- data/lib/temporalio/client/workflow_execution_count.rb +36 -0
- data/lib/temporalio/client/workflow_execution_status.rb +18 -0
- data/lib/temporalio/client/workflow_handle.rb +380 -177
- data/lib/temporalio/client/workflow_query_reject_condition.rb +14 -0
- data/lib/temporalio/client/workflow_update_handle.rb +67 -0
- data/lib/temporalio/client/workflow_update_wait_stage.rb +17 -0
- data/lib/temporalio/client.rb +366 -93
- data/lib/temporalio/common_enums.rb +24 -0
- data/lib/temporalio/converters/data_converter.rb +102 -0
- data/lib/temporalio/converters/failure_converter.rb +200 -0
- data/lib/temporalio/converters/payload_codec.rb +26 -0
- data/lib/temporalio/converters/payload_converter/binary_null.rb +34 -0
- data/lib/temporalio/converters/payload_converter/binary_plain.rb +35 -0
- data/lib/temporalio/converters/payload_converter/binary_protobuf.rb +42 -0
- data/lib/temporalio/converters/payload_converter/composite.rb +62 -0
- data/lib/temporalio/converters/payload_converter/encoding.rb +35 -0
- data/lib/temporalio/converters/payload_converter/json_plain.rb +44 -0
- data/lib/temporalio/converters/payload_converter/json_protobuf.rb +41 -0
- data/lib/temporalio/converters/payload_converter.rb +73 -0
- data/lib/temporalio/converters.rb +9 -0
- data/lib/temporalio/error/failure.rb +119 -94
- data/lib/temporalio/error.rb +147 -0
- data/lib/temporalio/internal/bridge/api/activity_result/activity_result.rb +34 -0
- data/lib/temporalio/internal/bridge/api/activity_task/activity_task.rb +31 -0
- data/lib/temporalio/internal/bridge/api/child_workflow/child_workflow.rb +33 -0
- data/lib/temporalio/internal/bridge/api/common/common.rb +26 -0
- data/lib/temporalio/internal/bridge/api/core_interface.rb +36 -0
- data/lib/temporalio/internal/bridge/api/external_data/external_data.rb +27 -0
- data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +52 -0
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +54 -0
- data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +30 -0
- data/lib/temporalio/internal/bridge/api.rb +3 -0
- data/lib/temporalio/internal/bridge/client.rb +90 -0
- data/lib/temporalio/internal/bridge/runtime.rb +53 -0
- data/lib/temporalio/internal/bridge/testing.rb +46 -0
- data/lib/temporalio/internal/bridge/worker.rb +83 -0
- data/lib/temporalio/internal/bridge.rb +36 -0
- data/lib/temporalio/internal/client/implementation.rb +525 -0
- data/lib/temporalio/internal/proto_utils.rb +54 -0
- data/lib/temporalio/internal/worker/activity_worker.rb +345 -0
- data/lib/temporalio/internal/worker/multi_runner.rb +169 -0
- data/lib/temporalio/internal.rb +7 -0
- data/lib/temporalio/retry_policy.rb +39 -80
- data/lib/temporalio/runtime.rb +259 -13
- data/lib/temporalio/scoped_logger.rb +96 -0
- data/lib/temporalio/search_attributes.rb +300 -0
- data/lib/temporalio/testing/activity_environment.rb +132 -0
- data/lib/temporalio/testing/workflow_environment.rb +113 -88
- data/lib/temporalio/testing.rb +4 -169
- data/lib/temporalio/version.rb +3 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +49 -0
- data/lib/temporalio/worker/activity_executor/thread_pool.rb +254 -0
- data/lib/temporalio/worker/activity_executor.rb +55 -0
- data/lib/temporalio/worker/interceptor.rb +88 -0
- data/lib/temporalio/worker/tuner.rb +151 -0
- data/lib/temporalio/worker.rb +385 -163
- data/lib/temporalio/workflow_history.rb +22 -0
- data/lib/temporalio.rb +2 -7
- data/temporalio.gemspec +20 -38
- metadata +131 -596
- data/bridge/Cargo.lock +0 -2997
- data/bridge/Cargo.toml +0 -29
- data/bridge/sdk-core/ARCHITECTURE.md +0 -76
- data/bridge/sdk-core/Cargo.toml +0 -2
- data/bridge/sdk-core/LICENSE.txt +0 -23
- data/bridge/sdk-core/README.md +0 -117
- data/bridge/sdk-core/arch_docs/diagrams/README.md +0 -10
- data/bridge/sdk-core/arch_docs/diagrams/sticky_queues.puml +0 -40
- data/bridge/sdk-core/arch_docs/diagrams/workflow_internals.svg +0 -1
- data/bridge/sdk-core/arch_docs/sticky_queues.md +0 -51
- data/bridge/sdk-core/client/Cargo.toml +0 -40
- data/bridge/sdk-core/client/LICENSE.txt +0 -23
- data/bridge/sdk-core/client/src/lib.rs +0 -1462
- data/bridge/sdk-core/client/src/metrics.rs +0 -174
- data/bridge/sdk-core/client/src/raw.rs +0 -932
- data/bridge/sdk-core/client/src/retry.rs +0 -763
- data/bridge/sdk-core/client/src/workflow_handle/mod.rs +0 -185
- data/bridge/sdk-core/core/Cargo.toml +0 -129
- data/bridge/sdk-core/core/LICENSE.txt +0 -23
- data/bridge/sdk-core/core/benches/workflow_replay.rs +0 -76
- data/bridge/sdk-core/core/src/abstractions.rs +0 -355
- data/bridge/sdk-core/core/src/core_tests/activity_tasks.rs +0 -1049
- data/bridge/sdk-core/core/src/core_tests/child_workflows.rs +0 -221
- data/bridge/sdk-core/core/src/core_tests/determinism.rs +0 -270
- data/bridge/sdk-core/core/src/core_tests/local_activities.rs +0 -1046
- data/bridge/sdk-core/core/src/core_tests/mod.rs +0 -100
- data/bridge/sdk-core/core/src/core_tests/queries.rs +0 -893
- data/bridge/sdk-core/core/src/core_tests/replay_flag.rs +0 -65
- data/bridge/sdk-core/core/src/core_tests/workers.rs +0 -257
- data/bridge/sdk-core/core/src/core_tests/workflow_cancels.rs +0 -124
- data/bridge/sdk-core/core/src/core_tests/workflow_tasks.rs +0 -2433
- data/bridge/sdk-core/core/src/ephemeral_server/mod.rs +0 -609
- data/bridge/sdk-core/core/src/internal_flags.rs +0 -136
- data/bridge/sdk-core/core/src/lib.rs +0 -289
- data/bridge/sdk-core/core/src/pollers/mod.rs +0 -54
- data/bridge/sdk-core/core/src/pollers/poll_buffer.rs +0 -297
- data/bridge/sdk-core/core/src/protosext/mod.rs +0 -428
- data/bridge/sdk-core/core/src/replay/mod.rs +0 -215
- data/bridge/sdk-core/core/src/retry_logic.rs +0 -202
- data/bridge/sdk-core/core/src/telemetry/log_export.rs +0 -190
- data/bridge/sdk-core/core/src/telemetry/metrics.rs +0 -462
- data/bridge/sdk-core/core/src/telemetry/mod.rs +0 -423
- data/bridge/sdk-core/core/src/telemetry/prometheus_server.rs +0 -83
- data/bridge/sdk-core/core/src/test_help/mod.rs +0 -939
- data/bridge/sdk-core/core/src/worker/activities/activity_heartbeat_manager.rs +0 -536
- data/bridge/sdk-core/core/src/worker/activities/activity_task_poller_stream.rs +0 -89
- data/bridge/sdk-core/core/src/worker/activities/local_activities.rs +0 -1278
- data/bridge/sdk-core/core/src/worker/activities.rs +0 -557
- data/bridge/sdk-core/core/src/worker/client/mocks.rs +0 -107
- data/bridge/sdk-core/core/src/worker/client.rs +0 -389
- data/bridge/sdk-core/core/src/worker/mod.rs +0 -677
- data/bridge/sdk-core/core/src/worker/workflow/bridge.rs +0 -35
- data/bridge/sdk-core/core/src/worker/workflow/driven_workflow.rs +0 -99
- data/bridge/sdk-core/core/src/worker/workflow/history_update.rs +0 -1111
- data/bridge/sdk-core/core/src/worker/workflow/machines/activity_state_machine.rs +0 -964
- data/bridge/sdk-core/core/src/worker/workflow/machines/cancel_external_state_machine.rs +0 -294
- data/bridge/sdk-core/core/src/worker/workflow/machines/cancel_workflow_state_machine.rs +0 -168
- data/bridge/sdk-core/core/src/worker/workflow/machines/child_workflow_state_machine.rs +0 -918
- data/bridge/sdk-core/core/src/worker/workflow/machines/complete_workflow_state_machine.rs +0 -137
- data/bridge/sdk-core/core/src/worker/workflow/machines/continue_as_new_workflow_state_machine.rs +0 -158
- data/bridge/sdk-core/core/src/worker/workflow/machines/fail_workflow_state_machine.rs +0 -130
- data/bridge/sdk-core/core/src/worker/workflow/machines/local_activity_state_machine.rs +0 -1525
- data/bridge/sdk-core/core/src/worker/workflow/machines/mod.rs +0 -324
- data/bridge/sdk-core/core/src/worker/workflow/machines/modify_workflow_properties_state_machine.rs +0 -179
- data/bridge/sdk-core/core/src/worker/workflow/machines/patch_state_machine.rs +0 -659
- data/bridge/sdk-core/core/src/worker/workflow/machines/signal_external_state_machine.rs +0 -439
- data/bridge/sdk-core/core/src/worker/workflow/machines/timer_state_machine.rs +0 -435
- data/bridge/sdk-core/core/src/worker/workflow/machines/transition_coverage.rs +0 -175
- data/bridge/sdk-core/core/src/worker/workflow/machines/upsert_search_attributes_state_machine.rs +0 -249
- data/bridge/sdk-core/core/src/worker/workflow/machines/workflow_machines/local_acts.rs +0 -85
- data/bridge/sdk-core/core/src/worker/workflow/machines/workflow_machines.rs +0 -1280
- data/bridge/sdk-core/core/src/worker/workflow/machines/workflow_task_state_machine.rs +0 -269
- data/bridge/sdk-core/core/src/worker/workflow/managed_run/managed_wf_test.rs +0 -213
- data/bridge/sdk-core/core/src/worker/workflow/managed_run.rs +0 -1305
- data/bridge/sdk-core/core/src/worker/workflow/mod.rs +0 -1276
- data/bridge/sdk-core/core/src/worker/workflow/run_cache.rs +0 -128
- data/bridge/sdk-core/core/src/worker/workflow/wft_extraction.rs +0 -125
- data/bridge/sdk-core/core/src/worker/workflow/wft_poller.rs +0 -85
- data/bridge/sdk-core/core/src/worker/workflow/workflow_stream/saved_wf_inputs.rs +0 -117
- data/bridge/sdk-core/core/src/worker/workflow/workflow_stream/tonic_status_serde.rs +0 -24
- data/bridge/sdk-core/core/src/worker/workflow/workflow_stream.rs +0 -715
- data/bridge/sdk-core/core-api/Cargo.toml +0 -33
- data/bridge/sdk-core/core-api/LICENSE.txt +0 -23
- data/bridge/sdk-core/core-api/src/errors.rs +0 -62
- data/bridge/sdk-core/core-api/src/lib.rs +0 -113
- data/bridge/sdk-core/core-api/src/telemetry.rs +0 -141
- data/bridge/sdk-core/core-api/src/worker.rs +0 -161
- data/bridge/sdk-core/etc/deps.svg +0 -162
- data/bridge/sdk-core/etc/dynamic-config.yaml +0 -2
- data/bridge/sdk-core/etc/otel-collector-config.yaml +0 -36
- data/bridge/sdk-core/etc/prometheus.yaml +0 -6
- data/bridge/sdk-core/etc/regen-depgraph.sh +0 -5
- data/bridge/sdk-core/fsm/Cargo.toml +0 -18
- data/bridge/sdk-core/fsm/LICENSE.txt +0 -23
- data/bridge/sdk-core/fsm/README.md +0 -3
- data/bridge/sdk-core/fsm/rustfsm_procmacro/Cargo.toml +0 -27
- data/bridge/sdk-core/fsm/rustfsm_procmacro/LICENSE.txt +0 -23
- data/bridge/sdk-core/fsm/rustfsm_procmacro/src/lib.rs +0 -650
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/progress.rs +0 -8
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/dupe_transitions_fail.rs +0 -18
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/dupe_transitions_fail.stderr +0 -12
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/dynamic_dest_pass.rs +0 -41
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/forgot_name_fail.rs +0 -14
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/forgot_name_fail.stderr +0 -11
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/handler_arg_pass.rs +0 -32
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/handler_pass.rs +0 -31
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/medium_complex_pass.rs +0 -46
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/no_handle_conversions_require_into_fail.rs +0 -29
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/no_handle_conversions_require_into_fail.stderr +0 -12
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/simple_pass.rs +0 -32
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/struct_event_variant_fail.rs +0 -18
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/struct_event_variant_fail.stderr +0 -5
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/tuple_more_item_event_variant_fail.rs +0 -11
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/tuple_more_item_event_variant_fail.stderr +0 -5
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/tuple_zero_item_event_variant_fail.rs +0 -11
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/tuple_zero_item_event_variant_fail.stderr +0 -5
- data/bridge/sdk-core/fsm/rustfsm_trait/Cargo.toml +0 -14
- data/bridge/sdk-core/fsm/rustfsm_trait/LICENSE.txt +0 -23
- data/bridge/sdk-core/fsm/rustfsm_trait/src/lib.rs +0 -254
- data/bridge/sdk-core/fsm/src/lib.rs +0 -2
- data/bridge/sdk-core/histories/evict_while_la_running_no_interference-16_history.bin +0 -0
- data/bridge/sdk-core/histories/evict_while_la_running_no_interference-23_history.bin +0 -0
- data/bridge/sdk-core/histories/evict_while_la_running_no_interference-85_history.bin +0 -0
- data/bridge/sdk-core/histories/fail_wf_task.bin +0 -0
- data/bridge/sdk-core/histories/timer_workflow_history.bin +0 -0
- data/bridge/sdk-core/integ-with-otel.sh +0 -7
- data/bridge/sdk-core/protos/api_upstream/README.md +0 -9
- data/bridge/sdk-core/protos/api_upstream/api-linter.yaml +0 -40
- data/bridge/sdk-core/protos/api_upstream/buf.yaml +0 -9
- data/bridge/sdk-core/protos/api_upstream/build/go.mod +0 -7
- data/bridge/sdk-core/protos/api_upstream/build/go.sum +0 -5
- data/bridge/sdk-core/protos/api_upstream/build/tools.go +0 -29
- data/bridge/sdk-core/protos/api_upstream/dependencies/gogoproto/gogo.proto +0 -141
- data/bridge/sdk-core/protos/api_upstream/go.mod +0 -6
- data/bridge/sdk-core/protos/api_upstream/temporal/api/batch/v1/message.proto +0 -89
- data/bridge/sdk-core/protos/api_upstream/temporal/api/command/v1/message.proto +0 -248
- data/bridge/sdk-core/protos/api_upstream/temporal/api/common/v1/message.proto +0 -123
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/batch_operation.proto +0 -47
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/command_type.proto +0 -52
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/common.proto +0 -56
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/event_type.proto +0 -170
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/failed_cause.proto +0 -123
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/namespace.proto +0 -51
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/query.proto +0 -50
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/reset.proto +0 -41
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/schedule.proto +0 -60
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/task_queue.proto +0 -59
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/update.proto +0 -56
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/workflow.proto +0 -122
- data/bridge/sdk-core/protos/api_upstream/temporal/api/errordetails/v1/message.proto +0 -108
- data/bridge/sdk-core/protos/api_upstream/temporal/api/failure/v1/message.proto +0 -114
- data/bridge/sdk-core/protos/api_upstream/temporal/api/filter/v1/message.proto +0 -56
- data/bridge/sdk-core/protos/api_upstream/temporal/api/history/v1/message.proto +0 -787
- data/bridge/sdk-core/protos/api_upstream/temporal/api/namespace/v1/message.proto +0 -99
- data/bridge/sdk-core/protos/api_upstream/temporal/api/operatorservice/v1/request_response.proto +0 -124
- data/bridge/sdk-core/protos/api_upstream/temporal/api/operatorservice/v1/service.proto +0 -80
- data/bridge/sdk-core/protos/api_upstream/temporal/api/protocol/v1/message.proto +0 -57
- data/bridge/sdk-core/protos/api_upstream/temporal/api/query/v1/message.proto +0 -61
- data/bridge/sdk-core/protos/api_upstream/temporal/api/replication/v1/message.proto +0 -55
- data/bridge/sdk-core/protos/api_upstream/temporal/api/schedule/v1/message.proto +0 -379
- data/bridge/sdk-core/protos/api_upstream/temporal/api/sdk/v1/task_complete_metadata.proto +0 -63
- data/bridge/sdk-core/protos/api_upstream/temporal/api/taskqueue/v1/message.proto +0 -108
- data/bridge/sdk-core/protos/api_upstream/temporal/api/update/v1/message.proto +0 -111
- data/bridge/sdk-core/protos/api_upstream/temporal/api/version/v1/message.proto +0 -59
- data/bridge/sdk-core/protos/api_upstream/temporal/api/workflow/v1/message.proto +0 -146
- data/bridge/sdk-core/protos/api_upstream/temporal/api/workflowservice/v1/request_response.proto +0 -1199
- data/bridge/sdk-core/protos/api_upstream/temporal/api/workflowservice/v1/service.proto +0 -415
- data/bridge/sdk-core/protos/grpc/health/v1/health.proto +0 -63
- data/bridge/sdk-core/protos/local/temporal/sdk/core/activity_result/activity_result.proto +0 -79
- data/bridge/sdk-core/protos/local/temporal/sdk/core/activity_task/activity_task.proto +0 -80
- data/bridge/sdk-core/protos/local/temporal/sdk/core/child_workflow/child_workflow.proto +0 -78
- data/bridge/sdk-core/protos/local/temporal/sdk/core/common/common.proto +0 -16
- data/bridge/sdk-core/protos/local/temporal/sdk/core/core_interface.proto +0 -31
- data/bridge/sdk-core/protos/local/temporal/sdk/core/external_data/external_data.proto +0 -31
- data/bridge/sdk-core/protos/local/temporal/sdk/core/workflow_activation/workflow_activation.proto +0 -270
- data/bridge/sdk-core/protos/local/temporal/sdk/core/workflow_commands/workflow_commands.proto +0 -305
- data/bridge/sdk-core/protos/local/temporal/sdk/core/workflow_completion/workflow_completion.proto +0 -35
- data/bridge/sdk-core/protos/testsrv_upstream/api-linter.yaml +0 -38
- data/bridge/sdk-core/protos/testsrv_upstream/buf.yaml +0 -13
- data/bridge/sdk-core/protos/testsrv_upstream/dependencies/gogoproto/gogo.proto +0 -141
- data/bridge/sdk-core/protos/testsrv_upstream/temporal/api/testservice/v1/request_response.proto +0 -63
- data/bridge/sdk-core/protos/testsrv_upstream/temporal/api/testservice/v1/service.proto +0 -90
- data/bridge/sdk-core/rustfmt.toml +0 -1
- data/bridge/sdk-core/sdk/Cargo.toml +0 -48
- data/bridge/sdk-core/sdk/LICENSE.txt +0 -23
- data/bridge/sdk-core/sdk/src/activity_context.rs +0 -230
- data/bridge/sdk-core/sdk/src/app_data.rs +0 -37
- data/bridge/sdk-core/sdk/src/interceptors.rs +0 -50
- data/bridge/sdk-core/sdk/src/lib.rs +0 -861
- data/bridge/sdk-core/sdk/src/payload_converter.rs +0 -11
- data/bridge/sdk-core/sdk/src/workflow_context/options.rs +0 -295
- data/bridge/sdk-core/sdk/src/workflow_context.rs +0 -694
- data/bridge/sdk-core/sdk/src/workflow_future.rs +0 -500
- data/bridge/sdk-core/sdk-core-protos/Cargo.toml +0 -33
- data/bridge/sdk-core/sdk-core-protos/LICENSE.txt +0 -23
- data/bridge/sdk-core/sdk-core-protos/build.rs +0 -142
- data/bridge/sdk-core/sdk-core-protos/src/constants.rs +0 -7
- data/bridge/sdk-core/sdk-core-protos/src/history_builder.rs +0 -557
- data/bridge/sdk-core/sdk-core-protos/src/history_info.rs +0 -234
- data/bridge/sdk-core/sdk-core-protos/src/lib.rs +0 -2088
- data/bridge/sdk-core/sdk-core-protos/src/task_token.rs +0 -48
- data/bridge/sdk-core/sdk-core-protos/src/utilities.rs +0 -14
- data/bridge/sdk-core/test-utils/Cargo.toml +0 -38
- data/bridge/sdk-core/test-utils/src/canned_histories.rs +0 -1389
- data/bridge/sdk-core/test-utils/src/histfetch.rs +0 -28
- data/bridge/sdk-core/test-utils/src/lib.rs +0 -709
- data/bridge/sdk-core/test-utils/src/wf_input_saver.rs +0 -50
- data/bridge/sdk-core/test-utils/src/workflows.rs +0 -29
- data/bridge/sdk-core/tests/fuzzy_workflow.rs +0 -130
- data/bridge/sdk-core/tests/heavy_tests.rs +0 -265
- data/bridge/sdk-core/tests/integ_tests/client_tests.rs +0 -36
- data/bridge/sdk-core/tests/integ_tests/ephemeral_server_tests.rs +0 -150
- data/bridge/sdk-core/tests/integ_tests/heartbeat_tests.rs +0 -223
- data/bridge/sdk-core/tests/integ_tests/metrics_tests.rs +0 -239
- data/bridge/sdk-core/tests/integ_tests/polling_tests.rs +0 -90
- data/bridge/sdk-core/tests/integ_tests/queries_tests.rs +0 -314
- data/bridge/sdk-core/tests/integ_tests/visibility_tests.rs +0 -151
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/activities.rs +0 -902
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/appdata_propagation.rs +0 -61
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/cancel_external.rs +0 -60
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/cancel_wf.rs +0 -51
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/child_workflows.rs +0 -51
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/continue_as_new.rs +0 -64
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/determinism.rs +0 -47
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/local_activities.rs +0 -669
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/modify_wf_properties.rs +0 -54
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/patches.rs +0 -92
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/replay.rs +0 -228
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/resets.rs +0 -94
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/signals.rs +0 -171
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/stickyness.rs +0 -85
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/timers.rs +0 -120
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/upsert_search_attrs.rs +0 -77
- data/bridge/sdk-core/tests/integ_tests/workflow_tests.rs +0 -596
- data/bridge/sdk-core/tests/main.rs +0 -103
- data/bridge/sdk-core/tests/runner.rs +0 -132
- data/bridge/sdk-core/tests/wf_input_replay.rs +0 -32
- data/bridge/src/connection.rs +0 -202
- data/bridge/src/lib.rs +0 -494
- data/bridge/src/runtime.rs +0 -54
- data/bridge/src/test_server.rs +0 -153
- data/bridge/src/worker.rs +0 -197
- data/ext/Rakefile +0 -9
- data/lib/gen/dependencies/gogoproto/gogo_pb.rb +0 -14
- data/lib/gen/temporal/api/batch/v1/message_pb.rb +0 -50
- data/lib/gen/temporal/api/command/v1/message_pb.rb +0 -160
- data/lib/gen/temporal/api/common/v1/message_pb.rb +0 -73
- data/lib/gen/temporal/api/enums/v1/batch_operation_pb.rb +0 -33
- data/lib/gen/temporal/api/enums/v1/command_type_pb.rb +0 -37
- data/lib/gen/temporal/api/enums/v1/common_pb.rb +0 -42
- data/lib/gen/temporal/api/enums/v1/event_type_pb.rb +0 -68
- data/lib/gen/temporal/api/enums/v1/failed_cause_pb.rb +0 -79
- data/lib/gen/temporal/api/enums/v1/namespace_pb.rb +0 -37
- data/lib/gen/temporal/api/enums/v1/query_pb.rb +0 -31
- data/lib/gen/temporal/api/enums/v1/reset_pb.rb +0 -24
- data/lib/gen/temporal/api/enums/v1/schedule_pb.rb +0 -28
- data/lib/gen/temporal/api/enums/v1/task_queue_pb.rb +0 -30
- data/lib/gen/temporal/api/enums/v1/update_pb.rb +0 -25
- data/lib/gen/temporal/api/enums/v1/workflow_pb.rb +0 -89
- data/lib/gen/temporal/api/errordetails/v1/message_pb.rb +0 -84
- data/lib/gen/temporal/api/failure/v1/message_pb.rb +0 -83
- data/lib/gen/temporal/api/filter/v1/message_pb.rb +0 -40
- data/lib/gen/temporal/api/history/v1/message_pb.rb +0 -498
- data/lib/gen/temporal/api/namespace/v1/message_pb.rb +0 -64
- data/lib/gen/temporal/api/operatorservice/v1/request_response_pb.rb +0 -88
- data/lib/gen/temporal/api/operatorservice/v1/service_pb.rb +0 -20
- data/lib/gen/temporal/api/protocol/v1/message_pb.rb +0 -30
- data/lib/gen/temporal/api/query/v1/message_pb.rb +0 -38
- data/lib/gen/temporal/api/replication/v1/message_pb.rb +0 -37
- data/lib/gen/temporal/api/schedule/v1/message_pb.rb +0 -149
- data/lib/gen/temporal/api/sdk/v1/task_complete_metadata_pb.rb +0 -23
- data/lib/gen/temporal/api/taskqueue/v1/message_pb.rb +0 -73
- data/lib/gen/temporal/api/testservice/v1/request_response_pb.rb +0 -49
- data/lib/gen/temporal/api/testservice/v1/service_pb.rb +0 -21
- data/lib/gen/temporal/api/update/v1/message_pb.rb +0 -72
- data/lib/gen/temporal/api/version/v1/message_pb.rb +0 -41
- data/lib/gen/temporal/api/workflow/v1/message_pb.rb +0 -111
- data/lib/gen/temporal/api/workflowservice/v1/request_response_pb.rb +0 -798
- data/lib/gen/temporal/api/workflowservice/v1/service_pb.rb +0 -20
- data/lib/gen/temporal/sdk/core/activity_result/activity_result_pb.rb +0 -62
- data/lib/gen/temporal/sdk/core/activity_task/activity_task_pb.rb +0 -61
- data/lib/gen/temporal/sdk/core/child_workflow/child_workflow_pb.rb +0 -61
- data/lib/gen/temporal/sdk/core/common/common_pb.rb +0 -26
- data/lib/gen/temporal/sdk/core/core_interface_pb.rb +0 -40
- data/lib/gen/temporal/sdk/core/external_data/external_data_pb.rb +0 -31
- data/lib/gen/temporal/sdk/core/workflow_activation/workflow_activation_pb.rb +0 -171
- data/lib/gen/temporal/sdk/core/workflow_commands/workflow_commands_pb.rb +0 -200
- data/lib/gen/temporal/sdk/core/workflow_completion/workflow_completion_pb.rb +0 -41
- data/lib/temporalio/bridge/connect_options.rb +0 -15
- data/lib/temporalio/bridge/error.rb +0 -8
- data/lib/temporalio/bridge/retry_config.rb +0 -24
- data/lib/temporalio/bridge/tls_options.rb +0 -19
- data/lib/temporalio/bridge.rb +0 -14
- data/lib/temporalio/client/implementation.rb +0 -340
- data/lib/temporalio/connection/retry_config.rb +0 -44
- data/lib/temporalio/connection/service.rb +0 -20
- data/lib/temporalio/connection/test_service.rb +0 -92
- data/lib/temporalio/connection/tls_options.rb +0 -51
- data/lib/temporalio/connection/workflow_service.rb +0 -731
- data/lib/temporalio/connection.rb +0 -86
- data/lib/temporalio/data_converter.rb +0 -191
- data/lib/temporalio/error/workflow_failure.rb +0 -19
- data/lib/temporalio/errors.rb +0 -40
- data/lib/temporalio/failure_converter/base.rb +0 -26
- data/lib/temporalio/failure_converter/basic.rb +0 -319
- data/lib/temporalio/failure_converter.rb +0 -7
- data/lib/temporalio/interceptor/activity_inbound.rb +0 -22
- data/lib/temporalio/interceptor/activity_outbound.rb +0 -24
- data/lib/temporalio/interceptor/chain.rb +0 -28
- data/lib/temporalio/interceptor/client.rb +0 -127
- data/lib/temporalio/interceptor.rb +0 -22
- data/lib/temporalio/payload_codec/base.rb +0 -32
- data/lib/temporalio/payload_converter/base.rb +0 -24
- data/lib/temporalio/payload_converter/bytes.rb +0 -27
- data/lib/temporalio/payload_converter/composite.rb +0 -49
- data/lib/temporalio/payload_converter/encoding_base.rb +0 -35
- data/lib/temporalio/payload_converter/json.rb +0 -26
- data/lib/temporalio/payload_converter/nil.rb +0 -26
- data/lib/temporalio/payload_converter.rb +0 -14
- data/lib/temporalio/retry_state.rb +0 -35
- data/lib/temporalio/testing/time_skipping_handle.rb +0 -32
- data/lib/temporalio/testing/time_skipping_interceptor.rb +0 -23
- data/lib/temporalio/timeout_type.rb +0 -29
- data/lib/temporalio/worker/activity_runner.rb +0 -114
- data/lib/temporalio/worker/activity_worker.rb +0 -164
- data/lib/temporalio/worker/reactor.rb +0 -46
- data/lib/temporalio/worker/runner.rb +0 -63
- data/lib/temporalio/worker/sync_worker.rb +0 -124
- data/lib/temporalio/worker/thread_pool_executor.rb +0 -51
- data/lib/temporalio/workflow/async.rb +0 -46
- data/lib/temporalio/workflow/execution_info.rb +0 -54
- data/lib/temporalio/workflow/execution_status.rb +0 -36
- data/lib/temporalio/workflow/future.rb +0 -138
- data/lib/temporalio/workflow/id_reuse_policy.rb +0 -36
- data/lib/temporalio/workflow/info.rb +0 -76
- data/lib/temporalio/workflow/query_reject_condition.rb +0 -33
- data/lib/thermite_patch.rb +0 -23
data/bridge/sdk-core/protos/api_upstream/temporal/api/workflowservice/v1/request_response.proto
DELETED
@@ -1,1199 +0,0 @@
|
|
1
|
-
// The MIT License
|
2
|
-
//
|
3
|
-
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
|
4
|
-
//
|
5
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
// of this software and associated documentation files (the "Software"), to deal
|
7
|
-
// in the Software without restriction, including without limitation the rights
|
8
|
-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
// copies of the Software, and to permit persons to whom the Software is
|
10
|
-
// furnished to do so, subject to the following conditions:
|
11
|
-
//
|
12
|
-
// The above copyright notice and this permission notice shall be included in
|
13
|
-
// all copies or substantial portions of the Software.
|
14
|
-
//
|
15
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
// THE SOFTWARE.
|
22
|
-
|
23
|
-
syntax = "proto3";
|
24
|
-
|
25
|
-
package temporal.api.workflowservice.v1;
|
26
|
-
|
27
|
-
option go_package = "go.temporal.io/api/workflowservice/v1;workflowservice";
|
28
|
-
option java_package = "io.temporal.api.workflowservice.v1";
|
29
|
-
option java_multiple_files = true;
|
30
|
-
option java_outer_classname = "RequestResponseProto";
|
31
|
-
option ruby_package = "Temporalio::Api::WorkflowService::V1";
|
32
|
-
option csharp_namespace = "Temporalio.Api.WorkflowService.V1";
|
33
|
-
|
34
|
-
import "temporal/api/enums/v1/batch_operation.proto";
|
35
|
-
import "temporal/api/enums/v1/workflow.proto";
|
36
|
-
import "temporal/api/enums/v1/namespace.proto";
|
37
|
-
import "temporal/api/enums/v1/failed_cause.proto";
|
38
|
-
import "temporal/api/enums/v1/common.proto";
|
39
|
-
import "temporal/api/enums/v1/query.proto";
|
40
|
-
import "temporal/api/enums/v1/reset.proto";
|
41
|
-
import "temporal/api/enums/v1/task_queue.proto";
|
42
|
-
import "temporal/api/common/v1/message.proto";
|
43
|
-
import "temporal/api/history/v1/message.proto";
|
44
|
-
import "temporal/api/workflow/v1/message.proto";
|
45
|
-
import "temporal/api/command/v1/message.proto";
|
46
|
-
import "temporal/api/failure/v1/message.proto";
|
47
|
-
import "temporal/api/filter/v1/message.proto";
|
48
|
-
import "temporal/api/protocol/v1/message.proto";
|
49
|
-
import "temporal/api/namespace/v1/message.proto";
|
50
|
-
import "temporal/api/query/v1/message.proto";
|
51
|
-
import "temporal/api/replication/v1/message.proto";
|
52
|
-
import "temporal/api/schedule/v1/message.proto";
|
53
|
-
import "temporal/api/taskqueue/v1/message.proto";
|
54
|
-
import "temporal/api/update/v1/message.proto";
|
55
|
-
import "temporal/api/version/v1/message.proto";
|
56
|
-
import "temporal/api/batch/v1/message.proto";
|
57
|
-
import "temporal/api/sdk/v1/task_complete_metadata.proto";
|
58
|
-
|
59
|
-
import "google/protobuf/duration.proto";
|
60
|
-
import "google/protobuf/timestamp.proto";
|
61
|
-
|
62
|
-
import "dependencies/gogoproto/gogo.proto";
|
63
|
-
|
64
|
-
message RegisterNamespaceRequest {
|
65
|
-
string namespace = 1;
|
66
|
-
string description = 2;
|
67
|
-
string owner_email = 3;
|
68
|
-
google.protobuf.Duration workflow_execution_retention_period = 4 [(gogoproto.stdduration) = true];
|
69
|
-
repeated temporal.api.replication.v1.ClusterReplicationConfig clusters = 5;
|
70
|
-
string active_cluster_name = 6;
|
71
|
-
// A key-value map for any customized purpose.
|
72
|
-
map<string, string> data = 7;
|
73
|
-
string security_token = 8;
|
74
|
-
bool is_global_namespace = 9;
|
75
|
-
// If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
|
76
|
-
temporal.api.enums.v1.ArchivalState history_archival_state = 10;
|
77
|
-
string history_archival_uri = 11;
|
78
|
-
// If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
|
79
|
-
temporal.api.enums.v1.ArchivalState visibility_archival_state = 12;
|
80
|
-
string visibility_archival_uri = 13;
|
81
|
-
}
|
82
|
-
|
83
|
-
message RegisterNamespaceResponse {
|
84
|
-
}
|
85
|
-
|
86
|
-
message ListNamespacesRequest {
|
87
|
-
int32 page_size = 1;
|
88
|
-
bytes next_page_token = 2;
|
89
|
-
temporal.api.namespace.v1.NamespaceFilter namespace_filter = 3;
|
90
|
-
}
|
91
|
-
|
92
|
-
message ListNamespacesResponse {
|
93
|
-
repeated DescribeNamespaceResponse namespaces = 1;
|
94
|
-
bytes next_page_token = 2;
|
95
|
-
}
|
96
|
-
|
97
|
-
message DescribeNamespaceRequest {
|
98
|
-
string namespace = 1;
|
99
|
-
string id = 2;
|
100
|
-
}
|
101
|
-
|
102
|
-
message DescribeNamespaceResponse {
|
103
|
-
temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
|
104
|
-
temporal.api.namespace.v1.NamespaceConfig config = 2;
|
105
|
-
temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
|
106
|
-
int64 failover_version = 4;
|
107
|
-
bool is_global_namespace = 5;
|
108
|
-
// Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
|
109
|
-
// states to ensure that the list does not grow unbounded.
|
110
|
-
repeated temporal.api.replication.v1.FailoverStatus failover_history = 6;
|
111
|
-
}
|
112
|
-
|
113
|
-
// (-- api-linter: core::0134::request-mask-required=disabled
|
114
|
-
// aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
|
115
|
-
// (-- api-linter: core::0134::request-resource-required=disabled
|
116
|
-
// aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
|
117
|
-
message UpdateNamespaceRequest {
|
118
|
-
string namespace = 1;
|
119
|
-
temporal.api.namespace.v1.UpdateNamespaceInfo update_info = 2;
|
120
|
-
temporal.api.namespace.v1.NamespaceConfig config = 3;
|
121
|
-
temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 4;
|
122
|
-
string security_token = 5;
|
123
|
-
string delete_bad_binary = 6;
|
124
|
-
// promote local namespace to global namespace. Ignored if namespace is already global namespace.
|
125
|
-
bool promote_namespace = 7;
|
126
|
-
}
|
127
|
-
|
128
|
-
message UpdateNamespaceResponse {
|
129
|
-
temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
|
130
|
-
temporal.api.namespace.v1.NamespaceConfig config = 2;
|
131
|
-
temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
|
132
|
-
int64 failover_version = 4;
|
133
|
-
bool is_global_namespace = 5;
|
134
|
-
}
|
135
|
-
|
136
|
-
// Deprecated.
|
137
|
-
message DeprecateNamespaceRequest {
|
138
|
-
string namespace = 1;
|
139
|
-
string security_token = 2;
|
140
|
-
}
|
141
|
-
|
142
|
-
// Deprecated.
|
143
|
-
message DeprecateNamespaceResponse {
|
144
|
-
}
|
145
|
-
|
146
|
-
message StartWorkflowExecutionRequest {
|
147
|
-
string namespace = 1;
|
148
|
-
string workflow_id = 2;
|
149
|
-
temporal.api.common.v1.WorkflowType workflow_type = 3;
|
150
|
-
temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
|
151
|
-
// Serialized arguments to the workflow. These are passed as arguments to the workflow function.
|
152
|
-
temporal.api.common.v1.Payloads input = 5;
|
153
|
-
// Total workflow execution timeout including retries and continue as new.
|
154
|
-
google.protobuf.Duration workflow_execution_timeout = 6 [(gogoproto.stdduration) = true];
|
155
|
-
// Timeout of a single workflow run.
|
156
|
-
google.protobuf.Duration workflow_run_timeout = 7 [(gogoproto.stdduration) = true];
|
157
|
-
// Timeout of a single workflow task.
|
158
|
-
google.protobuf.Duration workflow_task_timeout = 8 [(gogoproto.stdduration) = true];
|
159
|
-
// The identity of the client who initiated this request
|
160
|
-
string identity = 9;
|
161
|
-
// A unique identifier for this start request. Typically UUIDv4.
|
162
|
-
string request_id = 10;
|
163
|
-
// Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
|
164
|
-
temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
|
165
|
-
// The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
|
166
|
-
temporal.api.common.v1.RetryPolicy retry_policy = 12;
|
167
|
-
// See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
|
168
|
-
string cron_schedule = 13;
|
169
|
-
temporal.api.common.v1.Memo memo = 14;
|
170
|
-
temporal.api.common.v1.SearchAttributes search_attributes = 15;
|
171
|
-
temporal.api.common.v1.Header header = 16;
|
172
|
-
// Request to get the first workflow task inline in the response bypassing matching service and worker polling.
|
173
|
-
// If set to `true` the caller is expected to have a worker available and capable of processing the task.
|
174
|
-
// The returned task will be marked as started and is expected to be completed by the specified
|
175
|
-
// `workflow_task_timeout`.
|
176
|
-
bool request_eager_execution = 17;
|
177
|
-
// These values will be available as ContinuedFailure and LastCompletionResult in the
|
178
|
-
// WorkflowExecutionStarted event and through SDKs. The are currently only used by the
|
179
|
-
// server itself (for the schedules feature) and are not intended to be exposed in
|
180
|
-
// StartWorkflowExecution.
|
181
|
-
temporal.api.failure.v1.Failure continued_failure = 18;
|
182
|
-
temporal.api.common.v1.Payloads last_completion_result = 19;
|
183
|
-
}
|
184
|
-
|
185
|
-
message StartWorkflowExecutionResponse {
|
186
|
-
string run_id = 1;
|
187
|
-
// When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
|
188
|
-
// return the first workflow task to be eagerly executed.
|
189
|
-
// The caller is expected to have a worker available to process the task.
|
190
|
-
PollWorkflowTaskQueueResponse eager_workflow_task = 2;
|
191
|
-
}
|
192
|
-
|
193
|
-
message GetWorkflowExecutionHistoryRequest {
|
194
|
-
string namespace = 1;
|
195
|
-
temporal.api.common.v1.WorkflowExecution execution = 2;
|
196
|
-
int32 maximum_page_size = 3;
|
197
|
-
// If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of
|
198
|
-
// these, it should be passed here to fetch the next page.
|
199
|
-
bytes next_page_token = 4;
|
200
|
-
// If set to true, the RPC call will not resolve until there is a new event which matches
|
201
|
-
// the `history_event_filter_type`, or a timeout is hit.
|
202
|
-
bool wait_new_event = 5;
|
203
|
-
// Filter returned events such that they match the specified filter type.
|
204
|
-
// Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT.
|
205
|
-
temporal.api.enums.v1.HistoryEventFilterType history_event_filter_type = 6;
|
206
|
-
bool skip_archival = 7;
|
207
|
-
}
|
208
|
-
|
209
|
-
message GetWorkflowExecutionHistoryResponse {
|
210
|
-
temporal.api.history.v1.History history = 1;
|
211
|
-
// Raw history is an alternate representation of history that may be returned if configured on
|
212
|
-
// the frontend. This is not supported by all SDKs. Either this or `history` will be set.
|
213
|
-
repeated temporal.api.common.v1.DataBlob raw_history = 2;
|
214
|
-
// Will be set if there are more history events than were included in this response
|
215
|
-
bytes next_page_token = 3;
|
216
|
-
bool archived = 4;
|
217
|
-
}
|
218
|
-
|
219
|
-
message GetWorkflowExecutionHistoryReverseRequest {
|
220
|
-
string namespace = 1;
|
221
|
-
temporal.api.common.v1.WorkflowExecution execution = 2;
|
222
|
-
int32 maximum_page_size = 3;
|
223
|
-
bytes next_page_token = 4;
|
224
|
-
}
|
225
|
-
|
226
|
-
message GetWorkflowExecutionHistoryReverseResponse {
|
227
|
-
temporal.api.history.v1.History history = 1;
|
228
|
-
// Will be set if there are more history events than were included in this response
|
229
|
-
bytes next_page_token = 3;
|
230
|
-
}
|
231
|
-
|
232
|
-
message PollWorkflowTaskQueueRequest {
|
233
|
-
string namespace = 1;
|
234
|
-
temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
|
235
|
-
// The identity of the worker/client who is polling this task queue
|
236
|
-
string identity = 3;
|
237
|
-
// Each worker process should provide an ID unique to the specific set of code it is running
|
238
|
-
// "checksum" in this field name isn't very accurate, it should be though of as an id.
|
239
|
-
string binary_checksum = 4;
|
240
|
-
// If set, the worker is opting in to build-id based versioning and wishes to only
|
241
|
-
// receive tasks that are considered compatible with the version provided.
|
242
|
-
// Doing so only makes sense in conjunction with the `UpdateWorkerBuildIdOrdering` API.
|
243
|
-
// When `worker_versioning_id` has a `worker_build_id`, and `binary_checksum` is not
|
244
|
-
// set, that value should also be considered as the `binary_checksum`.
|
245
|
-
temporal.api.taskqueue.v1.VersionId worker_versioning_id = 5;
|
246
|
-
}
|
247
|
-
|
248
|
-
message PollWorkflowTaskQueueResponse {
|
249
|
-
// A unique identifier for this task
|
250
|
-
bytes task_token = 1;
|
251
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
252
|
-
temporal.api.common.v1.WorkflowType workflow_type = 3;
|
253
|
-
// The last workflow task started event which was processed by some worker for this execution.
|
254
|
-
// Will be zero if no task has ever started.
|
255
|
-
int64 previous_started_event_id = 4;
|
256
|
-
// The id of the most recent workflow task started event, which will have been generated as a
|
257
|
-
// result of this poll request being served.
|
258
|
-
int64 started_event_id = 5;
|
259
|
-
// Starting at 1, the number of attempts to complete this task by any worker.
|
260
|
-
int32 attempt = 6;
|
261
|
-
// A hint that there are more tasks already present in this task queue. Can be used to
|
262
|
-
// prioritize draining a sticky queue before polling from a normal queue.
|
263
|
-
int64 backlog_count_hint = 7;
|
264
|
-
// The history for this workflow, which will either be complete or partial. Partial histories
|
265
|
-
// are sent to workers who have signaled that they are using a sticky queue when completing
|
266
|
-
// a workflow task.
|
267
|
-
temporal.api.history.v1.History history = 8;
|
268
|
-
// Will be set if there are more history events than were included in this response. Such events
|
269
|
-
// should be fetched via `GetWorkflowExecutionHistory`.
|
270
|
-
bytes next_page_token = 9;
|
271
|
-
// Legacy queries appear in this field. The query must be responded to via
|
272
|
-
// `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
|
273
|
-
// closed workflows) then the `history` field will be populated with the entire history. It
|
274
|
-
// may also be populated if this task originates on a non-sticky queue.
|
275
|
-
temporal.api.query.v1.WorkflowQuery query = 10;
|
276
|
-
// The task queue this task originated from, which will always be the original non-sticky name
|
277
|
-
// for the queue, even if this response came from polling a sticky queue.
|
278
|
-
temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
|
279
|
-
// When this task was scheduled by the server
|
280
|
-
google.protobuf.Timestamp scheduled_time = 12 [(gogoproto.stdtime) = true];
|
281
|
-
// When the current workflow task started event was generated, meaning the current attempt.
|
282
|
-
google.protobuf.Timestamp started_time = 13 [(gogoproto.stdtime) = true];
|
283
|
-
// Queries that should be executed after applying the history in this task. Responses should be
|
284
|
-
// attached to `RespondWorkflowTaskCompletedRequest::query_results`
|
285
|
-
map<string, temporal.api.query.v1.WorkflowQuery> queries = 14;
|
286
|
-
// Protocol messages piggybacking on a WFT as a transport
|
287
|
-
repeated temporal.api.protocol.v1.Message messages = 15;
|
288
|
-
}
|
289
|
-
|
290
|
-
message RespondWorkflowTaskCompletedRequest {
|
291
|
-
// The task token as received in `PollWorkflowTaskQueueResponse`
|
292
|
-
bytes task_token = 1;
|
293
|
-
// A list of commands generated when driving the workflow code in response to the new task
|
294
|
-
repeated temporal.api.command.v1.Command commands = 2;
|
295
|
-
// The identity of the worker/client
|
296
|
-
string identity = 3;
|
297
|
-
// May be set by workers to indicate that the worker desires future tasks to be provided with
|
298
|
-
// incremental history on a sticky queue.
|
299
|
-
temporal.api.taskqueue.v1.StickyExecutionAttributes sticky_attributes = 4;
|
300
|
-
// If set, the worker wishes to immediately receive the next workflow task as a response to
|
301
|
-
// this completion. This can save on polling round-trips.
|
302
|
-
bool return_new_workflow_task = 5;
|
303
|
-
// Can be used to *force* creation of a new workflow task, even if no commands have resolved or
|
304
|
-
// one would not otherwise have been generated. This is used when the worker knows it is doing
|
305
|
-
// something useful, but cannot complete it within the workflow task timeout. Local activities
|
306
|
-
// which run for longer than the task timeout being the prime example.
|
307
|
-
bool force_create_new_workflow_task = 6;
|
308
|
-
// Worker process' unique binary id
|
309
|
-
string binary_checksum = 7;
|
310
|
-
// Responses to the `queries` field in the task being responded to
|
311
|
-
map<string, temporal.api.query.v1.WorkflowQueryResult> query_results = 8;
|
312
|
-
string namespace = 9;
|
313
|
-
// If using versioning, worker should send the same id here that it used to
|
314
|
-
// poll for the workflow task.
|
315
|
-
// When `worker_versioning_id` has a `worker_build_id`, and `binary_checksum` is not
|
316
|
-
// set, that value should also be considered as the `binary_checksum`.
|
317
|
-
temporal.api.taskqueue.v1.VersionId worker_versioning_id = 10;
|
318
|
-
// Protocol messages piggybacking on a WFT as a transport
|
319
|
-
repeated temporal.api.protocol.v1.Message messages = 11;
|
320
|
-
// Data the SDK wishes to record for itself, but server need not interpret, and does not
|
321
|
-
// directly impact workflow state.
|
322
|
-
temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 12;
|
323
|
-
// Local usage data collected for metering
|
324
|
-
temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
|
325
|
-
}
|
326
|
-
|
327
|
-
message RespondWorkflowTaskCompletedResponse {
|
328
|
-
// See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task`
|
329
|
-
PollWorkflowTaskQueueResponse workflow_task = 1;
|
330
|
-
// See `ScheduleActivityTaskCommandAttributes::request_start`
|
331
|
-
repeated PollActivityTaskQueueResponse activity_tasks = 2;
|
332
|
-
|
333
|
-
int64 reset_history_event_id = 3;
|
334
|
-
}
|
335
|
-
|
336
|
-
message RespondWorkflowTaskFailedRequest {
|
337
|
-
// The task token as received in `PollWorkflowTaskQueueResponse`
|
338
|
-
bytes task_token = 1;
|
339
|
-
// Why did the task fail? It's important to note that many of the variants in this enum cannot
|
340
|
-
// apply to worker responses. See the type's doc for more.
|
341
|
-
temporal.api.enums.v1.WorkflowTaskFailedCause cause = 2;
|
342
|
-
// Failure details
|
343
|
-
temporal.api.failure.v1.Failure failure = 3;
|
344
|
-
// The identity of the worker/client
|
345
|
-
string identity = 4;
|
346
|
-
// Worker process' unique binary id
|
347
|
-
string binary_checksum = 5;
|
348
|
-
string namespace = 6;
|
349
|
-
// Protocol messages piggybacking on a WFT as a transport
|
350
|
-
repeated temporal.api.protocol.v1.Message messages = 7;
|
351
|
-
}
|
352
|
-
|
353
|
-
message RespondWorkflowTaskFailedResponse {
|
354
|
-
}
|
355
|
-
|
356
|
-
message PollActivityTaskQueueRequest {
|
357
|
-
string namespace = 1;
|
358
|
-
temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
|
359
|
-
// The identity of the worker/client
|
360
|
-
string identity = 3;
|
361
|
-
temporal.api.taskqueue.v1.TaskQueueMetadata task_queue_metadata = 4;
|
362
|
-
// If set, the worker is opting in to build-id based versioning and wishes to only
|
363
|
-
// receive tasks that are considered compatible with the version provided.
|
364
|
-
// Doing so only makes sense in conjunction with the `UpdateWorkerBuildIdOrdering` API.
|
365
|
-
temporal.api.taskqueue.v1.VersionId worker_versioning_id = 5;
|
366
|
-
}
|
367
|
-
|
368
|
-
message PollActivityTaskQueueResponse {
|
369
|
-
// A unique identifier for this task
|
370
|
-
bytes task_token = 1;
|
371
|
-
// The namespace the workflow which requested this activity lives in
|
372
|
-
string workflow_namespace = 2;
|
373
|
-
// Type of the requesting workflow
|
374
|
-
temporal.api.common.v1.WorkflowType workflow_type = 3;
|
375
|
-
// Execution info of the requesting workflow
|
376
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
|
377
|
-
temporal.api.common.v1.ActivityType activity_type = 5;
|
378
|
-
// The autogenerated or user specified identifier of this activity. Can be used to complete the
|
379
|
-
// activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
|
380
|
-
// has resolved, but unique IDs for every activity invocation is a good idea.
|
381
|
-
string activity_id = 6;
|
382
|
-
// Headers specified by the scheduling workflow. Commonly used to propagate contextual info
|
383
|
-
// from the workflow to its activities. For example, tracing contexts.
|
384
|
-
temporal.api.common.v1.Header header = 7;
|
385
|
-
// Arguments to the activity invocation
|
386
|
-
temporal.api.common.v1.Payloads input = 8;
|
387
|
-
// Details of the last heartbeat that was recorded for this activity as of the time this task
|
388
|
-
// was delivered.
|
389
|
-
temporal.api.common.v1.Payloads heartbeat_details = 9;
|
390
|
-
// When was this task first scheduled
|
391
|
-
google.protobuf.Timestamp scheduled_time = 10 [(gogoproto.stdtime) = true];
|
392
|
-
// When was this task attempt scheduled
|
393
|
-
google.protobuf.Timestamp current_attempt_scheduled_time = 11 [(gogoproto.stdtime) = true];
|
394
|
-
// When was this task started (this attempt)
|
395
|
-
google.protobuf.Timestamp started_time = 12 [(gogoproto.stdtime) = true];
|
396
|
-
// Starting at 1, the number of attempts to perform this activity
|
397
|
-
int32 attempt = 13;
|
398
|
-
// First scheduled -> final result reported timeout
|
399
|
-
//
|
400
|
-
// (-- api-linter: core::0140::prepositions=disabled
|
401
|
-
// aip.dev/not-precedent: "to" is used to indicate interval. --)
|
402
|
-
google.protobuf.Duration schedule_to_close_timeout = 14 [(gogoproto.stdduration) = true];
|
403
|
-
// Current attempt start -> final result reported timeout
|
404
|
-
//
|
405
|
-
// (-- api-linter: core::0140::prepositions=disabled
|
406
|
-
// aip.dev/not-precedent: "to" is used to indicate interval. --)
|
407
|
-
google.protobuf.Duration start_to_close_timeout = 15 [(gogoproto.stdduration) = true];
|
408
|
-
// Window within which the activity must report a heartbeat, or be timed out.
|
409
|
-
google.protobuf.Duration heartbeat_timeout = 16 [(gogoproto.stdduration) = true];
|
410
|
-
// This is the retry policy the service uses which may be different from the one provided
|
411
|
-
// (or not) during activity scheduling. The service can override the provided one if some
|
412
|
-
// values are not specified or exceed configured system limits.
|
413
|
-
temporal.api.common.v1.RetryPolicy retry_policy = 17;
|
414
|
-
}
|
415
|
-
|
416
|
-
message RecordActivityTaskHeartbeatRequest {
|
417
|
-
// The task token as received in `PollActivityTaskQueueResponse`
|
418
|
-
bytes task_token = 1;
|
419
|
-
// Arbitrary data, of which the most recent call is kept, to store for this activity
|
420
|
-
temporal.api.common.v1.Payloads details = 2;
|
421
|
-
// The identity of the worker/client
|
422
|
-
string identity = 3;
|
423
|
-
string namespace = 4;
|
424
|
-
}
|
425
|
-
|
426
|
-
message RecordActivityTaskHeartbeatResponse {
|
427
|
-
// Will be set to true if the activity has been asked to cancel itself. The SDK should then
|
428
|
-
// notify the activity of cancellation if it is still running.
|
429
|
-
bool cancel_requested = 1;
|
430
|
-
}
|
431
|
-
|
432
|
-
message RecordActivityTaskHeartbeatByIdRequest {
|
433
|
-
// Namespace of the workflow which scheduled this activity
|
434
|
-
string namespace = 1;
|
435
|
-
// Id of the workflow which scheduled this activity
|
436
|
-
string workflow_id = 2;
|
437
|
-
// Run Id of the workflow which scheduled this activity
|
438
|
-
string run_id = 3;
|
439
|
-
// Id of the activity we're heartbeating
|
440
|
-
string activity_id = 4;
|
441
|
-
// Arbitrary data, of which the most recent call is kept, to store for this activity
|
442
|
-
temporal.api.common.v1.Payloads details = 5;
|
443
|
-
// The identity of the worker/client
|
444
|
-
string identity = 6;
|
445
|
-
}
|
446
|
-
|
447
|
-
message RecordActivityTaskHeartbeatByIdResponse {
|
448
|
-
// Will be set to true if the activity has been asked to cancel itself. The SDK should then
|
449
|
-
// notify the activity of cancellation if it is still running.
|
450
|
-
bool cancel_requested = 1;
|
451
|
-
}
|
452
|
-
|
453
|
-
message RespondActivityTaskCompletedRequest {
|
454
|
-
// The task token as received in `PollActivityTaskQueueResponse`
|
455
|
-
bytes task_token = 1;
|
456
|
-
// The result of successfully executing the activity
|
457
|
-
temporal.api.common.v1.Payloads result = 2;
|
458
|
-
// The identity of the worker/client
|
459
|
-
string identity = 3;
|
460
|
-
string namespace = 4;
|
461
|
-
}
|
462
|
-
|
463
|
-
message RespondActivityTaskCompletedResponse {
|
464
|
-
}
|
465
|
-
|
466
|
-
message RespondActivityTaskCompletedByIdRequest {
|
467
|
-
// Namespace of the workflow which scheduled this activity
|
468
|
-
string namespace = 1;
|
469
|
-
// Id of the workflow which scheduled this activity
|
470
|
-
string workflow_id = 2;
|
471
|
-
// Run Id of the workflow which scheduled this activity
|
472
|
-
string run_id = 3;
|
473
|
-
// Id of the activity to complete
|
474
|
-
string activity_id = 4;
|
475
|
-
// The serialized result of activity execution
|
476
|
-
temporal.api.common.v1.Payloads result = 5;
|
477
|
-
// The identity of the worker/client
|
478
|
-
string identity = 6;
|
479
|
-
}
|
480
|
-
|
481
|
-
message RespondActivityTaskCompletedByIdResponse {
|
482
|
-
}
|
483
|
-
|
484
|
-
message RespondActivityTaskFailedRequest {
|
485
|
-
// The task token as received in `PollActivityTaskQueueResponse`
|
486
|
-
bytes task_token = 1;
|
487
|
-
// Detailed failure information
|
488
|
-
temporal.api.failure.v1.Failure failure = 2;
|
489
|
-
// The identity of the worker/client
|
490
|
-
string identity = 3;
|
491
|
-
string namespace = 4;
|
492
|
-
// Additional details to be stored as last activity heartbeat
|
493
|
-
temporal.api.common.v1.Payloads last_heartbeat_details = 5;
|
494
|
-
}
|
495
|
-
|
496
|
-
message RespondActivityTaskFailedResponse {
|
497
|
-
// Server validation failures could include
|
498
|
-
// last_heartbeat_details payload is too large, request failure is too large
|
499
|
-
repeated temporal.api.failure.v1.Failure failures = 1;
|
500
|
-
}
|
501
|
-
|
502
|
-
message RespondActivityTaskFailedByIdRequest {
|
503
|
-
// Namespace of the workflow which scheduled this activity
|
504
|
-
string namespace = 1;
|
505
|
-
// Id of the workflow which scheduled this activity
|
506
|
-
string workflow_id = 2;
|
507
|
-
// Run Id of the workflow which scheduled this activity
|
508
|
-
string run_id = 3;
|
509
|
-
// Id of the activity to fail
|
510
|
-
string activity_id = 4;
|
511
|
-
// Detailed failure information
|
512
|
-
temporal.api.failure.v1.Failure failure = 5;
|
513
|
-
// The identity of the worker/client
|
514
|
-
string identity = 6;
|
515
|
-
// Additional details to be stored as last activity heartbeat
|
516
|
-
temporal.api.common.v1.Payloads last_heartbeat_details = 7;
|
517
|
-
}
|
518
|
-
|
519
|
-
message RespondActivityTaskFailedByIdResponse {
|
520
|
-
// Server validation failures could include
|
521
|
-
// last_heartbeat_details payload is too large, request failure is too large
|
522
|
-
repeated temporal.api.failure.v1.Failure failures = 1;
|
523
|
-
}
|
524
|
-
|
525
|
-
message RespondActivityTaskCanceledRequest {
|
526
|
-
// The task token as received in `PollActivityTaskQueueResponse`
|
527
|
-
bytes task_token = 1;
|
528
|
-
// Serialized additional information to attach to the cancellation
|
529
|
-
temporal.api.common.v1.Payloads details = 2;
|
530
|
-
// The identity of the worker/client
|
531
|
-
string identity = 3;
|
532
|
-
string namespace = 4;
|
533
|
-
}
|
534
|
-
|
535
|
-
message RespondActivityTaskCanceledResponse {
|
536
|
-
}
|
537
|
-
|
538
|
-
message RespondActivityTaskCanceledByIdRequest {
|
539
|
-
// Namespace of the workflow which scheduled this activity
|
540
|
-
string namespace = 1;
|
541
|
-
// Id of the workflow which scheduled this activity
|
542
|
-
string workflow_id = 2;
|
543
|
-
// Run Id of the workflow which scheduled this activity
|
544
|
-
string run_id = 3;
|
545
|
-
// Id of the activity to confirm is cancelled
|
546
|
-
string activity_id = 4;
|
547
|
-
// Serialized additional information to attach to the cancellation
|
548
|
-
temporal.api.common.v1.Payloads details = 5;
|
549
|
-
// The identity of the worker/client
|
550
|
-
string identity = 6;
|
551
|
-
}
|
552
|
-
|
553
|
-
message RespondActivityTaskCanceledByIdResponse {
|
554
|
-
}
|
555
|
-
|
556
|
-
message RequestCancelWorkflowExecutionRequest {
|
557
|
-
string namespace = 1;
|
558
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
559
|
-
// The identity of the worker/client
|
560
|
-
string identity = 3;
|
561
|
-
// Used to de-dupe cancellation requests
|
562
|
-
string request_id = 4;
|
563
|
-
// If set, this call will error if the most recent (if no run id is set on
|
564
|
-
// `workflow_execution`), or specified (if it is) workflow execution is not part of the same
|
565
|
-
// execution chain as this id.
|
566
|
-
string first_execution_run_id = 5;
|
567
|
-
// Reason for requesting the cancellation
|
568
|
-
string reason = 6;
|
569
|
-
}
|
570
|
-
|
571
|
-
message RequestCancelWorkflowExecutionResponse {
|
572
|
-
}
|
573
|
-
|
574
|
-
message SignalWorkflowExecutionRequest {
|
575
|
-
string namespace = 1;
|
576
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
577
|
-
// The workflow author-defined name of the signal to send to the workflow
|
578
|
-
string signal_name = 3;
|
579
|
-
// Serialized value(s) to provide with the signal
|
580
|
-
temporal.api.common.v1.Payloads input = 4;
|
581
|
-
// The identity of the worker/client
|
582
|
-
string identity = 5;
|
583
|
-
// Used to de-dupe sent signals
|
584
|
-
string request_id = 6;
|
585
|
-
// Deprecated
|
586
|
-
string control = 7;
|
587
|
-
// Headers that are passed with the signal to the processing workflow.
|
588
|
-
// These can include things like auth or tracing tokens.
|
589
|
-
temporal.api.common.v1.Header header = 8;
|
590
|
-
}
|
591
|
-
|
592
|
-
message SignalWorkflowExecutionResponse {
|
593
|
-
}
|
594
|
-
|
595
|
-
message SignalWithStartWorkflowExecutionRequest {
|
596
|
-
string namespace = 1;
|
597
|
-
string workflow_id = 2;
|
598
|
-
temporal.api.common.v1.WorkflowType workflow_type = 3;
|
599
|
-
// The task queue to start this workflow on, if it will be started
|
600
|
-
temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
|
601
|
-
// Serialized arguments to the workflow. These are passed as arguments to the workflow function.
|
602
|
-
temporal.api.common.v1.Payloads input = 5;
|
603
|
-
// Total workflow execution timeout including retries and continue as new
|
604
|
-
google.protobuf.Duration workflow_execution_timeout = 6 [(gogoproto.stdduration) = true];
|
605
|
-
// Timeout of a single workflow run
|
606
|
-
google.protobuf.Duration workflow_run_timeout = 7 [(gogoproto.stdduration) = true];
|
607
|
-
// Timeout of a single workflow task
|
608
|
-
google.protobuf.Duration workflow_task_timeout = 8 [(gogoproto.stdduration) = true];
|
609
|
-
// The identity of the worker/client
|
610
|
-
string identity = 9;
|
611
|
-
// Used to de-dupe signal w/ start requests
|
612
|
-
string request_id = 10;
|
613
|
-
temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
|
614
|
-
// The workflow author-defined name of the signal to send to the workflow
|
615
|
-
string signal_name = 12;
|
616
|
-
// Serialized value(s) to provide with the signal
|
617
|
-
temporal.api.common.v1.Payloads signal_input = 13;
|
618
|
-
// Deprecated
|
619
|
-
string control = 14;
|
620
|
-
// Retry policy for the workflow Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
|
621
|
-
temporal.api.common.v1.RetryPolicy retry_policy = 15;
|
622
|
-
// See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
|
623
|
-
string cron_schedule = 16;
|
624
|
-
temporal.api.common.v1.Memo memo = 17;
|
625
|
-
temporal.api.common.v1.SearchAttributes search_attributes = 18;
|
626
|
-
temporal.api.common.v1.Header header = 19;
|
627
|
-
}
|
628
|
-
|
629
|
-
message SignalWithStartWorkflowExecutionResponse {
|
630
|
-
string run_id = 1;
|
631
|
-
}
|
632
|
-
|
633
|
-
message ResetWorkflowExecutionRequest {
|
634
|
-
string namespace = 1;
|
635
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
636
|
-
string reason = 3;
|
637
|
-
// The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
|
638
|
-
// `WORKFLOW_TASK_STARTED` event to reset to.
|
639
|
-
int64 workflow_task_finish_event_id = 4;
|
640
|
-
// Used to de-dupe reset requests
|
641
|
-
string request_id = 5;
|
642
|
-
// Reset reapplay(replay) options.
|
643
|
-
temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
|
644
|
-
}
|
645
|
-
|
646
|
-
message ResetWorkflowExecutionResponse {
|
647
|
-
string run_id = 1;
|
648
|
-
}
|
649
|
-
|
650
|
-
message TerminateWorkflowExecutionRequest {
|
651
|
-
string namespace = 1;
|
652
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
653
|
-
string reason = 3;
|
654
|
-
// Serialized additional information to attach to the termination event
|
655
|
-
temporal.api.common.v1.Payloads details = 4;
|
656
|
-
// The identity of the worker/client
|
657
|
-
string identity = 5;
|
658
|
-
// If set, this call will error if the most recent (if no run id is set on
|
659
|
-
// `workflow_execution`), or specified (if it is) workflow execution is not part of the same
|
660
|
-
// execution chain as this id.
|
661
|
-
string first_execution_run_id = 6;
|
662
|
-
}
|
663
|
-
|
664
|
-
message TerminateWorkflowExecutionResponse {
|
665
|
-
}
|
666
|
-
|
667
|
-
// (-- api-linter: core::0135::request-unknown-fields=disabled
|
668
|
-
// aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
|
669
|
-
// (-- api-linter: core::0135::request-name-required=disabled
|
670
|
-
// aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
|
671
|
-
message DeleteWorkflowExecutionRequest {
|
672
|
-
string namespace = 1;
|
673
|
-
// Workflow Execution to delete. If run_id is not specified, the latest one is used.
|
674
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
675
|
-
}
|
676
|
-
|
677
|
-
message DeleteWorkflowExecutionResponse {
|
678
|
-
}
|
679
|
-
|
680
|
-
message ListOpenWorkflowExecutionsRequest {
|
681
|
-
string namespace = 1;
|
682
|
-
int32 maximum_page_size = 2;
|
683
|
-
bytes next_page_token = 3;
|
684
|
-
temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
|
685
|
-
oneof filters {
|
686
|
-
temporal.api.filter.v1.WorkflowExecutionFilter execution_filter = 5;
|
687
|
-
temporal.api.filter.v1.WorkflowTypeFilter type_filter = 6;
|
688
|
-
}
|
689
|
-
}
|
690
|
-
|
691
|
-
message ListOpenWorkflowExecutionsResponse {
|
692
|
-
repeated temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
|
693
|
-
bytes next_page_token = 2;
|
694
|
-
}
|
695
|
-
|
696
|
-
message ListClosedWorkflowExecutionsRequest {
|
697
|
-
string namespace = 1;
|
698
|
-
int32 maximum_page_size = 2;
|
699
|
-
bytes next_page_token = 3;
|
700
|
-
temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
|
701
|
-
oneof filters {
|
702
|
-
temporal.api.filter.v1.WorkflowExecutionFilter execution_filter = 5;
|
703
|
-
temporal.api.filter.v1.WorkflowTypeFilter type_filter = 6;
|
704
|
-
temporal.api.filter.v1.StatusFilter status_filter = 7;
|
705
|
-
}
|
706
|
-
}
|
707
|
-
|
708
|
-
message ListClosedWorkflowExecutionsResponse {
|
709
|
-
repeated temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
|
710
|
-
bytes next_page_token = 2;
|
711
|
-
}
|
712
|
-
|
713
|
-
message ListWorkflowExecutionsRequest {
|
714
|
-
string namespace = 1;
|
715
|
-
int32 page_size = 2;
|
716
|
-
bytes next_page_token = 3;
|
717
|
-
string query = 4;
|
718
|
-
}
|
719
|
-
|
720
|
-
message ListWorkflowExecutionsResponse {
|
721
|
-
repeated temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
|
722
|
-
bytes next_page_token = 2;
|
723
|
-
}
|
724
|
-
|
725
|
-
message ListArchivedWorkflowExecutionsRequest {
|
726
|
-
string namespace = 1;
|
727
|
-
int32 page_size = 2;
|
728
|
-
bytes next_page_token = 3;
|
729
|
-
string query = 4;
|
730
|
-
}
|
731
|
-
|
732
|
-
message ListArchivedWorkflowExecutionsResponse {
|
733
|
-
repeated temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
|
734
|
-
bytes next_page_token = 2;
|
735
|
-
}
|
736
|
-
|
737
|
-
message ScanWorkflowExecutionsRequest {
|
738
|
-
string namespace = 1;
|
739
|
-
int32 page_size = 2;
|
740
|
-
bytes next_page_token = 3;
|
741
|
-
string query = 4;
|
742
|
-
}
|
743
|
-
|
744
|
-
message ScanWorkflowExecutionsResponse {
|
745
|
-
repeated temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
|
746
|
-
bytes next_page_token = 2;
|
747
|
-
}
|
748
|
-
|
749
|
-
message CountWorkflowExecutionsRequest {
|
750
|
-
string namespace = 1;
|
751
|
-
string query = 2;
|
752
|
-
}
|
753
|
-
|
754
|
-
message CountWorkflowExecutionsResponse {
|
755
|
-
int64 count = 1;
|
756
|
-
}
|
757
|
-
|
758
|
-
message GetSearchAttributesRequest {
|
759
|
-
}
|
760
|
-
|
761
|
-
message GetSearchAttributesResponse {
|
762
|
-
map<string, temporal.api.enums.v1.IndexedValueType> keys = 1;
|
763
|
-
}
|
764
|
-
|
765
|
-
message RespondQueryTaskCompletedRequest {
|
766
|
-
bytes task_token = 1;
|
767
|
-
temporal.api.enums.v1.QueryResultType completed_type = 2;
|
768
|
-
temporal.api.common.v1.Payloads query_result = 3;
|
769
|
-
string error_message = 4;
|
770
|
-
reserved 5;
|
771
|
-
string namespace = 6;
|
772
|
-
}
|
773
|
-
|
774
|
-
message RespondQueryTaskCompletedResponse {
|
775
|
-
}
|
776
|
-
|
777
|
-
message ResetStickyTaskQueueRequest {
|
778
|
-
string namespace = 1;
|
779
|
-
temporal.api.common.v1.WorkflowExecution execution = 2;
|
780
|
-
}
|
781
|
-
|
782
|
-
message ResetStickyTaskQueueResponse {
|
783
|
-
}
|
784
|
-
|
785
|
-
message QueryWorkflowRequest {
|
786
|
-
string namespace = 1;
|
787
|
-
temporal.api.common.v1.WorkflowExecution execution = 2;
|
788
|
-
temporal.api.query.v1.WorkflowQuery query = 3;
|
789
|
-
// QueryRejectCondition can used to reject the query if workflow state does not satisfy condition.
|
790
|
-
// Default: QUERY_REJECT_CONDITION_NONE.
|
791
|
-
temporal.api.enums.v1.QueryRejectCondition query_reject_condition = 4;
|
792
|
-
}
|
793
|
-
|
794
|
-
message QueryWorkflowResponse {
|
795
|
-
temporal.api.common.v1.Payloads query_result = 1;
|
796
|
-
temporal.api.query.v1.QueryRejected query_rejected = 2;
|
797
|
-
}
|
798
|
-
|
799
|
-
message DescribeWorkflowExecutionRequest {
|
800
|
-
string namespace = 1;
|
801
|
-
temporal.api.common.v1.WorkflowExecution execution = 2;
|
802
|
-
}
|
803
|
-
|
804
|
-
message DescribeWorkflowExecutionResponse {
|
805
|
-
temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;
|
806
|
-
temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;
|
807
|
-
repeated temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;
|
808
|
-
repeated temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;
|
809
|
-
temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;
|
810
|
-
}
|
811
|
-
|
812
|
-
message DescribeTaskQueueRequest {
|
813
|
-
string namespace = 1;
|
814
|
-
temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
|
815
|
-
temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
|
816
|
-
bool include_task_queue_status = 4;
|
817
|
-
}
|
818
|
-
|
819
|
-
message DescribeTaskQueueResponse {
|
820
|
-
repeated temporal.api.taskqueue.v1.PollerInfo pollers = 1;
|
821
|
-
temporal.api.taskqueue.v1.TaskQueueStatus task_queue_status = 2;
|
822
|
-
}
|
823
|
-
|
824
|
-
message GetClusterInfoRequest {
|
825
|
-
}
|
826
|
-
|
827
|
-
// GetClusterInfoResponse contains information about Temporal cluster.
|
828
|
-
message GetClusterInfoResponse {
|
829
|
-
// Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
|
830
|
-
// Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
|
831
|
-
map<string,string> supported_clients = 1;
|
832
|
-
string server_version = 2;
|
833
|
-
string cluster_id = 3;
|
834
|
-
temporal.api.version.v1.VersionInfo version_info = 4;
|
835
|
-
string cluster_name = 5;
|
836
|
-
int32 history_shard_count = 6;
|
837
|
-
string persistence_store = 7;
|
838
|
-
string visibility_store = 8;
|
839
|
-
}
|
840
|
-
|
841
|
-
message GetSystemInfoRequest {
|
842
|
-
}
|
843
|
-
|
844
|
-
message GetSystemInfoResponse {
|
845
|
-
// Version of the server.
|
846
|
-
string server_version = 1;
|
847
|
-
|
848
|
-
// All capabilities the system supports.
|
849
|
-
Capabilities capabilities = 2;
|
850
|
-
|
851
|
-
// System capability details.
|
852
|
-
message Capabilities {
|
853
|
-
// True if signal and query headers are supported.
|
854
|
-
bool signal_and_query_header = 1;
|
855
|
-
|
856
|
-
// True if internal errors are differentiated from other types of errors for purposes of
|
857
|
-
// retrying non-internal errors.
|
858
|
-
//
|
859
|
-
// When unset/false, clients retry all failures. When true, clients should only retry
|
860
|
-
// non-internal errors.
|
861
|
-
bool internal_error_differentiation = 2;
|
862
|
-
|
863
|
-
// True if RespondActivityTaskFailed API supports including heartbeat details
|
864
|
-
bool activity_failure_include_heartbeat = 3;
|
865
|
-
|
866
|
-
// Supports scheduled workflow features.
|
867
|
-
bool supports_schedules = 4;
|
868
|
-
|
869
|
-
// True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes
|
870
|
-
bool encoded_failure_attributes = 5;
|
871
|
-
|
872
|
-
// True if server supports dispatching Workflow and Activity tasks based on a worker's build_id
|
873
|
-
// (see:
|
874
|
-
// https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md)
|
875
|
-
bool build_id_based_versioning = 6;
|
876
|
-
|
877
|
-
// True if server supports upserting workflow memo
|
878
|
-
bool upsert_memo = 7;
|
879
|
-
|
880
|
-
// True if server supports eager workflow task dispatching for the StartWorkflowExecution API
|
881
|
-
bool eager_workflow_start = 8;
|
882
|
-
|
883
|
-
// True if the server knows about the sdk metadata field on WFT completions and will record
|
884
|
-
// it in history
|
885
|
-
bool sdk_metadata = 9;
|
886
|
-
}
|
887
|
-
}
|
888
|
-
|
889
|
-
message ListTaskQueuePartitionsRequest {
|
890
|
-
string namespace = 1;
|
891
|
-
temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
|
892
|
-
}
|
893
|
-
|
894
|
-
message ListTaskQueuePartitionsResponse {
|
895
|
-
repeated temporal.api.taskqueue.v1.TaskQueuePartitionMetadata activity_task_queue_partitions = 1;
|
896
|
-
repeated temporal.api.taskqueue.v1.TaskQueuePartitionMetadata workflow_task_queue_partitions = 2;
|
897
|
-
}
|
898
|
-
|
899
|
-
// (-- api-linter: core::0133::request-parent-required=disabled
|
900
|
-
// aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --)
|
901
|
-
// (-- api-linter: core::0133::request-unknown-fields=disabled
|
902
|
-
// aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --)
|
903
|
-
// (-- api-linter: core::0133::request-resource-behavior=disabled
|
904
|
-
// aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --)
|
905
|
-
// (-- api-linter: core::0203::optional=disabled
|
906
|
-
// aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --)
|
907
|
-
message CreateScheduleRequest {
|
908
|
-
// The namespace the schedule should be created in.
|
909
|
-
string namespace = 1;
|
910
|
-
// The id of the new schedule.
|
911
|
-
string schedule_id = 2;
|
912
|
-
// The schedule spec, policies, action, and initial state.
|
913
|
-
temporal.api.schedule.v1.Schedule schedule = 3;
|
914
|
-
// Optional initial patch (e.g. to run the action once immediately).
|
915
|
-
temporal.api.schedule.v1.SchedulePatch initial_patch = 4;
|
916
|
-
// The identity of the client who initiated this request.
|
917
|
-
string identity = 5;
|
918
|
-
// A unique identifier for this create request for idempotence. Typically UUIDv4.
|
919
|
-
string request_id = 6;
|
920
|
-
// Memo and search attributes to attach to the schedule itself.
|
921
|
-
temporal.api.common.v1.Memo memo = 7;
|
922
|
-
temporal.api.common.v1.SearchAttributes search_attributes = 8;
|
923
|
-
}
|
924
|
-
|
925
|
-
message CreateScheduleResponse {
|
926
|
-
bytes conflict_token = 1;
|
927
|
-
}
|
928
|
-
|
929
|
-
message DescribeScheduleRequest {
|
930
|
-
// The namespace of the schedule to describe.
|
931
|
-
string namespace = 1;
|
932
|
-
// The id of the schedule to describe.
|
933
|
-
string schedule_id = 2;
|
934
|
-
}
|
935
|
-
|
936
|
-
message DescribeScheduleResponse {
|
937
|
-
// The complete current schedule details. This may not match the schedule as
|
938
|
-
// created because:
|
939
|
-
// - some types of schedule specs may get compiled into others (e.g.
|
940
|
-
// CronString into StructuredCalendarSpec)
|
941
|
-
// - some unspecified fields may be replaced by defaults
|
942
|
-
// - some fields in the state are modified automatically
|
943
|
-
// - the schedule may have been modified by UpdateSchedule or PatchSchedule
|
944
|
-
temporal.api.schedule.v1.Schedule schedule = 1;
|
945
|
-
// Extra schedule state info.
|
946
|
-
temporal.api.schedule.v1.ScheduleInfo info = 2;
|
947
|
-
// The memo and search attributes that the schedule was created with.
|
948
|
-
temporal.api.common.v1.Memo memo = 3;
|
949
|
-
temporal.api.common.v1.SearchAttributes search_attributes = 4;
|
950
|
-
|
951
|
-
// This value can be passed back to UpdateSchedule to ensure that the
|
952
|
-
// schedule was not modified between a Describe and an Update, which could
|
953
|
-
// lead to lost updates and other confusion.
|
954
|
-
bytes conflict_token = 5;
|
955
|
-
}
|
956
|
-
|
957
|
-
// (-- api-linter: core::0134::request-mask-required=disabled
|
958
|
-
// aip.dev/not-precedent: UpdateSchedule doesn't follow Google API format --)
|
959
|
-
message UpdateScheduleRequest {
|
960
|
-
// The namespace of the schedule to update.
|
961
|
-
string namespace = 1;
|
962
|
-
// The id of the schedule to update.
|
963
|
-
string schedule_id = 2;
|
964
|
-
// The new schedule. The four main fields of the schedule (spec, action,
|
965
|
-
// policies, state) are replaced completely by the values in this message.
|
966
|
-
temporal.api.schedule.v1.Schedule schedule = 3;
|
967
|
-
// This can be the value of conflict_token from a DescribeScheduleResponse,
|
968
|
-
// which will cause this request to fail if the schedule has been modified
|
969
|
-
// between the Describe and this Update.
|
970
|
-
// If missing, the schedule will be updated unconditionally.
|
971
|
-
bytes conflict_token = 4;
|
972
|
-
// The identity of the client who initiated this request.
|
973
|
-
string identity = 5;
|
974
|
-
// A unique identifier for this update request for idempotence. Typically UUIDv4.
|
975
|
-
string request_id = 6;
|
976
|
-
}
|
977
|
-
|
978
|
-
message UpdateScheduleResponse {
|
979
|
-
}
|
980
|
-
|
981
|
-
message PatchScheduleRequest {
|
982
|
-
// The namespace of the schedule to patch.
|
983
|
-
string namespace = 1;
|
984
|
-
// The id of the schedule to patch.
|
985
|
-
string schedule_id = 2;
|
986
|
-
temporal.api.schedule.v1.SchedulePatch patch = 3;
|
987
|
-
// The identity of the client who initiated this request.
|
988
|
-
string identity = 4;
|
989
|
-
// A unique identifier for this update request for idempotence. Typically UUIDv4.
|
990
|
-
string request_id = 5;
|
991
|
-
}
|
992
|
-
|
993
|
-
message PatchScheduleResponse {
|
994
|
-
}
|
995
|
-
|
996
|
-
message ListScheduleMatchingTimesRequest {
|
997
|
-
// The namespace of the schedule to query.
|
998
|
-
string namespace = 1;
|
999
|
-
// The id of the schedule to query.
|
1000
|
-
string schedule_id = 2;
|
1001
|
-
// Time range to query.
|
1002
|
-
google.protobuf.Timestamp start_time = 3 [(gogoproto.stdtime) = true];
|
1003
|
-
google.protobuf.Timestamp end_time = 4 [(gogoproto.stdtime) = true];
|
1004
|
-
}
|
1005
|
-
|
1006
|
-
message ListScheduleMatchingTimesResponse {
|
1007
|
-
repeated google.protobuf.Timestamp start_time = 1 [(gogoproto.stdtime) = true];
|
1008
|
-
}
|
1009
|
-
|
1010
|
-
// (-- api-linter: core::0135::request-name-required=disabled
|
1011
|
-
// aip.dev/not-precedent: DeleteSchedule doesn't follow Google API format --)
|
1012
|
-
// (-- api-linter: core::0135::request-unknown-fields=disabled
|
1013
|
-
// aip.dev/not-precedent: DeleteSchedule doesn't follow Google API format --)
|
1014
|
-
message DeleteScheduleRequest {
|
1015
|
-
// The namespace of the schedule to delete.
|
1016
|
-
string namespace = 1;
|
1017
|
-
// The id of the schedule to delete.
|
1018
|
-
string schedule_id = 2;
|
1019
|
-
// The identity of the client who initiated this request.
|
1020
|
-
string identity = 3;
|
1021
|
-
}
|
1022
|
-
|
1023
|
-
message DeleteScheduleResponse {
|
1024
|
-
}
|
1025
|
-
|
1026
|
-
message ListSchedulesRequest {
|
1027
|
-
// The namespace to list schedules in.
|
1028
|
-
string namespace = 1;
|
1029
|
-
// How many to return at once.
|
1030
|
-
int32 maximum_page_size = 2;
|
1031
|
-
// Token to get the next page of results.
|
1032
|
-
bytes next_page_token = 3;
|
1033
|
-
}
|
1034
|
-
|
1035
|
-
message ListSchedulesResponse {
|
1036
|
-
repeated temporal.api.schedule.v1.ScheduleListEntry schedules = 1;
|
1037
|
-
bytes next_page_token = 2;
|
1038
|
-
}
|
1039
|
-
|
1040
|
-
// (-- api-linter: core::0134::request-mask-required=disabled
|
1041
|
-
// aip.dev/not-precedent: UpdateWorkerBuildIdOrderingRequest doesn't follow Google API format --)
|
1042
|
-
// (-- api-linter: core::0134::request-resource-required=disabled
|
1043
|
-
// aip.dev/not-precedent: UpdateWorkerBuildIdOrderingRequest RPC doesn't follow Google API format. --)
|
1044
|
-
message UpdateWorkerBuildIdOrderingRequest {
|
1045
|
-
string namespace = 1;
|
1046
|
-
// Must be set, the task queue to apply changes to. Because all workers on
|
1047
|
-
// a given task queue must have the same set of workflow & activity
|
1048
|
-
// implementations, there is no reason to specify a task queue type here.
|
1049
|
-
string task_queue = 2;
|
1050
|
-
// The version id we are targeting.
|
1051
|
-
temporal.api.taskqueue.v1.VersionId version_id = 3;
|
1052
|
-
// When set, indicates that the `version_id` in this message is compatible
|
1053
|
-
// with the one specified in this field. Because compatability should form
|
1054
|
-
// a DAG, any build id can only be the "next compatible" version for one
|
1055
|
-
// other ID of a certain type at a time, and any setting which would create a cycle is invalid.
|
1056
|
-
temporal.api.taskqueue.v1.VersionId previous_compatible = 4;
|
1057
|
-
// When set, establishes the specified `version_id` as the default of it's type
|
1058
|
-
// for the queue. Workers matching it will begin processing new workflow executions.
|
1059
|
-
// The existing default will be marked as a previous incompatible version
|
1060
|
-
// to this one, assuming it is not also in `is_compatible_with`.
|
1061
|
-
bool become_default = 5;
|
1062
|
-
}
|
1063
|
-
message UpdateWorkerBuildIdOrderingResponse {}
|
1064
|
-
|
1065
|
-
// (-- api-linter: core::0134::request-resource-required=disabled
|
1066
|
-
// aip.dev/not-precedent: GetWorkerBuildIdOrderingRequest RPC doesn't follow Google API format. --)
|
1067
|
-
message GetWorkerBuildIdOrderingRequest {
|
1068
|
-
string namespace = 1;
|
1069
|
-
// Must be set, the task queue to interrogate about worker id ordering
|
1070
|
-
string task_queue = 2;
|
1071
|
-
// Limits how deep the returned DAG will go. 1 will return only the
|
1072
|
-
// default build id. A default/0 value will return the entire graph.
|
1073
|
-
int32 max_depth = 3;
|
1074
|
-
}
|
1075
|
-
message GetWorkerBuildIdOrderingResponse {
|
1076
|
-
// The currently established default version
|
1077
|
-
temporal.api.taskqueue.v1.VersionIdNode current_default = 1;
|
1078
|
-
// Other current latest-compatible versions who are not the overall default. These are the
|
1079
|
-
// versions that will be used when generating new tasks by following the graph from the
|
1080
|
-
// version of the last task out to a leaf.
|
1081
|
-
repeated temporal.api.taskqueue.v1.VersionIdNode compatible_leaves = 2;
|
1082
|
-
}
|
1083
|
-
|
1084
|
-
// (-- api-linter: core::0134=disabled
|
1085
|
-
// aip.dev/not-precedent: Update RPCs don't follow Google API format. --)
|
1086
|
-
message UpdateWorkflowExecutionRequest {
|
1087
|
-
// The namespace name of the target workflow
|
1088
|
-
string namespace = 1;
|
1089
|
-
// The target workflow id and (optionally) a specific run thereof
|
1090
|
-
// (-- api-linter: core::0203::optional=disabled
|
1091
|
-
// aip.dev/not-precedent: false positive triggered by the word "optional" --)
|
1092
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
1093
|
-
// If set, this call will error if the most recent (if no run id is set on
|
1094
|
-
// `workflow_execution`), or specified (if it is) workflow execution is not
|
1095
|
-
// part of the same execution chain as this id.
|
1096
|
-
string first_execution_run_id = 3;
|
1097
|
-
|
1098
|
-
// Describes when this request should return - basically whether the
|
1099
|
-
// update is synchronous, asynchronous, or somewhere in between.
|
1100
|
-
temporal.api.update.v1.WaitPolicy wait_policy = 4;
|
1101
|
-
|
1102
|
-
// The request information that will be delivered all the way down to the
|
1103
|
-
// workflow execution.
|
1104
|
-
temporal.api.update.v1.Request request = 5;
|
1105
|
-
}
|
1106
|
-
|
1107
|
-
message UpdateWorkflowExecutionResponse {
|
1108
|
-
// Enough information for subsequent poll calls if needed. Never null.
|
1109
|
-
temporal.api.update.v1.UpdateRef update_ref = 1;
|
1110
|
-
|
1111
|
-
// The outcome of the update if and only if the workflow execution update
|
1112
|
-
// has completed. If this response is being returned before the update has
|
1113
|
-
// completed then this field will not be set.
|
1114
|
-
temporal.api.update.v1.Outcome outcome = 2;
|
1115
|
-
}
|
1116
|
-
|
1117
|
-
message StartBatchOperationRequest {
|
1118
|
-
// Namespace that contains the batch operation
|
1119
|
-
string namespace = 1;
|
1120
|
-
// Visibility query defines the the group of workflow to apply the batch operation
|
1121
|
-
// This field and Executions are mutually exclusive
|
1122
|
-
string visibility_query = 2;
|
1123
|
-
// Job ID defines the unique ID for the batch job
|
1124
|
-
string job_id = 3;
|
1125
|
-
// Reason to perform the batch operation
|
1126
|
-
string reason = 4;
|
1127
|
-
// Executions to apply the batch operation
|
1128
|
-
// This field and VisibilityQuery are mutually exclusive
|
1129
|
-
repeated temporal.api.common.v1.WorkflowExecution executions = 5;
|
1130
|
-
// Operation input
|
1131
|
-
oneof operation {
|
1132
|
-
temporal.api.batch.v1.BatchOperationTermination termination_operation = 10;
|
1133
|
-
temporal.api.batch.v1.BatchOperationSignal signal_operation = 11;
|
1134
|
-
temporal.api.batch.v1.BatchOperationCancellation cancellation_operation = 12;
|
1135
|
-
temporal.api.batch.v1.BatchOperationDeletion deletion_operation = 13;
|
1136
|
-
}
|
1137
|
-
}
|
1138
|
-
|
1139
|
-
message StartBatchOperationResponse {
|
1140
|
-
}
|
1141
|
-
|
1142
|
-
message StopBatchOperationRequest {
|
1143
|
-
// Namespace that contains the batch operation
|
1144
|
-
string namespace = 1;
|
1145
|
-
// Batch job id
|
1146
|
-
string job_id = 2;
|
1147
|
-
// Reason to stop a batch operation
|
1148
|
-
string reason = 3;
|
1149
|
-
// Identity of the operator
|
1150
|
-
string identity = 4;
|
1151
|
-
}
|
1152
|
-
|
1153
|
-
message StopBatchOperationResponse {
|
1154
|
-
}
|
1155
|
-
|
1156
|
-
message DescribeBatchOperationRequest {
|
1157
|
-
// Namespace that contains the batch operation
|
1158
|
-
string namespace = 1;
|
1159
|
-
// Batch job id
|
1160
|
-
string job_id = 2;
|
1161
|
-
}
|
1162
|
-
|
1163
|
-
message DescribeBatchOperationResponse {
|
1164
|
-
// Batch operation type
|
1165
|
-
temporal.api.enums.v1.BatchOperationType operation_type = 1;
|
1166
|
-
// Batch job ID
|
1167
|
-
string job_id = 2;
|
1168
|
-
// Batch operation state
|
1169
|
-
temporal.api.enums.v1.BatchOperationState state = 3;
|
1170
|
-
// Batch operation start time
|
1171
|
-
google.protobuf.Timestamp start_time = 4 [(gogoproto.stdtime) = true];
|
1172
|
-
// Batch operation close time
|
1173
|
-
google.protobuf.Timestamp close_time = 5 [(gogoproto.stdtime) = true];
|
1174
|
-
// Total operation count
|
1175
|
-
int64 total_operation_count = 6;
|
1176
|
-
// Complete operation count
|
1177
|
-
int64 complete_operation_count = 7;
|
1178
|
-
// Failure operation count
|
1179
|
-
int64 failure_operation_count = 8;
|
1180
|
-
// Identity indicates the operator identity
|
1181
|
-
string identity = 9;
|
1182
|
-
// Reason indicates the reason to stop a operation
|
1183
|
-
string reason = 10;
|
1184
|
-
}
|
1185
|
-
|
1186
|
-
message ListBatchOperationsRequest {
|
1187
|
-
// Namespace that contains the batch operation
|
1188
|
-
string namespace = 1;
|
1189
|
-
// List page size
|
1190
|
-
int32 page_size = 2;
|
1191
|
-
// Next page token
|
1192
|
-
bytes next_page_token = 3;
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
message ListBatchOperationsResponse {
|
1196
|
-
// BatchOperationInfo contains the basic info about batch operation
|
1197
|
-
repeated temporal.api.batch.v1.BatchOperationInfo operation_info = 1;
|
1198
|
-
bytes next_page_token = 2;
|
1199
|
-
}
|