temporalio 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
|
@@ -1,724 +1,739 @@
|
|
|
1
1
|
require 'temporal/api/workflowservice/v1/request_response_pb'
|
|
2
|
-
require '
|
|
3
|
-
require '
|
|
2
|
+
require 'temporalio/bridge'
|
|
3
|
+
require 'temporalio/errors'
|
|
4
|
+
require 'temporalio/runtime'
|
|
4
5
|
require 'uri'
|
|
5
6
|
|
|
6
|
-
module
|
|
7
|
+
module Temporalio
|
|
7
8
|
# A connection to the Temporal server.
|
|
8
9
|
#
|
|
9
|
-
# This is used to instantiate a {
|
|
10
|
+
# This is used to instantiate a {Temporalio::Client}. But it also can be used for a direct
|
|
10
11
|
# interaction with the API.
|
|
11
12
|
class Connection
|
|
13
|
+
# @api private
|
|
12
14
|
attr_reader :core_connection
|
|
13
15
|
|
|
14
16
|
# @param host [String] `host:port` for the Temporal server. For local development, this is
|
|
15
17
|
# often `"localhost:7233"`.
|
|
16
18
|
def initialize(host)
|
|
17
19
|
url = parse_url(host)
|
|
18
|
-
runtime =
|
|
19
|
-
@core_connection =
|
|
20
|
+
runtime = Temporalio::Runtime.instance
|
|
21
|
+
@core_connection = Temporalio::Bridge::Connection.connect(runtime.core_runtime, url)
|
|
20
22
|
end
|
|
21
23
|
|
|
22
|
-
# @param request [
|
|
24
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RegisterNamespaceRequest]
|
|
23
25
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
24
26
|
# Keys here override client-level RPC metadata keys.
|
|
25
27
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
26
28
|
#
|
|
27
|
-
# @return [
|
|
29
|
+
# @return [Temporalio::Api::WorkflowService::V1::RegisterNamespaceResponse]
|
|
28
30
|
def register_namespace(request, metadata: {}, timeout: nil)
|
|
29
|
-
encoded =
|
|
31
|
+
encoded = Temporalio::Api::WorkflowService::V1::RegisterNamespaceRequest.encode(request)
|
|
30
32
|
response = core_connection.call(:register_namespace, encoded, metadata, timeout)
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
Temporalio::Api::WorkflowService::V1::RegisterNamespaceResponse.decode(response)
|
|
33
35
|
end
|
|
34
36
|
|
|
35
|
-
# @param request [
|
|
37
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DescribeNamespaceRequest]
|
|
36
38
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
37
39
|
# Keys here override client-level RPC metadata keys.
|
|
38
40
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
39
41
|
#
|
|
40
|
-
# @return [
|
|
42
|
+
# @return [Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse]
|
|
41
43
|
def describe_namespace(request, metadata: {}, timeout: nil)
|
|
42
|
-
encoded =
|
|
44
|
+
encoded = Temporalio::Api::WorkflowService::V1::DescribeNamespaceRequest.encode(request)
|
|
43
45
|
response = core_connection.call(:describe_namespace, encoded, metadata, timeout)
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse.decode(response)
|
|
46
48
|
end
|
|
47
49
|
|
|
48
|
-
# @param request [
|
|
50
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListNamespacesRequest]
|
|
49
51
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
50
52
|
# Keys here override client-level RPC metadata keys.
|
|
51
53
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
52
54
|
#
|
|
53
|
-
# @return [
|
|
55
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListNamespacesResponse]
|
|
54
56
|
def list_namespaces(request, metadata: {}, timeout: nil)
|
|
55
|
-
encoded =
|
|
57
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListNamespacesRequest.encode(request)
|
|
56
58
|
response = core_connection.call(:list_namespaces, encoded, metadata, timeout)
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
Temporalio::Api::WorkflowService::V1::ListNamespacesResponse.decode(response)
|
|
59
61
|
end
|
|
60
62
|
|
|
61
|
-
# @param request [
|
|
63
|
+
# @param request [Temporalio::Api::WorkflowService::V1::UpdateNamespaceRequest]
|
|
62
64
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
63
65
|
# Keys here override client-level RPC metadata keys.
|
|
64
66
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
65
67
|
#
|
|
66
|
-
# @return [
|
|
68
|
+
# @return [Temporalio::Api::WorkflowService::V1::UpdateNamespaceResponse]
|
|
67
69
|
def update_namespace(request, metadata: {}, timeout: nil)
|
|
68
|
-
encoded =
|
|
70
|
+
encoded = Temporalio::Api::WorkflowService::V1::UpdateNamespaceRequest.encode(request)
|
|
69
71
|
response = core_connection.call(:update_namespace, encoded, metadata, timeout)
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
Temporalio::Api::WorkflowService::V1::UpdateNamespaceResponse.decode(response)
|
|
72
74
|
end
|
|
73
75
|
|
|
74
|
-
# @param request [
|
|
76
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DeprecateNamespaceRequest]
|
|
75
77
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
76
78
|
# Keys here override client-level RPC metadata keys.
|
|
77
79
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
78
80
|
#
|
|
79
|
-
# @return [
|
|
81
|
+
# @return [Temporalio::Api::WorkflowService::V1::DeprecateNamespaceResponse]
|
|
80
82
|
def deprecate_namespace(request, metadata: {}, timeout: nil)
|
|
81
|
-
encoded =
|
|
83
|
+
encoded = Temporalio::Api::WorkflowService::V1::DeprecateNamespaceRequest.encode(request)
|
|
82
84
|
response = core_connection.call(:deprecate_namespace, encoded, metadata, timeout)
|
|
83
85
|
|
|
84
|
-
|
|
86
|
+
Temporalio::Api::WorkflowService::V1::DeprecateNamespaceResponse.decode(response)
|
|
85
87
|
end
|
|
86
88
|
|
|
87
|
-
# @param request [
|
|
89
|
+
# @param request [Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest]
|
|
88
90
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
89
91
|
# Keys here override client-level RPC metadata keys.
|
|
90
92
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
91
93
|
#
|
|
92
|
-
# @return [
|
|
94
|
+
# @return [Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse]
|
|
93
95
|
def start_workflow_execution(request, metadata: {}, timeout: nil)
|
|
94
|
-
encoded =
|
|
96
|
+
encoded = Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest.encode(request)
|
|
95
97
|
response = core_connection.call(:start_workflow_execution, encoded, metadata, timeout)
|
|
96
98
|
|
|
97
|
-
|
|
99
|
+
Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse.decode(response)
|
|
98
100
|
end
|
|
99
101
|
|
|
100
|
-
# @param request [
|
|
102
|
+
# @param request [Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryRequest]
|
|
101
103
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
102
104
|
# Keys here override client-level RPC metadata keys.
|
|
103
105
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
104
106
|
#
|
|
105
|
-
# @return [
|
|
107
|
+
# @return [Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryResponse]
|
|
106
108
|
def get_workflow_execution_history(request, metadata: {}, timeout: nil)
|
|
107
|
-
encoded =
|
|
109
|
+
encoded = Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryRequest.encode(request)
|
|
108
110
|
response = core_connection.call(:get_workflow_execution_history, encoded, metadata, timeout)
|
|
109
111
|
|
|
110
|
-
|
|
112
|
+
Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryResponse.decode(response)
|
|
111
113
|
end
|
|
112
114
|
|
|
113
|
-
# @param request [
|
|
115
|
+
# @param request [Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryReverseRequest]
|
|
114
116
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
115
117
|
# Keys here override client-level RPC metadata keys.
|
|
116
118
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
117
119
|
#
|
|
118
|
-
# @return [
|
|
120
|
+
# @return [Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryReverseResponse]
|
|
119
121
|
def get_workflow_execution_history_reverse(request, metadata: {}, timeout: nil)
|
|
120
|
-
encoded =
|
|
122
|
+
encoded = Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryReverseRequest.encode(request)
|
|
121
123
|
response = core_connection.call(:get_workflow_execution_history_reverse, encoded, metadata, timeout)
|
|
122
124
|
|
|
123
|
-
|
|
125
|
+
Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryReverseResponse.decode(response)
|
|
124
126
|
end
|
|
125
127
|
|
|
126
|
-
# @param request [
|
|
128
|
+
# @param request [Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueRequest]
|
|
127
129
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
128
130
|
# Keys here override client-level RPC metadata keys.
|
|
129
131
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
130
132
|
#
|
|
131
|
-
# @return [
|
|
133
|
+
# @return [Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse]
|
|
132
134
|
def poll_workflow_task_queue(request, metadata: {}, timeout: nil)
|
|
133
|
-
encoded =
|
|
135
|
+
encoded = Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueRequest.encode(request)
|
|
134
136
|
response = core_connection.call(:poll_workflow_task_queue, encoded, metadata, timeout)
|
|
135
137
|
|
|
136
|
-
|
|
138
|
+
Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse.decode(response)
|
|
137
139
|
end
|
|
138
140
|
|
|
139
|
-
# @param request [
|
|
141
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest]
|
|
140
142
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
141
143
|
# Keys here override client-level RPC metadata keys.
|
|
142
144
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
143
145
|
#
|
|
144
|
-
# @return [
|
|
146
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedResponse]
|
|
145
147
|
def respond_workflow_task_completed(request, metadata: {}, timeout: nil)
|
|
146
|
-
encoded =
|
|
148
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest.encode(request)
|
|
147
149
|
response = core_connection.call(:respond_workflow_task_completed, encoded, metadata, timeout)
|
|
148
150
|
|
|
149
|
-
|
|
151
|
+
Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedResponse.decode(response)
|
|
150
152
|
end
|
|
151
153
|
|
|
152
|
-
# @param request [
|
|
154
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskFailedRequest]
|
|
153
155
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
154
156
|
# Keys here override client-level RPC metadata keys.
|
|
155
157
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
156
158
|
#
|
|
157
|
-
# @return [
|
|
159
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskFailedResponse]
|
|
158
160
|
def respond_workflow_task_failed(request, metadata: {}, timeout: nil)
|
|
159
|
-
encoded =
|
|
161
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskFailedRequest.encode(request)
|
|
160
162
|
response = core_connection.call(:respond_workflow_task_failed, encoded, metadata, timeout)
|
|
161
163
|
|
|
162
|
-
|
|
164
|
+
Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskFailedResponse.decode(response)
|
|
163
165
|
end
|
|
164
166
|
|
|
165
|
-
# @param request [
|
|
167
|
+
# @param request [Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueRequest]
|
|
166
168
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
167
169
|
# Keys here override client-level RPC metadata keys.
|
|
168
170
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
169
171
|
#
|
|
170
|
-
# @return [
|
|
172
|
+
# @return [Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse]
|
|
171
173
|
def poll_activity_task_queue(request, metadata: {}, timeout: nil)
|
|
172
|
-
encoded =
|
|
174
|
+
encoded = Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueRequest.encode(request)
|
|
173
175
|
response = core_connection.call(:poll_activity_task_queue, encoded, metadata, timeout)
|
|
174
176
|
|
|
175
|
-
|
|
177
|
+
Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse.decode(response)
|
|
176
178
|
end
|
|
177
179
|
|
|
178
|
-
# @param request [
|
|
180
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatRequest]
|
|
179
181
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
180
182
|
# Keys here override client-level RPC metadata keys.
|
|
181
183
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
182
184
|
#
|
|
183
|
-
# @return [
|
|
185
|
+
# @return [Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatResponse]
|
|
184
186
|
def record_activity_task_heartbeat(request, metadata: {}, timeout: nil)
|
|
185
|
-
encoded =
|
|
187
|
+
encoded = Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatRequest.encode(request)
|
|
186
188
|
response = core_connection.call(:record_activity_task_heartbeat, encoded, metadata, timeout)
|
|
187
189
|
|
|
188
|
-
|
|
190
|
+
Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatResponse.decode(response)
|
|
189
191
|
end
|
|
190
192
|
|
|
191
|
-
# @param request [
|
|
193
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatByIdRequest]
|
|
192
194
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
193
195
|
# Keys here override client-level RPC metadata keys.
|
|
194
196
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
195
197
|
#
|
|
196
|
-
# @return [
|
|
198
|
+
# @return [Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatByIdResponse]
|
|
197
199
|
def record_activity_task_heartbeat_by_id(request, metadata: {}, timeout: nil)
|
|
198
|
-
encoded =
|
|
200
|
+
encoded = Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatByIdRequest.encode(request)
|
|
199
201
|
response = core_connection.call(:record_activity_task_heartbeat_by_id, encoded, metadata, timeout)
|
|
200
202
|
|
|
201
|
-
|
|
203
|
+
Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatByIdResponse.decode(response)
|
|
202
204
|
end
|
|
203
205
|
|
|
204
|
-
# @param request [
|
|
206
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedRequest]
|
|
205
207
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
206
208
|
# Keys here override client-level RPC metadata keys.
|
|
207
209
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
208
210
|
#
|
|
209
|
-
# @return [
|
|
211
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedResponse]
|
|
210
212
|
def respond_activity_task_completed(request, metadata: {}, timeout: nil)
|
|
211
|
-
encoded =
|
|
213
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedRequest.encode(request)
|
|
212
214
|
response = core_connection.call(:respond_activity_task_completed, encoded, metadata, timeout)
|
|
213
215
|
|
|
214
|
-
|
|
216
|
+
Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedResponse.decode(response)
|
|
215
217
|
end
|
|
216
218
|
|
|
217
|
-
# @param request [
|
|
219
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedByIdRequest]
|
|
218
220
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
219
221
|
# Keys here override client-level RPC metadata keys.
|
|
220
222
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
221
223
|
#
|
|
222
|
-
# @return [
|
|
224
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedByIdResponse]
|
|
223
225
|
def respond_activity_task_completed_by_id(request, metadata: {}, timeout: nil)
|
|
224
|
-
encoded =
|
|
226
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedByIdRequest.encode(request)
|
|
225
227
|
response = core_connection.call(:respond_activity_task_completed_by_id, encoded, metadata, timeout)
|
|
226
228
|
|
|
227
|
-
|
|
229
|
+
Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedByIdResponse.decode(response)
|
|
228
230
|
end
|
|
229
231
|
|
|
230
|
-
# @param request [
|
|
232
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedRequest]
|
|
231
233
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
232
234
|
# Keys here override client-level RPC metadata keys.
|
|
233
235
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
234
236
|
#
|
|
235
|
-
# @return [
|
|
237
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedResponse]
|
|
236
238
|
def respond_activity_task_failed(request, metadata: {}, timeout: nil)
|
|
237
|
-
encoded =
|
|
239
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedRequest.encode(request)
|
|
238
240
|
response = core_connection.call(:respond_activity_task_failed, encoded, metadata, timeout)
|
|
239
241
|
|
|
240
|
-
|
|
242
|
+
Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedResponse.decode(response)
|
|
241
243
|
end
|
|
242
244
|
|
|
243
|
-
# @param request [
|
|
245
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedByIdRequest]
|
|
244
246
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
245
247
|
# Keys here override client-level RPC metadata keys.
|
|
246
248
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
247
249
|
#
|
|
248
|
-
# @return [
|
|
250
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedByIdResponse]
|
|
249
251
|
def respond_activity_task_failed_by_id(request, metadata: {}, timeout: nil)
|
|
250
|
-
encoded =
|
|
252
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedByIdRequest.encode(request)
|
|
251
253
|
response = core_connection.call(:respond_activity_task_failed_by_id, encoded, metadata, timeout)
|
|
252
254
|
|
|
253
|
-
|
|
255
|
+
Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedByIdResponse.decode(response)
|
|
254
256
|
end
|
|
255
257
|
|
|
256
|
-
# @param request [
|
|
258
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledRequest]
|
|
257
259
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
258
260
|
# Keys here override client-level RPC metadata keys.
|
|
259
261
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
260
262
|
#
|
|
261
|
-
# @return [
|
|
263
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledResponse]
|
|
262
264
|
def respond_activity_task_canceled(request, metadata: {}, timeout: nil)
|
|
263
|
-
encoded =
|
|
265
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledRequest.encode(request)
|
|
264
266
|
response = core_connection.call(:respond_activity_task_canceled, encoded, metadata, timeout)
|
|
265
267
|
|
|
266
|
-
|
|
268
|
+
Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledResponse.decode(response)
|
|
267
269
|
end
|
|
268
270
|
|
|
269
|
-
# @param request [
|
|
271
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledByIdRequest]
|
|
270
272
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
271
273
|
# Keys here override client-level RPC metadata keys.
|
|
272
274
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
273
275
|
#
|
|
274
|
-
# @return [
|
|
276
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledByIdResponse]
|
|
275
277
|
def respond_activity_task_canceled_by_id(request, metadata: {}, timeout: nil)
|
|
276
|
-
encoded =
|
|
278
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledByIdRequest.encode(request)
|
|
277
279
|
response = core_connection.call(:respond_activity_task_canceled_by_id, encoded, metadata, timeout)
|
|
278
280
|
|
|
279
|
-
|
|
281
|
+
Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledByIdResponse.decode(response)
|
|
280
282
|
end
|
|
281
283
|
|
|
282
|
-
# @param request [
|
|
284
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RequestCancelWorkflowExecutionRequest]
|
|
283
285
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
284
286
|
# Keys here override client-level RPC metadata keys.
|
|
285
287
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
286
288
|
#
|
|
287
|
-
# @return [
|
|
289
|
+
# @return [Temporalio::Api::WorkflowService::V1::RequestCancelWorkflowExecutionResponse]
|
|
288
290
|
def request_cancel_workflow_execution(request, metadata: {}, timeout: nil)
|
|
289
|
-
encoded =
|
|
291
|
+
encoded = Temporalio::Api::WorkflowService::V1::RequestCancelWorkflowExecutionRequest.encode(request)
|
|
290
292
|
response = core_connection.call(:request_cancel_workflow_execution, encoded, metadata, timeout)
|
|
291
293
|
|
|
292
|
-
|
|
294
|
+
Temporalio::Api::WorkflowService::V1::RequestCancelWorkflowExecutionResponse.decode(response)
|
|
293
295
|
end
|
|
294
296
|
|
|
295
|
-
# @param request [
|
|
297
|
+
# @param request [Temporalio::Api::WorkflowService::V1::SignalWorkflowExecutionRequest]
|
|
296
298
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
297
299
|
# Keys here override client-level RPC metadata keys.
|
|
298
300
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
299
301
|
#
|
|
300
|
-
# @return [
|
|
302
|
+
# @return [Temporalio::Api::WorkflowService::V1::SignalWorkflowExecutionResponse]
|
|
301
303
|
def signal_workflow_execution(request, metadata: {}, timeout: nil)
|
|
302
|
-
encoded =
|
|
304
|
+
encoded = Temporalio::Api::WorkflowService::V1::SignalWorkflowExecutionRequest.encode(request)
|
|
303
305
|
response = core_connection.call(:signal_workflow_execution, encoded, metadata, timeout)
|
|
304
306
|
|
|
305
|
-
|
|
307
|
+
Temporalio::Api::WorkflowService::V1::SignalWorkflowExecutionResponse.decode(response)
|
|
306
308
|
end
|
|
307
309
|
|
|
308
|
-
# @param request [
|
|
310
|
+
# @param request [Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionRequest]
|
|
309
311
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
310
312
|
# Keys here override client-level RPC metadata keys.
|
|
311
313
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
312
314
|
#
|
|
313
|
-
# @return [
|
|
315
|
+
# @return [Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionResponse]
|
|
314
316
|
def signal_with_start_workflow_execution(request, metadata: {}, timeout: nil)
|
|
315
|
-
encoded =
|
|
317
|
+
encoded = Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionRequest.encode(request)
|
|
316
318
|
response = core_connection.call(:signal_with_start_workflow_execution, encoded, metadata, timeout)
|
|
317
319
|
|
|
318
|
-
|
|
320
|
+
Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionResponse.decode(response)
|
|
319
321
|
end
|
|
320
322
|
|
|
321
|
-
# @param request [
|
|
323
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ResetWorkflowExecutionRequest]
|
|
322
324
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
323
325
|
# Keys here override client-level RPC metadata keys.
|
|
324
326
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
325
327
|
#
|
|
326
|
-
# @return [
|
|
328
|
+
# @return [Temporalio::Api::WorkflowService::V1::ResetWorkflowExecutionResponse]
|
|
327
329
|
def reset_workflow_execution(request, metadata: {}, timeout: nil)
|
|
328
|
-
encoded =
|
|
330
|
+
encoded = Temporalio::Api::WorkflowService::V1::ResetWorkflowExecutionRequest.encode(request)
|
|
329
331
|
response = core_connection.call(:reset_workflow_execution, encoded, metadata, timeout)
|
|
330
332
|
|
|
331
|
-
|
|
333
|
+
Temporalio::Api::WorkflowService::V1::ResetWorkflowExecutionResponse.decode(response)
|
|
332
334
|
end
|
|
333
335
|
|
|
334
|
-
# @param request [
|
|
336
|
+
# @param request [Temporalio::Api::WorkflowService::V1::TerminateWorkflowExecutionRequest]
|
|
335
337
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
336
338
|
# Keys here override client-level RPC metadata keys.
|
|
337
339
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
338
340
|
#
|
|
339
|
-
# @return [
|
|
341
|
+
# @return [Temporalio::Api::WorkflowService::V1::TerminateWorkflowExecutionResponse]
|
|
340
342
|
def terminate_workflow_execution(request, metadata: {}, timeout: nil)
|
|
341
|
-
encoded =
|
|
343
|
+
encoded = Temporalio::Api::WorkflowService::V1::TerminateWorkflowExecutionRequest.encode(request)
|
|
342
344
|
response = core_connection.call(:terminate_workflow_execution, encoded, metadata, timeout)
|
|
343
345
|
|
|
344
|
-
|
|
346
|
+
Temporalio::Api::WorkflowService::V1::TerminateWorkflowExecutionResponse.decode(response)
|
|
345
347
|
end
|
|
346
348
|
|
|
347
|
-
# @param request [
|
|
349
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DeleteWorkflowExecutionRequest]
|
|
348
350
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
349
351
|
# Keys here override client-level RPC metadata keys.
|
|
350
352
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
351
353
|
#
|
|
352
|
-
# @return [
|
|
354
|
+
# @return [Temporalio::Api::WorkflowService::V1::DeleteWorkflowExecutionResponse]
|
|
355
|
+
def delete_workflow_execution(request, metadata: {}, timeout: nil)
|
|
356
|
+
encoded = Temporalio::Api::WorkflowService::V1::DeleteWorkflowExecutionRequest.encode(request)
|
|
357
|
+
response = core_connection.call(:delete_workflow_execution, encoded, metadata, timeout)
|
|
358
|
+
|
|
359
|
+
Temporalio::Api::WorkflowService::V1::DeleteWorkflowExecutionResponse.decode(response)
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListOpenWorkflowExecutionsRequest]
|
|
363
|
+
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
364
|
+
# Keys here override client-level RPC metadata keys.
|
|
365
|
+
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
366
|
+
#
|
|
367
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListOpenWorkflowExecutionsResponse]
|
|
353
368
|
def list_open_workflow_executions(request, metadata: {}, timeout: nil)
|
|
354
|
-
encoded =
|
|
369
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListOpenWorkflowExecutionsRequest.encode(request)
|
|
355
370
|
response = core_connection.call(:list_open_workflow_executions, encoded, metadata, timeout)
|
|
356
371
|
|
|
357
|
-
|
|
372
|
+
Temporalio::Api::WorkflowService::V1::ListOpenWorkflowExecutionsResponse.decode(response)
|
|
358
373
|
end
|
|
359
374
|
|
|
360
|
-
# @param request [
|
|
375
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListClosedWorkflowExecutionsRequest]
|
|
361
376
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
362
377
|
# Keys here override client-level RPC metadata keys.
|
|
363
378
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
364
379
|
#
|
|
365
|
-
# @return [
|
|
380
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListClosedWorkflowExecutionsResponse]
|
|
366
381
|
def list_closed_workflow_executions(request, metadata: {}, timeout: nil)
|
|
367
|
-
encoded =
|
|
382
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListClosedWorkflowExecutionsRequest.encode(request)
|
|
368
383
|
response = core_connection.call(:list_closed_workflow_executions, encoded, metadata, timeout)
|
|
369
384
|
|
|
370
|
-
|
|
385
|
+
Temporalio::Api::WorkflowService::V1::ListClosedWorkflowExecutionsResponse.decode(response)
|
|
371
386
|
end
|
|
372
387
|
|
|
373
|
-
# @param request [
|
|
388
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListWorkflowExecutionsRequest]
|
|
374
389
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
375
390
|
# Keys here override client-level RPC metadata keys.
|
|
376
391
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
377
392
|
#
|
|
378
|
-
# @return [
|
|
393
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListWorkflowExecutionsResponse]
|
|
379
394
|
def list_workflow_executions(request, metadata: {}, timeout: nil)
|
|
380
|
-
encoded =
|
|
395
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListWorkflowExecutionsRequest.encode(request)
|
|
381
396
|
response = core_connection.call(:list_workflow_executions, encoded, metadata, timeout)
|
|
382
397
|
|
|
383
|
-
|
|
398
|
+
Temporalio::Api::WorkflowService::V1::ListWorkflowExecutionsResponse.decode(response)
|
|
384
399
|
end
|
|
385
400
|
|
|
386
|
-
# @param request [
|
|
401
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListArchivedWorkflowExecutionsRequest]
|
|
387
402
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
388
403
|
# Keys here override client-level RPC metadata keys.
|
|
389
404
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
390
405
|
#
|
|
391
|
-
# @return [
|
|
406
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListArchivedWorkflowExecutionsResponse]
|
|
392
407
|
def list_archived_workflow_executions(request, metadata: {}, timeout: nil)
|
|
393
|
-
encoded =
|
|
408
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListArchivedWorkflowExecutionsRequest.encode(request)
|
|
394
409
|
response = core_connection.call(:list_archived_workflow_executions, encoded, metadata, timeout)
|
|
395
410
|
|
|
396
|
-
|
|
411
|
+
Temporalio::Api::WorkflowService::V1::ListArchivedWorkflowExecutionsResponse.decode(response)
|
|
397
412
|
end
|
|
398
413
|
|
|
399
|
-
# @param request [
|
|
414
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ScanWorkflowExecutionsRequest]
|
|
400
415
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
401
416
|
# Keys here override client-level RPC metadata keys.
|
|
402
417
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
403
418
|
#
|
|
404
|
-
# @return [
|
|
419
|
+
# @return [Temporalio::Api::WorkflowService::V1::ScanWorkflowExecutionsResponse]
|
|
405
420
|
def scan_workflow_executions(request, metadata: {}, timeout: nil)
|
|
406
|
-
encoded =
|
|
421
|
+
encoded = Temporalio::Api::WorkflowService::V1::ScanWorkflowExecutionsRequest.encode(request)
|
|
407
422
|
response = core_connection.call(:scan_workflow_executions, encoded, metadata, timeout)
|
|
408
423
|
|
|
409
|
-
|
|
424
|
+
Temporalio::Api::WorkflowService::V1::ScanWorkflowExecutionsResponse.decode(response)
|
|
410
425
|
end
|
|
411
426
|
|
|
412
|
-
# @param request [
|
|
427
|
+
# @param request [Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsRequest]
|
|
413
428
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
414
429
|
# Keys here override client-level RPC metadata keys.
|
|
415
430
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
416
431
|
#
|
|
417
|
-
# @return [
|
|
432
|
+
# @return [Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsResponse]
|
|
418
433
|
def count_workflow_executions(request, metadata: {}, timeout: nil)
|
|
419
|
-
encoded =
|
|
434
|
+
encoded = Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsRequest.encode(request)
|
|
420
435
|
response = core_connection.call(:count_workflow_executions, encoded, metadata, timeout)
|
|
421
436
|
|
|
422
|
-
|
|
437
|
+
Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsResponse.decode(response)
|
|
423
438
|
end
|
|
424
439
|
|
|
425
|
-
# @param request [
|
|
440
|
+
# @param request [Temporalio::Api::WorkflowService::V1::GetSearchAttributesRequest]
|
|
426
441
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
427
442
|
# Keys here override client-level RPC metadata keys.
|
|
428
443
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
429
444
|
#
|
|
430
|
-
# @return [
|
|
445
|
+
# @return [Temporalio::Api::WorkflowService::V1::GetSearchAttributesResponse]
|
|
431
446
|
def get_search_attributes(request, metadata: {}, timeout: nil)
|
|
432
|
-
encoded =
|
|
447
|
+
encoded = Temporalio::Api::WorkflowService::V1::GetSearchAttributesRequest.encode(request)
|
|
433
448
|
response = core_connection.call(:get_search_attributes, encoded, metadata, timeout)
|
|
434
449
|
|
|
435
|
-
|
|
450
|
+
Temporalio::Api::WorkflowService::V1::GetSearchAttributesResponse.decode(response)
|
|
436
451
|
end
|
|
437
452
|
|
|
438
|
-
# @param request [
|
|
453
|
+
# @param request [Temporalio::Api::WorkflowService::V1::RespondQueryTaskCompletedRequest]
|
|
439
454
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
440
455
|
# Keys here override client-level RPC metadata keys.
|
|
441
456
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
442
457
|
#
|
|
443
|
-
# @return [
|
|
458
|
+
# @return [Temporalio::Api::WorkflowService::V1::RespondQueryTaskCompletedResponse]
|
|
444
459
|
def respond_query_task_completed(request, metadata: {}, timeout: nil)
|
|
445
|
-
encoded =
|
|
460
|
+
encoded = Temporalio::Api::WorkflowService::V1::RespondQueryTaskCompletedRequest.encode(request)
|
|
446
461
|
response = core_connection.call(:respond_query_task_completed, encoded, metadata, timeout)
|
|
447
462
|
|
|
448
|
-
|
|
463
|
+
Temporalio::Api::WorkflowService::V1::RespondQueryTaskCompletedResponse.decode(response)
|
|
449
464
|
end
|
|
450
465
|
|
|
451
|
-
# @param request [
|
|
466
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ResetStickyTaskQueueRequest]
|
|
452
467
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
453
468
|
# Keys here override client-level RPC metadata keys.
|
|
454
469
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
455
470
|
#
|
|
456
|
-
# @return [
|
|
471
|
+
# @return [Temporalio::Api::WorkflowService::V1::ResetStickyTaskQueueResponse]
|
|
457
472
|
def reset_sticky_task_queue(request, metadata: {}, timeout: nil)
|
|
458
|
-
encoded =
|
|
473
|
+
encoded = Temporalio::Api::WorkflowService::V1::ResetStickyTaskQueueRequest.encode(request)
|
|
459
474
|
response = core_connection.call(:reset_sticky_task_queue, encoded, metadata, timeout)
|
|
460
475
|
|
|
461
|
-
|
|
476
|
+
Temporalio::Api::WorkflowService::V1::ResetStickyTaskQueueResponse.decode(response)
|
|
462
477
|
end
|
|
463
478
|
|
|
464
|
-
# @param request [
|
|
479
|
+
# @param request [Temporalio::Api::WorkflowService::V1::QueryWorkflowRequest]
|
|
465
480
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
466
481
|
# Keys here override client-level RPC metadata keys.
|
|
467
482
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
468
483
|
#
|
|
469
|
-
# @return [
|
|
484
|
+
# @return [Temporalio::Api::WorkflowService::V1::QueryWorkflowResponse]
|
|
470
485
|
def query_workflow(request, metadata: {}, timeout: nil)
|
|
471
|
-
encoded =
|
|
486
|
+
encoded = Temporalio::Api::WorkflowService::V1::QueryWorkflowRequest.encode(request)
|
|
472
487
|
response = core_connection.call(:query_workflow, encoded, metadata, timeout)
|
|
473
488
|
|
|
474
|
-
|
|
489
|
+
Temporalio::Api::WorkflowService::V1::QueryWorkflowResponse.decode(response)
|
|
475
490
|
end
|
|
476
491
|
|
|
477
|
-
# @param request [
|
|
492
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DescribeWorkflowExecutionRequest]
|
|
478
493
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
479
494
|
# Keys here override client-level RPC metadata keys.
|
|
480
495
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
481
496
|
#
|
|
482
|
-
# @return [
|
|
497
|
+
# @return [Temporalio::Api::WorkflowService::V1::DescribeWorkflowExecutionResponse]
|
|
483
498
|
def describe_workflow_execution(request, metadata: {}, timeout: nil)
|
|
484
|
-
encoded =
|
|
499
|
+
encoded = Temporalio::Api::WorkflowService::V1::DescribeWorkflowExecutionRequest.encode(request)
|
|
485
500
|
response = core_connection.call(:describe_workflow_execution, encoded, metadata, timeout)
|
|
486
501
|
|
|
487
|
-
|
|
502
|
+
Temporalio::Api::WorkflowService::V1::DescribeWorkflowExecutionResponse.decode(response)
|
|
488
503
|
end
|
|
489
504
|
|
|
490
|
-
# @param request [
|
|
505
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DescribeTaskQueueRequest]
|
|
491
506
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
492
507
|
# Keys here override client-level RPC metadata keys.
|
|
493
508
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
494
509
|
#
|
|
495
|
-
# @return [
|
|
510
|
+
# @return [Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse]
|
|
496
511
|
def describe_task_queue(request, metadata: {}, timeout: nil)
|
|
497
|
-
encoded =
|
|
512
|
+
encoded = Temporalio::Api::WorkflowService::V1::DescribeTaskQueueRequest.encode(request)
|
|
498
513
|
response = core_connection.call(:describe_task_queue, encoded, metadata, timeout)
|
|
499
514
|
|
|
500
|
-
|
|
515
|
+
Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse.decode(response)
|
|
501
516
|
end
|
|
502
517
|
|
|
503
|
-
# @param request [
|
|
518
|
+
# @param request [Temporalio::Api::WorkflowService::V1::GetClusterInfoRequest]
|
|
504
519
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
505
520
|
# Keys here override client-level RPC metadata keys.
|
|
506
521
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
507
522
|
#
|
|
508
|
-
# @return [
|
|
523
|
+
# @return [Temporalio::Api::WorkflowService::V1::GetClusterInfoResponse]
|
|
509
524
|
def get_cluster_info(request, metadata: {}, timeout: nil)
|
|
510
|
-
encoded =
|
|
525
|
+
encoded = Temporalio::Api::WorkflowService::V1::GetClusterInfoRequest.encode(request)
|
|
511
526
|
response = core_connection.call(:get_cluster_info, encoded, metadata, timeout)
|
|
512
527
|
|
|
513
|
-
|
|
528
|
+
Temporalio::Api::WorkflowService::V1::GetClusterInfoResponse.decode(response)
|
|
514
529
|
end
|
|
515
530
|
|
|
516
|
-
# @param request [
|
|
531
|
+
# @param request [Temporalio::Api::WorkflowService::V1::GetSystemInfoRequest]
|
|
517
532
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
518
533
|
# Keys here override client-level RPC metadata keys.
|
|
519
534
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
520
535
|
#
|
|
521
|
-
# @return [
|
|
536
|
+
# @return [Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse]
|
|
522
537
|
def get_system_info(request, metadata: {}, timeout: nil)
|
|
523
|
-
encoded =
|
|
538
|
+
encoded = Temporalio::Api::WorkflowService::V1::GetSystemInfoRequest.encode(request)
|
|
524
539
|
response = core_connection.call(:get_system_info, encoded, metadata, timeout)
|
|
525
540
|
|
|
526
|
-
|
|
541
|
+
Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse.decode(response)
|
|
527
542
|
end
|
|
528
543
|
|
|
529
|
-
# @param request [
|
|
544
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListTaskQueuePartitionsRequest]
|
|
530
545
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
531
546
|
# Keys here override client-level RPC metadata keys.
|
|
532
547
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
533
548
|
#
|
|
534
|
-
# @return [
|
|
549
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListTaskQueuePartitionsResponse]
|
|
535
550
|
def list_task_queue_partitions(request, metadata: {}, timeout: nil)
|
|
536
|
-
encoded =
|
|
551
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListTaskQueuePartitionsRequest.encode(request)
|
|
537
552
|
response = core_connection.call(:list_task_queue_partitions, encoded, metadata, timeout)
|
|
538
553
|
|
|
539
|
-
|
|
554
|
+
Temporalio::Api::WorkflowService::V1::ListTaskQueuePartitionsResponse.decode(response)
|
|
540
555
|
end
|
|
541
556
|
|
|
542
|
-
# @param request [
|
|
557
|
+
# @param request [Temporalio::Api::WorkflowService::V1::CreateScheduleRequest]
|
|
543
558
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
544
559
|
# Keys here override client-level RPC metadata keys.
|
|
545
560
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
546
561
|
#
|
|
547
|
-
# @return [
|
|
562
|
+
# @return [Temporalio::Api::WorkflowService::V1::CreateScheduleResponse]
|
|
548
563
|
def create_schedule(request, metadata: {}, timeout: nil)
|
|
549
|
-
encoded =
|
|
564
|
+
encoded = Temporalio::Api::WorkflowService::V1::CreateScheduleRequest.encode(request)
|
|
550
565
|
response = core_connection.call(:create_schedule, encoded, metadata, timeout)
|
|
551
566
|
|
|
552
|
-
|
|
567
|
+
Temporalio::Api::WorkflowService::V1::CreateScheduleResponse.decode(response)
|
|
553
568
|
end
|
|
554
569
|
|
|
555
|
-
# @param request [
|
|
570
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DescribeScheduleRequest]
|
|
556
571
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
557
572
|
# Keys here override client-level RPC metadata keys.
|
|
558
573
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
559
574
|
#
|
|
560
|
-
# @return [
|
|
575
|
+
# @return [Temporalio::Api::WorkflowService::V1::DescribeScheduleResponse]
|
|
561
576
|
def describe_schedule(request, metadata: {}, timeout: nil)
|
|
562
|
-
encoded =
|
|
577
|
+
encoded = Temporalio::Api::WorkflowService::V1::DescribeScheduleRequest.encode(request)
|
|
563
578
|
response = core_connection.call(:describe_schedule, encoded, metadata, timeout)
|
|
564
579
|
|
|
565
|
-
|
|
580
|
+
Temporalio::Api::WorkflowService::V1::DescribeScheduleResponse.decode(response)
|
|
566
581
|
end
|
|
567
582
|
|
|
568
|
-
# @param request [
|
|
583
|
+
# @param request [Temporalio::Api::WorkflowService::V1::UpdateScheduleRequest]
|
|
569
584
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
570
585
|
# Keys here override client-level RPC metadata keys.
|
|
571
586
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
572
587
|
#
|
|
573
|
-
# @return [
|
|
588
|
+
# @return [Temporalio::Api::WorkflowService::V1::UpdateScheduleResponse]
|
|
574
589
|
def update_schedule(request, metadata: {}, timeout: nil)
|
|
575
|
-
encoded =
|
|
590
|
+
encoded = Temporalio::Api::WorkflowService::V1::UpdateScheduleRequest.encode(request)
|
|
576
591
|
response = core_connection.call(:update_schedule, encoded, metadata, timeout)
|
|
577
592
|
|
|
578
|
-
|
|
593
|
+
Temporalio::Api::WorkflowService::V1::UpdateScheduleResponse.decode(response)
|
|
579
594
|
end
|
|
580
595
|
|
|
581
|
-
# @param request [
|
|
596
|
+
# @param request [Temporalio::Api::WorkflowService::V1::PatchScheduleRequest]
|
|
582
597
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
583
598
|
# Keys here override client-level RPC metadata keys.
|
|
584
599
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
585
600
|
#
|
|
586
|
-
# @return [
|
|
601
|
+
# @return [Temporalio::Api::WorkflowService::V1::PatchScheduleResponse]
|
|
587
602
|
def patch_schedule(request, metadata: {}, timeout: nil)
|
|
588
|
-
encoded =
|
|
603
|
+
encoded = Temporalio::Api::WorkflowService::V1::PatchScheduleRequest.encode(request)
|
|
589
604
|
response = core_connection.call(:patch_schedule, encoded, metadata, timeout)
|
|
590
605
|
|
|
591
|
-
|
|
606
|
+
Temporalio::Api::WorkflowService::V1::PatchScheduleResponse.decode(response)
|
|
592
607
|
end
|
|
593
608
|
|
|
594
|
-
# @param request [
|
|
609
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListScheduleMatchingTimesRequest]
|
|
595
610
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
596
611
|
# Keys here override client-level RPC metadata keys.
|
|
597
612
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
598
613
|
#
|
|
599
|
-
# @return [
|
|
614
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListScheduleMatchingTimesResponse]
|
|
600
615
|
def list_schedule_matching_times(request, metadata: {}, timeout: nil)
|
|
601
|
-
encoded =
|
|
616
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListScheduleMatchingTimesRequest.encode(request)
|
|
602
617
|
response = core_connection.call(:list_schedule_matching_times, encoded, metadata, timeout)
|
|
603
618
|
|
|
604
|
-
|
|
619
|
+
Temporalio::Api::WorkflowService::V1::ListScheduleMatchingTimesResponse.decode(response)
|
|
605
620
|
end
|
|
606
621
|
|
|
607
|
-
# @param request [
|
|
622
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DeleteScheduleRequest]
|
|
608
623
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
609
624
|
# Keys here override client-level RPC metadata keys.
|
|
610
625
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
611
626
|
#
|
|
612
|
-
# @return [
|
|
627
|
+
# @return [Temporalio::Api::WorkflowService::V1::DeleteScheduleResponse]
|
|
613
628
|
def delete_schedule(request, metadata: {}, timeout: nil)
|
|
614
|
-
encoded =
|
|
629
|
+
encoded = Temporalio::Api::WorkflowService::V1::DeleteScheduleRequest.encode(request)
|
|
615
630
|
response = core_connection.call(:delete_schedule, encoded, metadata, timeout)
|
|
616
631
|
|
|
617
|
-
|
|
632
|
+
Temporalio::Api::WorkflowService::V1::DeleteScheduleResponse.decode(response)
|
|
618
633
|
end
|
|
619
634
|
|
|
620
|
-
# @param request [
|
|
635
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListSchedulesRequest]
|
|
621
636
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
622
637
|
# Keys here override client-level RPC metadata keys.
|
|
623
638
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
624
639
|
#
|
|
625
|
-
# @return [
|
|
640
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListSchedulesResponse]
|
|
626
641
|
def list_schedules(request, metadata: {}, timeout: nil)
|
|
627
|
-
encoded =
|
|
642
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListSchedulesRequest.encode(request)
|
|
628
643
|
response = core_connection.call(:list_schedules, encoded, metadata, timeout)
|
|
629
644
|
|
|
630
|
-
|
|
645
|
+
Temporalio::Api::WorkflowService::V1::ListSchedulesResponse.decode(response)
|
|
631
646
|
end
|
|
632
647
|
|
|
633
|
-
# @param request [
|
|
648
|
+
# @param request [Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdOrderingRequest]
|
|
634
649
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
635
650
|
# Keys here override client-level RPC metadata keys.
|
|
636
651
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
637
652
|
#
|
|
638
|
-
# @return [
|
|
653
|
+
# @return [Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdOrderingResponse]
|
|
639
654
|
def update_worker_build_id_ordering(request, metadata: {}, timeout: nil)
|
|
640
|
-
encoded =
|
|
655
|
+
encoded = Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdOrderingRequest.encode(request)
|
|
641
656
|
response = core_connection.call(:update_worker_build_id_ordering, encoded, metadata, timeout)
|
|
642
657
|
|
|
643
|
-
|
|
658
|
+
Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdOrderingResponse.decode(response)
|
|
644
659
|
end
|
|
645
660
|
|
|
646
|
-
# @param request [
|
|
661
|
+
# @param request [Temporalio::Api::WorkflowService::V1::GetWorkerBuildIdOrderingRequest]
|
|
647
662
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
648
663
|
# Keys here override client-level RPC metadata keys.
|
|
649
664
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
650
665
|
#
|
|
651
|
-
# @return [
|
|
666
|
+
# @return [Temporalio::Api::WorkflowService::V1::GetWorkerBuildIdOrderingResponse]
|
|
652
667
|
def get_worker_build_id_ordering(request, metadata: {}, timeout: nil)
|
|
653
|
-
encoded =
|
|
668
|
+
encoded = Temporalio::Api::WorkflowService::V1::GetWorkerBuildIdOrderingRequest.encode(request)
|
|
654
669
|
response = core_connection.call(:get_worker_build_id_ordering, encoded, metadata, timeout)
|
|
655
670
|
|
|
656
|
-
|
|
671
|
+
Temporalio::Api::WorkflowService::V1::GetWorkerBuildIdOrderingResponse.decode(response)
|
|
657
672
|
end
|
|
658
673
|
|
|
659
|
-
# @param request [
|
|
674
|
+
# @param request [Temporalio::Api::WorkflowService::V1::UpdateWorkflowRequest]
|
|
660
675
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
661
676
|
# Keys here override client-level RPC metadata keys.
|
|
662
677
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
663
678
|
#
|
|
664
|
-
# @return [
|
|
679
|
+
# @return [Temporalio::Api::WorkflowService::V1::UpdateWorkflowResponse]
|
|
665
680
|
def update_workflow(request, metadata: {}, timeout: nil)
|
|
666
|
-
encoded =
|
|
681
|
+
encoded = Temporalio::Api::WorkflowService::V1::UpdateWorkflowRequest.encode(request)
|
|
667
682
|
response = core_connection.call(:update_workflow, encoded, metadata, timeout)
|
|
668
683
|
|
|
669
|
-
|
|
684
|
+
Temporalio::Api::WorkflowService::V1::UpdateWorkflowResponse.decode(response)
|
|
670
685
|
end
|
|
671
686
|
|
|
672
|
-
# @param request [
|
|
687
|
+
# @param request [Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest]
|
|
673
688
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
674
689
|
# Keys here override client-level RPC metadata keys.
|
|
675
690
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
676
691
|
#
|
|
677
|
-
# @return [
|
|
692
|
+
# @return [Temporalio::Api::WorkflowService::V1::StartBatchOperationResponse]
|
|
678
693
|
def start_batch_operation(request, metadata: {}, timeout: nil)
|
|
679
|
-
encoded =
|
|
694
|
+
encoded = Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest.encode(request)
|
|
680
695
|
response = core_connection.call(:start_batch_operation, encoded, metadata, timeout)
|
|
681
696
|
|
|
682
|
-
|
|
697
|
+
Temporalio::Api::WorkflowService::V1::StartBatchOperationResponse.decode(response)
|
|
683
698
|
end
|
|
684
699
|
|
|
685
|
-
# @param request [
|
|
700
|
+
# @param request [Temporalio::Api::WorkflowService::V1::StopBatchOperationRequest]
|
|
686
701
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
687
702
|
# Keys here override client-level RPC metadata keys.
|
|
688
703
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
689
704
|
#
|
|
690
|
-
# @return [
|
|
705
|
+
# @return [Temporalio::Api::WorkflowService::V1::StopBatchOperationResponse]
|
|
691
706
|
def stop_batch_operation(request, metadata: {}, timeout: nil)
|
|
692
|
-
encoded =
|
|
707
|
+
encoded = Temporalio::Api::WorkflowService::V1::StopBatchOperationRequest.encode(request)
|
|
693
708
|
response = core_connection.call(:stop_batch_operation, encoded, metadata, timeout)
|
|
694
709
|
|
|
695
|
-
|
|
710
|
+
Temporalio::Api::WorkflowService::V1::StopBatchOperationResponse.decode(response)
|
|
696
711
|
end
|
|
697
712
|
|
|
698
|
-
# @param request [
|
|
713
|
+
# @param request [Temporalio::Api::WorkflowService::V1::DescribeBatchOperationRequest]
|
|
699
714
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
700
715
|
# Keys here override client-level RPC metadata keys.
|
|
701
716
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
702
717
|
#
|
|
703
|
-
# @return [
|
|
718
|
+
# @return [Temporalio::Api::WorkflowService::V1::DescribeBatchOperationResponse]
|
|
704
719
|
def describe_batch_operation(request, metadata: {}, timeout: nil)
|
|
705
|
-
encoded =
|
|
720
|
+
encoded = Temporalio::Api::WorkflowService::V1::DescribeBatchOperationRequest.encode(request)
|
|
706
721
|
response = core_connection.call(:describe_batch_operation, encoded, metadata, timeout)
|
|
707
722
|
|
|
708
|
-
|
|
723
|
+
Temporalio::Api::WorkflowService::V1::DescribeBatchOperationResponse.decode(response)
|
|
709
724
|
end
|
|
710
725
|
|
|
711
|
-
# @param request [
|
|
726
|
+
# @param request [Temporalio::Api::WorkflowService::V1::ListBatchOperationsRequest]
|
|
712
727
|
# @param metadata [Hash<String, String>] Headers used on the RPC call.
|
|
713
728
|
# Keys here override client-level RPC metadata keys.
|
|
714
729
|
# @param timeout [Integer] Optional RPC deadline to set for each RPC call.
|
|
715
730
|
#
|
|
716
|
-
# @return [
|
|
731
|
+
# @return [Temporalio::Api::WorkflowService::V1::ListBatchOperationsResponse]
|
|
717
732
|
def list_batch_operations(request, metadata: {}, timeout: nil)
|
|
718
|
-
encoded =
|
|
733
|
+
encoded = Temporalio::Api::WorkflowService::V1::ListBatchOperationsRequest.encode(request)
|
|
719
734
|
response = core_connection.call(:list_batch_operations, encoded, metadata, timeout)
|
|
720
735
|
|
|
721
|
-
|
|
736
|
+
Temporalio::Api::WorkflowService::V1::ListBatchOperationsResponse.decode(response)
|
|
722
737
|
end
|
|
723
738
|
|
|
724
739
|
private
|
|
@@ -726,7 +741,7 @@ module Temporal
|
|
|
726
741
|
def parse_url(url)
|
|
727
742
|
# Turn this into a valid URI before parsing
|
|
728
743
|
uri = URI.parse(url.include?('://') ? url : "//#{url}")
|
|
729
|
-
raise
|
|
744
|
+
raise Temporalio::Error, 'Target host as URL with scheme are not supported' if uri.scheme
|
|
730
745
|
|
|
731
746
|
# TODO: Add support for mTLS
|
|
732
747
|
uri.scheme = 'http'
|