temporalio 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +175 -4
- data/bridge/Cargo.lock +44 -21
- data/bridge/Cargo.toml +1 -0
- data/bridge/sdk-core/Cargo.toml +1 -1
- data/bridge/sdk-core/README.md +1 -4
- data/bridge/sdk-core/client/Cargo.toml +1 -1
- data/bridge/sdk-core/client/src/lib.rs +12 -20
- data/bridge/sdk-core/client/src/raw.rs +9 -8
- data/bridge/sdk-core/client/src/retry.rs +100 -23
- data/bridge/sdk-core/core/Cargo.toml +7 -7
- data/bridge/sdk-core/core/benches/workflow_replay.rs +13 -10
- data/bridge/sdk-core/core/src/abstractions.rs +22 -22
- data/bridge/sdk-core/core/src/core_tests/activity_tasks.rs +146 -43
- data/bridge/sdk-core/core/src/core_tests/local_activities.rs +419 -9
- data/bridge/sdk-core/core/src/core_tests/queries.rs +247 -89
- data/bridge/sdk-core/core/src/core_tests/workers.rs +2 -2
- data/bridge/sdk-core/core/src/core_tests/workflow_cancels.rs +1 -1
- data/bridge/sdk-core/core/src/core_tests/workflow_tasks.rs +47 -27
- data/bridge/sdk-core/core/src/lib.rs +139 -32
- data/bridge/sdk-core/core/src/protosext/mod.rs +1 -1
- data/bridge/sdk-core/core/src/replay/mod.rs +185 -41
- data/bridge/sdk-core/core/src/telemetry/log_export.rs +190 -0
- data/bridge/sdk-core/core/src/telemetry/metrics.rs +184 -139
- data/bridge/sdk-core/core/src/telemetry/mod.rs +310 -315
- data/bridge/sdk-core/core/src/telemetry/prometheus_server.rs +4 -3
- data/bridge/sdk-core/core/src/test_help/mod.rs +23 -9
- data/bridge/sdk-core/core/src/worker/activities/local_activities.rs +12 -6
- data/bridge/sdk-core/core/src/worker/activities.rs +40 -23
- data/bridge/sdk-core/core/src/worker/client/mocks.rs +1 -1
- data/bridge/sdk-core/core/src/worker/client.rs +30 -4
- data/bridge/sdk-core/core/src/worker/mod.rs +23 -19
- data/bridge/sdk-core/core/src/worker/workflow/driven_workflow.rs +10 -19
- data/bridge/sdk-core/core/src/worker/workflow/history_update.rs +99 -25
- data/bridge/sdk-core/core/src/worker/workflow/machines/activity_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/cancel_external_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/cancel_workflow_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/child_workflow_state_machine.rs +3 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/complete_workflow_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/continue_as_new_workflow_state_machine.rs +2 -6
- data/bridge/sdk-core/core/src/worker/workflow/machines/fail_workflow_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/local_activity_state_machine.rs +24 -22
- data/bridge/sdk-core/core/src/worker/workflow/machines/mod.rs +12 -38
- data/bridge/sdk-core/core/src/worker/workflow/machines/modify_workflow_properties_state_machine.rs +178 -0
- data/bridge/sdk-core/core/src/worker/workflow/machines/patch_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/signal_external_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/timer_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/transition_coverage.rs +8 -2
- data/bridge/sdk-core/core/src/worker/workflow/machines/upsert_search_attributes_state_machine.rs +1 -5
- data/bridge/sdk-core/core/src/worker/workflow/machines/workflow_machines/local_acts.rs +1 -1
- data/bridge/sdk-core/core/src/worker/workflow/machines/workflow_machines.rs +233 -217
- data/bridge/sdk-core/core/src/worker/workflow/machines/workflow_task_state_machine.rs +1 -6
- data/bridge/sdk-core/core/src/worker/workflow/managed_run/managed_wf_test.rs +4 -4
- data/bridge/sdk-core/core/src/worker/workflow/managed_run.rs +13 -5
- data/bridge/sdk-core/core/src/worker/workflow/mod.rs +86 -29
- data/bridge/sdk-core/core/src/worker/workflow/wft_poller.rs +2 -2
- data/bridge/sdk-core/core/src/worker/workflow/workflow_stream.rs +56 -11
- data/bridge/sdk-core/core-api/Cargo.toml +4 -3
- data/bridge/sdk-core/core-api/src/lib.rs +1 -43
- data/bridge/sdk-core/core-api/src/telemetry.rs +147 -0
- data/bridge/sdk-core/core-api/src/worker.rs +13 -0
- data/bridge/sdk-core/etc/deps.svg +115 -140
- data/bridge/sdk-core/etc/regen-depgraph.sh +5 -0
- data/bridge/sdk-core/fsm/rustfsm_procmacro/tests/trybuild/no_handle_conversions_require_into_fail.stderr +1 -1
- 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/protos/api_upstream/buf.yaml +0 -3
- data/bridge/sdk-core/protos/api_upstream/build/go.mod +7 -0
- data/bridge/sdk-core/protos/api_upstream/build/go.sum +5 -0
- data/bridge/sdk-core/protos/api_upstream/{temporal/api/update/v1/message.proto → build/tools.go} +6 -23
- data/bridge/sdk-core/protos/api_upstream/go.mod +6 -0
- data/bridge/sdk-core/protos/api_upstream/temporal/api/batch/v1/message.proto +12 -9
- data/bridge/sdk-core/protos/api_upstream/temporal/api/command/v1/message.proto +20 -19
- data/bridge/sdk-core/protos/api_upstream/temporal/api/common/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/batch_operation.proto +3 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/command_type.proto +4 -4
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/common.proto +3 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/event_type.proto +5 -3
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/failed_cause.proto +23 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/{cluster.proto → interaction_type.proto} +10 -11
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/namespace.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/query.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/reset.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/schedule.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/task_queue.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/update.proto +2 -13
- data/bridge/sdk-core/protos/api_upstream/temporal/api/enums/v1/workflow.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/errordetails/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/failure/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/filter/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/history/v1/message.proto +26 -19
- data/bridge/sdk-core/protos/api_upstream/temporal/api/interaction/v1/message.proto +87 -0
- data/bridge/sdk-core/protos/api_upstream/temporal/api/namespace/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/operatorservice/v1/request_response.proto +21 -61
- data/bridge/sdk-core/protos/api_upstream/temporal/api/operatorservice/v1/service.proto +2 -21
- data/bridge/sdk-core/protos/api_upstream/temporal/api/query/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/replication/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/schedule/v1/message.proto +110 -31
- data/bridge/sdk-core/protos/api_upstream/temporal/api/taskqueue/v1/message.proto +4 -4
- data/bridge/sdk-core/protos/api_upstream/temporal/api/version/v1/message.proto +2 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/workflow/v1/message.proto +3 -2
- data/bridge/sdk-core/protos/api_upstream/temporal/api/workflowservice/v1/request_response.proto +60 -16
- data/bridge/sdk-core/protos/api_upstream/temporal/api/workflowservice/v1/service.proto +17 -3
- data/bridge/sdk-core/protos/local/temporal/sdk/core/workflow_activation/workflow_activation.proto +2 -0
- data/bridge/sdk-core/protos/local/temporal/sdk/core/workflow_commands/workflow_commands.proto +8 -1
- data/bridge/sdk-core/protos/testsrv_upstream/temporal/api/testservice/v1/request_response.proto +2 -2
- data/bridge/sdk-core/protos/testsrv_upstream/temporal/api/testservice/v1/service.proto +2 -2
- data/bridge/sdk-core/sdk/Cargo.toml +2 -2
- data/bridge/sdk-core/sdk/src/interceptors.rs +36 -3
- data/bridge/sdk-core/sdk/src/lib.rs +7 -5
- data/bridge/sdk-core/sdk/src/workflow_context.rs +13 -2
- data/bridge/sdk-core/sdk/src/workflow_future.rs +3 -7
- data/bridge/sdk-core/sdk-core-protos/Cargo.toml +1 -1
- data/bridge/sdk-core/sdk-core-protos/build.rs +0 -1
- data/bridge/sdk-core/sdk-core-protos/src/history_builder.rs +65 -18
- data/bridge/sdk-core/sdk-core-protos/src/history_info.rs +22 -22
- data/bridge/sdk-core/sdk-core-protos/src/lib.rs +104 -44
- data/bridge/sdk-core/test-utils/Cargo.toml +2 -1
- data/bridge/sdk-core/test-utils/src/lib.rs +81 -29
- data/bridge/sdk-core/tests/integ_tests/heartbeat_tests.rs +5 -2
- data/bridge/sdk-core/tests/integ_tests/metrics_tests.rs +37 -0
- data/bridge/sdk-core/tests/integ_tests/polling_tests.rs +0 -13
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/local_activities.rs +167 -13
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/modify_wf_properties.rs +53 -0
- data/bridge/sdk-core/tests/integ_tests/workflow_tests/replay.rs +106 -20
- data/bridge/sdk-core/tests/integ_tests/workflow_tests.rs +18 -8
- data/bridge/sdk-core/tests/main.rs +6 -4
- data/bridge/src/connection.rs +81 -62
- data/bridge/src/lib.rs +92 -33
- data/bridge/src/runtime.rs +9 -2
- data/bridge/src/worker.rs +53 -2
- data/lib/bridge.so +0 -0
- data/lib/gen/temporal/api/batch/v1/message_pb.rb +8 -6
- data/lib/gen/temporal/api/command/v1/message_pb.rb +17 -9
- data/lib/gen/temporal/api/common/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/enums/v1/batch_operation_pb.rb +2 -1
- data/lib/gen/temporal/api/enums/v1/command_type_pb.rb +3 -1
- data/lib/gen/temporal/api/enums/v1/common_pb.rb +2 -1
- data/lib/gen/temporal/api/enums/v1/event_type_pb.rb +3 -2
- data/lib/gen/temporal/api/enums/v1/failed_cause_pb.rb +7 -1
- data/lib/gen/temporal/api/enums/v1/interaction_type_pb.rb +25 -0
- data/lib/gen/temporal/api/enums/v1/namespace_pb.rb +1 -1
- data/lib/gen/temporal/api/enums/v1/query_pb.rb +1 -1
- data/lib/gen/temporal/api/enums/v1/reset_pb.rb +1 -1
- data/lib/gen/temporal/api/enums/v1/schedule_pb.rb +1 -1
- data/lib/gen/temporal/api/enums/v1/task_queue_pb.rb +1 -1
- data/lib/gen/temporal/api/enums/v1/update_pb.rb +1 -6
- data/lib/gen/temporal/api/enums/v1/workflow_pb.rb +1 -1
- data/lib/gen/temporal/api/errordetails/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/failure/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/filter/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/history/v1/message_pb.rb +19 -18
- data/lib/gen/temporal/api/interaction/v1/message_pb.rb +49 -0
- data/lib/gen/temporal/api/namespace/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/operatorservice/v1/request_response_pb.rb +11 -51
- data/lib/gen/temporal/api/operatorservice/v1/service_pb.rb +1 -1
- data/lib/gen/temporal/api/query/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/replication/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/schedule/v1/message_pb.rb +22 -1
- data/lib/gen/temporal/api/taskqueue/v1/message_pb.rb +2 -2
- data/lib/gen/temporal/api/version/v1/message_pb.rb +1 -1
- data/lib/gen/temporal/api/workflow/v1/message_pb.rb +2 -1
- data/lib/gen/temporal/api/workflowservice/v1/request_response_pb.rb +27 -10
- data/lib/gen/temporal/api/workflowservice/v1/service_pb.rb +1 -1
- data/lib/gen/temporal/sdk/core/workflow_activation/workflow_activation_pb.rb +1 -0
- data/lib/gen/temporal/sdk/core/workflow_commands/workflow_commands_pb.rb +5 -1
- data/lib/temporalio/activity/context.rb +97 -0
- data/lib/temporalio/activity/info.rb +67 -0
- data/lib/temporalio/activity.rb +85 -0
- data/lib/temporalio/bridge/error.rb +8 -0
- data/lib/temporalio/bridge.rb +14 -0
- data/lib/{temporal → temporalio}/client/implementation.rb +49 -48
- data/lib/{temporal → temporalio}/client/workflow_handle.rb +35 -35
- data/lib/{temporal → temporalio}/client.rb +19 -32
- data/lib/{temporal → temporalio}/connection.rb +238 -223
- data/lib/{temporal → temporalio}/data_converter.rb +76 -35
- data/lib/{temporal → temporalio}/error/failure.rb +6 -6
- data/lib/{temporal → temporalio}/error/workflow_failure.rb +4 -2
- data/lib/{temporal → temporalio}/errors.rb +19 -1
- data/lib/{temporal → temporalio}/failure_converter/base.rb +5 -5
- data/lib/{temporal → temporalio}/failure_converter/basic.rb +58 -52
- data/lib/temporalio/failure_converter.rb +7 -0
- data/lib/{temporal → temporalio}/interceptor/chain.rb +2 -1
- data/lib/{temporal → temporalio}/interceptor/client.rb +22 -1
- data/lib/{temporal → temporalio}/payload_codec/base.rb +5 -5
- data/lib/{temporal → temporalio}/payload_converter/base.rb +3 -3
- data/lib/{temporal → temporalio}/payload_converter/bytes.rb +4 -3
- data/lib/{temporal → temporalio}/payload_converter/composite.rb +7 -5
- data/lib/{temporal → temporalio}/payload_converter/encoding_base.rb +4 -4
- data/lib/{temporal → temporalio}/payload_converter/json.rb +4 -3
- data/lib/{temporal → temporalio}/payload_converter/nil.rb +4 -3
- data/lib/temporalio/payload_converter.rb +14 -0
- data/lib/{temporal → temporalio}/retry_policy.rb +4 -4
- data/lib/{temporal → temporalio}/retry_state.rb +1 -1
- data/lib/temporalio/runtime.rb +25 -0
- data/lib/{temporal → temporalio}/timeout_type.rb +2 -2
- data/lib/temporalio/version.rb +3 -0
- data/lib/temporalio/worker/activity_runner.rb +92 -0
- data/lib/temporalio/worker/activity_worker.rb +138 -0
- data/lib/temporalio/worker/reactor.rb +46 -0
- data/lib/temporalio/worker/runner.rb +63 -0
- data/lib/temporalio/worker/sync_worker.rb +88 -0
- data/lib/temporalio/worker/thread_pool_executor.rb +51 -0
- data/lib/temporalio/worker.rb +198 -0
- data/lib/{temporal → temporalio}/workflow/execution_info.rb +4 -4
- data/lib/{temporal → temporalio}/workflow/execution_status.rb +1 -1
- data/lib/{temporal → temporalio}/workflow/id_reuse_policy.rb +6 -6
- data/lib/{temporal → temporalio}/workflow/query_reject_condition.rb +5 -5
- data/lib/temporalio.rb +12 -3
- data/temporalio.gemspec +7 -3
- metadata +79 -56
- data/bridge/sdk-core/bridge-ffi/Cargo.toml +0 -24
- data/bridge/sdk-core/bridge-ffi/LICENSE.txt +0 -23
- data/bridge/sdk-core/bridge-ffi/build.rs +0 -25
- data/bridge/sdk-core/bridge-ffi/include/sdk-core-bridge.h +0 -249
- data/bridge/sdk-core/bridge-ffi/src/lib.rs +0 -825
- data/bridge/sdk-core/bridge-ffi/src/wrappers.rs +0 -211
- data/bridge/sdk-core/core/src/log_export.rs +0 -62
- data/bridge/sdk-core/core/src/worker/workflow/machines/mutable_side_effect_state_machine.rs +0 -127
- data/bridge/sdk-core/core/src/worker/workflow/machines/side_effect_state_machine.rs +0 -71
- data/bridge/sdk-core/protos/api_upstream/temporal/api/cluster/v1/message.proto +0 -83
- data/bridge/sdk-core/protos/local/temporal/sdk/core/bridge/bridge.proto +0 -210
- data/bridge/sdk-core/sdk/src/conversions.rs +0 -8
- data/lib/gen/temporal/api/cluster/v1/message_pb.rb +0 -67
- data/lib/gen/temporal/api/enums/v1/cluster_pb.rb +0 -26
- data/lib/gen/temporal/api/update/v1/message_pb.rb +0 -26
- data/lib/temporal/bridge.rb +0 -14
- data/lib/temporal/failure_converter.rb +0 -8
- data/lib/temporal/payload_converter.rb +0 -14
- data/lib/temporal/runtime.rb +0 -22
- data/lib/temporal/version.rb +0 -3
- data/lib/temporal.rb +0 -8
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "CommandTypeProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
// Whenever this list of command types is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering.
|
35
35
|
enum CommandType {
|
@@ -47,11 +47,11 @@ enum CommandType {
|
|
47
47
|
COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION = 11;
|
48
48
|
COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION = 12;
|
49
49
|
COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 13;
|
50
|
-
|
51
50
|
// Indicates that an update has been accepted for processing workflow code
|
52
51
|
COMMAND_TYPE_ACCEPT_WORKFLOW_UPDATE = 14;
|
53
|
-
|
54
52
|
// Indicates that an update has completed and carries either the success or
|
55
53
|
// failure outcome of said update.
|
56
54
|
COMMAND_TYPE_COMPLETE_WORKFLOW_UPDATE = 15;
|
55
|
+
COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES = 16;
|
56
|
+
COMMAND_TYPE_REJECT_WORKFLOW_UPDATE = 17;
|
57
57
|
}
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "CommonProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
enum EncodingType {
|
35
35
|
ENCODING_TYPE_UNSPECIFIED = 0;
|
@@ -45,6 +45,7 @@ enum IndexedValueType {
|
|
45
45
|
INDEXED_VALUE_TYPE_DOUBLE = 4;
|
46
46
|
INDEXED_VALUE_TYPE_BOOL = 5;
|
47
47
|
INDEXED_VALUE_TYPE_DATETIME = 6;
|
48
|
+
INDEXED_VALUE_TYPE_KEYWORD_LIST = 7;
|
48
49
|
}
|
49
50
|
|
50
51
|
enum Severity {
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "EventTypeProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
// Whenever this list of events is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering
|
35
35
|
enum EventType {
|
@@ -152,7 +152,7 @@ enum EventType {
|
|
152
152
|
// Workflow search attributes should be updated and synchronized with the visibility store
|
153
153
|
EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 40;
|
154
154
|
// Workflow update request has been received
|
155
|
-
|
155
|
+
EVENT_TYPE_WORKFLOW_UPDATE_REJECTED = 41;
|
156
156
|
// Workflow update request has been accepted by user workflow code
|
157
157
|
EVENT_TYPE_WORKFLOW_UPDATE_ACCEPTED = 42;
|
158
158
|
// Workflow update has been completed
|
@@ -165,4 +165,6 @@ enum EventType {
|
|
165
165
|
// The distinction of external vs. command-based modification is important so the SDK can
|
166
166
|
// maintain determinism when using the command-based approach.
|
167
167
|
EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY = 45;
|
168
|
+
// Workflow properties modified by user workflow code
|
169
|
+
EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED = 46;
|
168
170
|
}
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "FailedCauseProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
// Workflow tasks can fail for various reasons. Note that some of these reasons can only originate
|
35
35
|
// from the server, and some of them can only originate from the SDK/worker.
|
@@ -66,6 +66,25 @@ enum WorkflowTaskFailedCause {
|
|
66
66
|
// The worker encountered a mismatch while replaying history between what was expected, and
|
67
67
|
// what the workflow code actually did.
|
68
68
|
WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR = 24;
|
69
|
+
WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES = 25;
|
70
|
+
|
71
|
+
// We send the below error codes to users when their requests would violate a size constraint
|
72
|
+
// of their workflow. We do this to ensure that the state of their workflow does not become too
|
73
|
+
// large because that can cause severe performance degradation. You can modify the thresholds for
|
74
|
+
// each of these errors within your dynamic config.
|
75
|
+
//
|
76
|
+
// Spawning a new child workflow would cause this workflow to exceed its limit of pending child
|
77
|
+
// workflows.
|
78
|
+
WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED = 26;
|
79
|
+
// Starting a new activity would cause this workflow to exceed its limit of pending activities
|
80
|
+
// that we track.
|
81
|
+
WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED = 27;
|
82
|
+
// A workflow has a buffer of signals that have not yet reached their destination. We return this
|
83
|
+
// error when sending a new signal would exceed the capacity of this buffer.
|
84
|
+
WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED = 28;
|
85
|
+
// Similarly, we have a buffer of pending requests to cancel other workflows. We return this error
|
86
|
+
// when our capacity for pending cancel requests is already reached.
|
87
|
+
WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED = 29;
|
69
88
|
}
|
70
89
|
|
71
90
|
enum StartChildWorkflowExecutionFailedCause {
|
@@ -94,4 +113,6 @@ enum ResourceExhaustedCause {
|
|
94
113
|
RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT = 2;
|
95
114
|
// System overloaded.
|
96
115
|
RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED = 3;
|
116
|
+
// Namespace exceeds persistence rate limit.
|
117
|
+
RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT = 4;
|
97
118
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License
|
2
2
|
//
|
3
|
-
// Copyright (c)
|
3
|
+
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
|
4
4
|
//
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
@@ -27,14 +27,13 @@ package temporal.api.enums.v1;
|
|
27
27
|
option go_package = "go.temporal.io/api/enums/v1;enums";
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
|
-
option java_outer_classname = "
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
30
|
+
option java_outer_classname = "InteractionTypeProto";
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
|
-
enum
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
}
|
34
|
+
enum InteractionType {
|
35
|
+
INTERACTION_TYPE_UNSPECIFIED = 0;
|
36
|
+
INTERACTION_TYPE_WORKFLOW_QUERY = 1;
|
37
|
+
INTERACTION_TYPE_WORKFLOW_UPDATE = 2;
|
38
|
+
INTERACTION_TYPE_WORKFLOW_SIGNAL = 3;
|
39
|
+
}
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "NamespaceProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
enum NamespaceState {
|
35
35
|
NAMESPACE_STATE_UNSPECIFIED = 0;
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "QueryProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
enum QueryResultType {
|
35
35
|
QUERY_RESULT_TYPE_UNSPECIFIED = 0;
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "ResetProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
// Reset reapplay(replay) options
|
35
35
|
// * RESET_REAPPLY_TYPE_SIGNAL (default) - Signals are reapplied when workflow is reset
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "ScheduleProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
|
35
35
|
// ScheduleOverlapPolicy controls what happens when a workflow would be started
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "TaskQueueProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
enum TaskQueueKind {
|
35
35
|
TASK_QUEUE_KIND_UNSPECIFIED = 0;
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "UpdateProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
enum WorkflowUpdateResultAccessStyle {
|
35
35
|
WORKFLOW_UPDATE_RESULT_ACCESS_STYLE_UNSPECIFIED = 0;
|
@@ -38,14 +38,3 @@ enum WorkflowUpdateResultAccessStyle {
|
|
38
38
|
// response body
|
39
39
|
WORKFLOW_UPDATE_RESULT_ACCESS_STYLE_REQUIRE_INLINE = 1;
|
40
40
|
}
|
41
|
-
|
42
|
-
enum WorkflowUpdateDurabilityPreference {
|
43
|
-
// The workflow expresses no preference as to the durability of the
|
44
|
-
// the associated update.
|
45
|
-
WORKFLOW_UPDATE_DURABILITY_PREFERENCE_UNSPECIFIED = 0;
|
46
|
-
|
47
|
-
// Used by a workflow to indicate that no workflow state mutation occurred
|
48
|
-
// while processing the update and that it wishes that the update not be
|
49
|
-
// made durable (and thus not take up space in workflow history).
|
50
|
-
WORKFLOW_UPDATE_DURABILITY_PREFERENCE_BYPASS = 1;
|
51
|
-
}
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/enums/v1;enums";
|
|
28
28
|
option java_package = "io.temporal.api.enums.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "WorkflowProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Enums::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Enums.V1";
|
33
33
|
|
34
34
|
// Defines how new runs of a workflow with a particular ID may or may not be allowed. Note that
|
35
35
|
// it is *never* valid to have two actively running instances of the same workflow id.
|
@@ -31,8 +31,8 @@ option go_package = "go.temporal.io/api/errordetails/v1;errordetails";
|
|
31
31
|
option java_package = "io.temporal.api.errordetails.v1";
|
32
32
|
option java_multiple_files = true;
|
33
33
|
option java_outer_classname = "MessageProto";
|
34
|
-
option ruby_package = "
|
35
|
-
option csharp_namespace = "
|
34
|
+
option ruby_package = "Temporalio::Api::ErrorDetails::V1";
|
35
|
+
option csharp_namespace = "Temporalio.Api.ErrorDetails.V1";
|
36
36
|
|
37
37
|
import "temporal/api/common/v1/message.proto";
|
38
38
|
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/failure/v1;failure";
|
|
28
28
|
option java_package = "io.temporal.api.failure.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "MessageProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Failure::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Failure.V1";
|
33
33
|
|
34
34
|
import "temporal/api/common/v1/message.proto";
|
35
35
|
import "temporal/api/enums/v1/workflow.proto";
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/filter/v1;filter";
|
|
28
28
|
option java_package = "io.temporal.api.filter.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "MessageProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Filter::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Filter.V1";
|
33
33
|
|
34
34
|
import "google/protobuf/timestamp.proto";
|
35
35
|
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/history/v1;history";
|
|
28
28
|
option java_package = "io.temporal.api.history.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "MessageProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::History::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.History.V1";
|
33
33
|
|
34
34
|
import "google/protobuf/duration.proto";
|
35
35
|
import "google/protobuf/timestamp.proto";
|
@@ -41,8 +41,8 @@ import "temporal/api/enums/v1/failed_cause.proto";
|
|
41
41
|
import "temporal/api/enums/v1/workflow.proto";
|
42
42
|
import "temporal/api/common/v1/message.proto";
|
43
43
|
import "temporal/api/failure/v1/message.proto";
|
44
|
+
import "temporal/api/interaction/v1/message.proto";
|
44
45
|
import "temporal/api/taskqueue/v1/message.proto";
|
45
|
-
import "temporal/api/update/v1/message.proto";
|
46
46
|
import "temporal/api/workflow/v1/message.proto";
|
47
47
|
|
48
48
|
// Always the first event in workflow history
|
@@ -192,6 +192,9 @@ message WorkflowTaskCompletedEventAttributes {
|
|
192
192
|
string identity = 3;
|
193
193
|
// Binary ID of the worker who completed this task
|
194
194
|
string binary_checksum = 4;
|
195
|
+
// ID of the worker who picked up this workflow task, or missing if worker
|
196
|
+
// is not using versioning.
|
197
|
+
temporal.api.taskqueue.v1.VersionId worker_versioning_id = 5;
|
195
198
|
}
|
196
199
|
|
197
200
|
message WorkflowTaskTimedOutEventAttributes {
|
@@ -506,6 +509,15 @@ message UpsertWorkflowSearchAttributesEventAttributes {
|
|
506
509
|
temporal.api.common.v1.SearchAttributes search_attributes = 2;
|
507
510
|
}
|
508
511
|
|
512
|
+
message WorkflowPropertiesModifiedEventAttributes {
|
513
|
+
// The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
|
514
|
+
int64 workflow_task_completed_event_id = 1;
|
515
|
+
// If set, update the workflow memo with the provided values. The values will be merged with
|
516
|
+
// the existing memo. If the user wants to delete values, a default/empty Payload should be
|
517
|
+
// used as the value for the key being deleted.
|
518
|
+
temporal.api.common.v1.Memo upserted_memo = 2;
|
519
|
+
}
|
520
|
+
|
509
521
|
message StartChildWorkflowExecutionInitiatedEventAttributes {
|
510
522
|
// Namespace of the child workflow.
|
511
523
|
// SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
|
@@ -635,25 +647,19 @@ message ChildWorkflowExecutionTerminatedEventAttributes {
|
|
635
647
|
int64 started_event_id = 5;
|
636
648
|
}
|
637
649
|
|
638
|
-
message WorkflowUpdateRequestedEventAttributes {
|
639
|
-
temporal.api.common.v1.Header header = 1;
|
640
|
-
string request_id = 2;
|
641
|
-
string update_id = 3;
|
642
|
-
temporal.api.update.v1.WorkflowUpdate update = 4;
|
643
|
-
}
|
644
|
-
|
645
650
|
message WorkflowUpdateAcceptedEventAttributes {
|
646
|
-
temporal.api.
|
647
|
-
|
651
|
+
temporal.api.interaction.v1.Meta meta = 1;
|
652
|
+
temporal.api.interaction.v1.Input input = 2;
|
648
653
|
}
|
649
654
|
|
650
655
|
message WorkflowUpdateCompletedEventAttributes {
|
651
|
-
temporal.api.
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
656
|
+
temporal.api.interaction.v1.Meta meta = 1;
|
657
|
+
temporal.api.interaction.v1.Output output = 2;
|
658
|
+
}
|
659
|
+
|
660
|
+
message WorkflowUpdateRejectedEventAttributes {
|
661
|
+
temporal.api.interaction.v1.Meta meta = 1;
|
662
|
+
temporal.api.failure.v1.Failure failure = 2;
|
657
663
|
}
|
658
664
|
|
659
665
|
message WorkflowPropertiesModifiedExternallyEventAttributes {
|
@@ -738,11 +744,12 @@ message HistoryEvent {
|
|
738
744
|
SignalExternalWorkflowExecutionFailedEventAttributes signal_external_workflow_execution_failed_event_attributes = 43;
|
739
745
|
ExternalWorkflowExecutionSignaledEventAttributes external_workflow_execution_signaled_event_attributes = 44;
|
740
746
|
UpsertWorkflowSearchAttributesEventAttributes upsert_workflow_search_attributes_event_attributes = 45;
|
741
|
-
|
747
|
+
WorkflowUpdateRejectedEventAttributes workflow_update_rejected_event_attributes = 46;
|
742
748
|
WorkflowUpdateAcceptedEventAttributes workflow_update_accepted_event_attributes = 47;
|
743
749
|
WorkflowUpdateCompletedEventAttributes workflow_update_completed_event_attributes = 48;
|
744
750
|
WorkflowPropertiesModifiedExternallyEventAttributes workflow_properties_modified_externally_event_attributes = 49;
|
745
751
|
ActivityPropertiesModifiedExternallyEventAttributes activity_properties_modified_externally_event_attributes = 50;
|
752
|
+
WorkflowPropertiesModifiedEventAttributes workflow_properties_modified_event_attributes = 51;
|
746
753
|
}
|
747
754
|
}
|
748
755
|
|
@@ -0,0 +1,87 @@
|
|
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.interaction.v1;
|
26
|
+
|
27
|
+
option go_package = "go.temporal.io/api/interaction/v1;interaction";
|
28
|
+
option java_package = "io.temporal.api.interaction.v1";
|
29
|
+
option java_multiple_files = true;
|
30
|
+
option java_outer_classname = "MessageProto";
|
31
|
+
option ruby_package = "Temporalio::Api::Interaction::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Interaction.V1";
|
33
|
+
|
34
|
+
import "temporal/api/common/v1/message.proto";
|
35
|
+
import "temporal/api/failure/v1/message.proto";
|
36
|
+
import "temporal/api/enums/v1/interaction_type.proto";
|
37
|
+
|
38
|
+
// Meta carries metadata about an interaction for use by the system (i.e. not
|
39
|
+
// generall user-visible)
|
40
|
+
message Meta {
|
41
|
+
// An ID with workflow-scoped uniqueness for this interaction
|
42
|
+
string id = 1;
|
43
|
+
|
44
|
+
// The event ID after which this interaction can execute. The effects of
|
45
|
+
// history up to and including this event ID should be visible to the
|
46
|
+
// interaction when it executes.
|
47
|
+
int64 event_id = 2;
|
48
|
+
|
49
|
+
// The type of this interaction.
|
50
|
+
temporal.api.enums.v1.InteractionType interaction_type = 3;
|
51
|
+
|
52
|
+
// A string identifying the agent that requested this interaction.
|
53
|
+
string identity = 4;
|
54
|
+
|
55
|
+
string request_id = 5;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Input carries interaction input that comes from the caller.
|
59
|
+
message Input {
|
60
|
+
// Headers that are passed with the interaction to and from the processing workflow.
|
61
|
+
// These can include things like auth or tracing tokens.
|
62
|
+
temporal.api.common.v1.Header header = 1;
|
63
|
+
|
64
|
+
// The name of the input handler to invoke on the target workflow
|
65
|
+
string name = 2;
|
66
|
+
|
67
|
+
// The arguments to pass to the named handler.
|
68
|
+
temporal.api.common.v1.Payloads args = 3;
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
// Output carries the output data from an interaction.
|
73
|
+
message Output {
|
74
|
+
// Headers that are passed with the interaction to and from the processing workflow.
|
75
|
+
// These can include things like auth or tracing tokens.
|
76
|
+
temporal.api.common.v1.Header header = 1;
|
77
|
+
|
78
|
+
oneof result {
|
79
|
+
temporal.api.common.v1.Payloads success = 2;
|
80
|
+
temporal.api.failure.v1.Failure failure = 3;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
message Invocation {
|
85
|
+
Meta meta = 1;
|
86
|
+
Input input = 2;
|
87
|
+
}
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/namespace/v1;namespace";
|
|
28
28
|
option java_package = "io.temporal.api.namespace.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "MessageProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::Namespace::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.Namespace.V1";
|
33
33
|
|
34
34
|
import "google/protobuf/duration.proto";
|
35
35
|
import "google/protobuf/timestamp.proto";
|
data/bridge/sdk-core/protos/api_upstream/temporal/api/operatorservice/v1/request_response.proto
CHANGED
@@ -28,18 +28,10 @@ option go_package = "go.temporal.io/api/operatorservice/v1;operatorservice";
|
|
28
28
|
option java_package = "io.temporal.api.operatorservice.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "RequestResponseProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::OperatorService::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.OperatorService.V1";
|
33
33
|
|
34
|
-
import "dependencies/gogoproto/gogo.proto";
|
35
|
-
import "google/protobuf/timestamp.proto";
|
36
|
-
import "google/protobuf/duration.proto";
|
37
|
-
|
38
|
-
import "temporal/api/cluster/v1/message.proto";
|
39
|
-
import "temporal/api/common/v1/message.proto";
|
40
|
-
import "temporal/api/enums/v1/cluster.proto";
|
41
34
|
import "temporal/api/enums/v1/common.proto";
|
42
|
-
import "temporal/api/version/v1/message.proto";
|
43
35
|
|
44
36
|
// (-- Search Attribute --)
|
45
37
|
|
@@ -84,21 +76,10 @@ message DeleteNamespaceResponse {
|
|
84
76
|
string deleted_namespace = 1;
|
85
77
|
}
|
86
78
|
|
87
|
-
// (-- api-linter: core::0135::request-unknown-fields=disabled
|
88
|
-
// aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
|
89
|
-
// (-- api-linter: core::0135::request-name-required=disabled
|
90
|
-
// aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
|
91
|
-
message DeleteWorkflowExecutionRequest {
|
92
|
-
string namespace = 1;
|
93
|
-
// Workflow Execution to delete. If run_id is not specified, the latest one is used.
|
94
|
-
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
|
95
|
-
}
|
96
|
-
|
97
|
-
message DeleteWorkflowExecutionResponse {
|
98
|
-
}
|
99
|
-
|
100
79
|
message AddOrUpdateRemoteClusterRequest {
|
80
|
+
// Frontend Address is a cross cluster accessible address.
|
101
81
|
string frontend_address = 1;
|
82
|
+
// Flag to enable / disable the cross cluster connection.
|
102
83
|
bool enable_remote_cluster_connection = 2;
|
103
84
|
}
|
104
85
|
|
@@ -106,56 +87,35 @@ message AddOrUpdateRemoteClusterResponse {
|
|
106
87
|
}
|
107
88
|
|
108
89
|
message RemoveRemoteClusterRequest {
|
90
|
+
// Remote cluster name to be removed.
|
109
91
|
string cluster_name = 1;
|
110
92
|
}
|
111
93
|
|
112
94
|
message RemoveRemoteClusterResponse {
|
113
95
|
}
|
114
96
|
|
115
|
-
message DescribeClusterRequest {
|
116
|
-
string cluster_name = 1;
|
117
|
-
}
|
118
|
-
|
119
|
-
message DescribeClusterResponse {
|
120
|
-
map<string,string> supported_clients = 1;
|
121
|
-
string server_version = 2;
|
122
|
-
temporal.api.cluster.v1.MembershipInfo membership_info = 3;
|
123
|
-
string cluster_id = 4;
|
124
|
-
string cluster_name = 5;
|
125
|
-
int32 history_shard_count = 6;
|
126
|
-
string persistence_store = 7;
|
127
|
-
string visibility_store = 8;
|
128
|
-
temporal.api.version.v1.VersionInfo version_info = 9;
|
129
|
-
int64 failover_version_increment = 10;
|
130
|
-
int64 initial_failover_version = 11;
|
131
|
-
bool is_global_namespace_enabled = 12;
|
132
|
-
}
|
133
|
-
|
134
97
|
message ListClustersRequest {
|
135
98
|
int32 page_size = 1;
|
136
99
|
bytes next_page_token = 2;
|
137
100
|
}
|
138
101
|
|
139
102
|
message ListClustersResponse {
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
message ListClusterMembersRequest {
|
145
|
-
// (-- api-linter: core::0140::prepositions=disabled
|
146
|
-
// aip.dev/not-precedent: "within" is used to indicate a time range. --)
|
147
|
-
google.protobuf.Duration last_heartbeat_within = 1 [(gogoproto.stdduration) = true];
|
148
|
-
string rpc_address = 2;
|
149
|
-
string host_id = 3;
|
150
|
-
temporal.api.enums.v1.ClusterMemberRole role = 4;
|
151
|
-
// (-- api-linter: core::0140::prepositions=disabled
|
152
|
-
// aip.dev/not-precedent: "after" is used to indicate a time range. --)
|
153
|
-
google.protobuf.Timestamp session_started_after_time = 5 [(gogoproto.stdtime) = true];
|
154
|
-
int32 page_size = 6;
|
155
|
-
bytes next_page_token = 7;
|
103
|
+
// List of all cluster information
|
104
|
+
repeated ClusterMetadata clusters = 1;
|
105
|
+
bytes next_page_token = 4;
|
156
106
|
}
|
157
107
|
|
158
|
-
message
|
159
|
-
|
160
|
-
|
108
|
+
message ClusterMetadata {
|
109
|
+
// Name of the cluster name.
|
110
|
+
string cluster_name = 1;
|
111
|
+
// Id of the cluster.
|
112
|
+
string cluster_id = 2;
|
113
|
+
// Cluster accessible address.
|
114
|
+
string address = 3;
|
115
|
+
// A unique failover version across all connected clusters.
|
116
|
+
int64 initial_failover_version = 4;
|
117
|
+
// History service shard number.
|
118
|
+
int32 history_shard_count = 5;
|
119
|
+
// A flag to indicate if a connection is active.
|
120
|
+
bool is_connection_enabled = 6;
|
161
121
|
}
|
@@ -28,8 +28,8 @@ option go_package = "go.temporal.io/api/operatorservice/v1;operatorservice";
|
|
28
28
|
option java_package = "io.temporal.api.operatorservice.v1";
|
29
29
|
option java_multiple_files = true;
|
30
30
|
option java_outer_classname = "ServiceProto";
|
31
|
-
option ruby_package = "
|
32
|
-
option csharp_namespace = "
|
31
|
+
option ruby_package = "Temporalio::Api::OperatorService::V1";
|
32
|
+
option csharp_namespace = "Temporalio.Api.OperatorService.V1";
|
33
33
|
|
34
34
|
|
35
35
|
import "temporal/api/operatorservice/v1/request_response.proto";
|
@@ -66,17 +66,6 @@ service OperatorService {
|
|
66
66
|
rpc DeleteNamespace (DeleteNamespaceRequest) returns (DeleteNamespaceResponse) {
|
67
67
|
}
|
68
68
|
|
69
|
-
// DeleteWorkflowExecution asynchronously deletes a specific Workflow Execution (when
|
70
|
-
// WorkflowExecution.run_id is provided) or the latest Workflow Execution (when
|
71
|
-
// WorkflowExecution.run_id is not provided). If the Workflow Execution is Running, it will be
|
72
|
-
// terminated before deletion.
|
73
|
-
// (-- api-linter: core::0135::method-signature=disabled
|
74
|
-
// aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
|
75
|
-
// (-- api-linter: core::0135::response-message-name=disabled
|
76
|
-
// aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
|
77
|
-
rpc DeleteWorkflowExecution (DeleteWorkflowExecutionRequest) returns (DeleteWorkflowExecutionResponse) {
|
78
|
-
}
|
79
|
-
|
80
69
|
// AddOrUpdateRemoteCluster adds or updates remote cluster.
|
81
70
|
rpc AddOrUpdateRemoteCluster(AddOrUpdateRemoteClusterRequest) returns (AddOrUpdateRemoteClusterResponse) {
|
82
71
|
}
|
@@ -85,15 +74,7 @@ service OperatorService {
|
|
85
74
|
rpc RemoveRemoteCluster(RemoveRemoteClusterRequest) returns (RemoveRemoteClusterResponse) {
|
86
75
|
}
|
87
76
|
|
88
|
-
// DescribeCluster returns information about Temporal cluster.
|
89
|
-
rpc DescribeCluster(DescribeClusterRequest) returns (DescribeClusterResponse) {
|
90
|
-
}
|
91
|
-
|
92
77
|
// ListClusters returns information about Temporal clusters.
|
93
78
|
rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) {
|
94
79
|
}
|
95
|
-
|
96
|
-
// ListClusterMembers returns information about Temporal cluster members.
|
97
|
-
rpc ListClusterMembers(ListClusterMembersRequest) returns (ListClusterMembersResponse) {
|
98
|
-
}
|
99
80
|
}
|