cadence-python-client 0.1.0__py3-none-any.whl
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.
- cadence/__init__.py +18 -0
- cadence/_internal/__init__.py +8 -0
- cadence/_internal/activity/__init__.py +5 -0
- cadence/_internal/activity/_activity_executor.py +113 -0
- cadence/_internal/activity/_context.py +58 -0
- cadence/_internal/rpc/__init__.py +0 -0
- cadence/_internal/rpc/error.py +148 -0
- cadence/_internal/rpc/retry.py +104 -0
- cadence/_internal/rpc/yarpc.py +42 -0
- cadence/_internal/workflow/__init__.py +0 -0
- cadence/_internal/workflow/context.py +121 -0
- cadence/_internal/workflow/decision_events_iterator.py +161 -0
- cadence/_internal/workflow/decisions_helper.py +312 -0
- cadence/_internal/workflow/deterministic_event_loop.py +498 -0
- cadence/_internal/workflow/history_event_iterator.py +58 -0
- cadence/_internal/workflow/statemachine/__init__.py +0 -0
- cadence/_internal/workflow/statemachine/activity_state_machine.py +106 -0
- cadence/_internal/workflow/statemachine/decision_manager.py +157 -0
- cadence/_internal/workflow/statemachine/decision_state_machine.py +87 -0
- cadence/_internal/workflow/statemachine/event_dispatcher.py +76 -0
- cadence/_internal/workflow/statemachine/timer_state_machine.py +73 -0
- cadence/_internal/workflow/workflow_engine.py +245 -0
- cadence/_internal/workflow/workflow_intance.py +44 -0
- cadence/activity.py +255 -0
- cadence/api/v1/__init__.py +92 -0
- cadence/api/v1/common_pb2.py +90 -0
- cadence/api/v1/common_pb2.pyi +200 -0
- cadence/api/v1/common_pb2_grpc.py +24 -0
- cadence/api/v1/decision_pb2.py +67 -0
- cadence/api/v1/decision_pb2.pyi +225 -0
- cadence/api/v1/decision_pb2_grpc.py +24 -0
- cadence/api/v1/domain_pb2.py +68 -0
- cadence/api/v1/domain_pb2.pyi +145 -0
- cadence/api/v1/domain_pb2_grpc.py +24 -0
- cadence/api/v1/error_pb2.py +59 -0
- cadence/api/v1/error_pb2.pyi +82 -0
- cadence/api/v1/error_pb2_grpc.py +24 -0
- cadence/api/v1/history_pb2.py +134 -0
- cadence/api/v1/history_pb2.pyi +780 -0
- cadence/api/v1/history_pb2_grpc.py +24 -0
- cadence/api/v1/query_pb2.py +49 -0
- cadence/api/v1/query_pb2.pyi +59 -0
- cadence/api/v1/query_pb2_grpc.py +24 -0
- cadence/api/v1/service_domain_pb2.py +76 -0
- cadence/api/v1/service_domain_pb2.pyi +164 -0
- cadence/api/v1/service_domain_pb2_grpc.py +327 -0
- cadence/api/v1/service_meta_pb2.py +41 -0
- cadence/api/v1/service_meta_pb2.pyi +17 -0
- cadence/api/v1/service_meta_pb2_grpc.py +97 -0
- cadence/api/v1/service_visibility_pb2.py +71 -0
- cadence/api/v1/service_visibility_pb2.pyi +149 -0
- cadence/api/v1/service_visibility_pb2_grpc.py +362 -0
- cadence/api/v1/service_worker_pb2.py +116 -0
- cadence/api/v1/service_worker_pb2.pyi +350 -0
- cadence/api/v1/service_worker_pb2_grpc.py +743 -0
- cadence/api/v1/service_workflow_pb2.py +126 -0
- cadence/api/v1/service_workflow_pb2.pyi +395 -0
- cadence/api/v1/service_workflow_pb2_grpc.py +861 -0
- cadence/api/v1/tasklist_pb2.py +78 -0
- cadence/api/v1/tasklist_pb2.pyi +147 -0
- cadence/api/v1/tasklist_pb2_grpc.py +24 -0
- cadence/api/v1/visibility_pb2.py +47 -0
- cadence/api/v1/visibility_pb2.pyi +53 -0
- cadence/api/v1/visibility_pb2_grpc.py +24 -0
- cadence/api/v1/workflow_pb2.py +89 -0
- cadence/api/v1/workflow_pb2.pyi +365 -0
- cadence/api/v1/workflow_pb2_grpc.py +24 -0
- cadence/client.py +382 -0
- cadence/data_converter.py +78 -0
- cadence/error.py +111 -0
- cadence/metrics/__init__.py +12 -0
- cadence/metrics/constants.py +136 -0
- cadence/metrics/metrics.py +56 -0
- cadence/metrics/prometheus.py +165 -0
- cadence/sample/__init__.py +1 -0
- cadence/sample/client_example.py +15 -0
- cadence/sample/grpc_usage_example.py +230 -0
- cadence/sample/simple_usage_example.py +155 -0
- cadence/signal.py +174 -0
- cadence/worker/__init__.py +13 -0
- cadence/worker/_activity.py +60 -0
- cadence/worker/_base_task_handler.py +71 -0
- cadence/worker/_decision.py +62 -0
- cadence/worker/_decision_task_handler.py +285 -0
- cadence/worker/_poller.py +64 -0
- cadence/worker/_registry.py +245 -0
- cadence/worker/_types.py +26 -0
- cadence/worker/_worker.py +56 -0
- cadence/workflow.py +271 -0
- cadence_python_client-0.1.0.dist-info/METADATA +180 -0
- cadence_python_client-0.1.0.dist-info/RECORD +95 -0
- cadence_python_client-0.1.0.dist-info/WHEEL +5 -0
- cadence_python_client-0.1.0.dist-info/licenses/LICENSE +201 -0
- cadence_python_client-0.1.0.dist-info/licenses/NOTICE +19 -0
- cadence_python_client-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cadence/api/v1/decision.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'cadence/api/v1/decision.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
26
|
+
from cadence.api.v1 import common_pb2 as cadence_dot_api_dot_v1_dot_common__pb2
|
|
27
|
+
from cadence.api.v1 import tasklist_pb2 as cadence_dot_api_dot_v1_dot_tasklist__pb2
|
|
28
|
+
from cadence.api.v1 import workflow_pb2 as cadence_dot_api_dot_v1_dot_workflow__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63\x61\x64\x65nce/api/v1/decision.proto\x12\x13uber.cadence.api.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1b\x63\x61\x64\x65nce/api/v1/common.proto\x1a\x1d\x63\x61\x64\x65nce/api/v1/tasklist.proto\x1a\x1d\x63\x61\x64\x65nce/api/v1/workflow.proto\"\xcf\x0c\n\x08\x44\x65\x63ision\x12q\n*schedule_activity_task_decision_attributes\x18\x01 \x01(\x0b\x32;.uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributesH\x00\x12\\\n\x1fstart_timer_decision_attributes\x18\x02 \x01(\x0b\x32\x31.uber.cadence.api.v1.StartTimerDecisionAttributesH\x00\x12{\n/complete_workflow_execution_decision_attributes\x18\x03 \x01(\x0b\x32@.uber.cadence.api.v1.CompleteWorkflowExecutionDecisionAttributesH\x00\x12s\n+fail_workflow_execution_decision_attributes\x18\x04 \x01(\x0b\x32<.uber.cadence.api.v1.FailWorkflowExecutionDecisionAttributesH\x00\x12|\n0request_cancel_activity_task_decision_attributes\x18\x05 \x01(\x0b\x32@.uber.cadence.api.v1.RequestCancelActivityTaskDecisionAttributesH\x00\x12^\n cancel_timer_decision_attributes\x18\x06 \x01(\x0b\x32\x32.uber.cadence.api.v1.CancelTimerDecisionAttributesH\x00\x12w\n-cancel_workflow_execution_decision_attributes\x18\x07 \x01(\x0b\x32>.uber.cadence.api.v1.CancelWorkflowExecutionDecisionAttributesH\x00\x12\x97\x01\n>request_cancel_external_workflow_execution_decision_attributes\x18\x08 \x01(\x0b\x32M.uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionDecisionAttributesH\x00\x12`\n!record_marker_decision_attributes\x18\t \x01(\x0b\x32\x33.uber.cadence.api.v1.RecordMarkerDecisionAttributesH\x00\x12\x87\x01\n6continue_as_new_workflow_execution_decision_attributes\x18\n \x01(\x0b\x32\x45.uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributesH\x00\x12\x80\x01\n2start_child_workflow_execution_decision_attributes\x18\x0b \x01(\x0b\x32\x42.uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributesH\x00\x12\x88\x01\n6signal_external_workflow_execution_decision_attributes\x18\x0c \x01(\x0b\x32\x46.uber.cadence.api.v1.SignalExternalWorkflowExecutionDecisionAttributesH\x00\x12\x86\x01\n5upsert_workflow_search_attributes_decision_attributes\x18\r \x01(\x0b\x32\x45.uber.cadence.api.v1.UpsertWorkflowSearchAttributesDecisionAttributesH\x00\x42\x0c\n\nattributes\"\xd8\x04\n&ScheduleActivityTaskDecisionAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12\x38\n\ractivity_type\x18\x02 \x01(\x0b\x32!.uber.cadence.api.v1.ActivityType\x12\x0e\n\x06\x64omain\x18\x03 \x01(\t\x12\x30\n\ttask_list\x18\x04 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12+\n\x05input\x18\x05 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x0cretry_policy\x18\x0b \x01(\x0b\x32 .uber.cadence.api.v1.RetryPolicy\x12+\n\x06header\x18\x0c \x01(\x0b\x32\x1b.uber.cadence.api.v1.Header\x12\x1e\n\x16request_local_dispatch\x18\r \x01(\x08\"j\n\x1cStartTimerDecisionAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"[\n+CompleteWorkflowExecutionDecisionAttributes\x12,\n\x06result\x18\x01 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\"X\n\'FailWorkflowExecutionDecisionAttributes\x12-\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Failure\"B\n+RequestCancelActivityTaskDecisionAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\"1\n\x1d\x43\x61ncelTimerDecisionAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\"Z\n)CancelWorkflowExecutionDecisionAttributes\x12-\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\"\xbc\x01\n8RequestCancelExternalWorkflowExecutionDecisionAttributes\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x03 \x01(\x0c\x12\x1b\n\x13\x63hild_workflow_only\x18\x04 \x01(\x08\"\x91\x01\n\x1eRecordMarkerDecisionAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12-\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12+\n\x06header\x18\x03 \x01(\x0b\x32\x1b.uber.cadence.api.v1.Header\"\xf1\x07\n0ContinueAsNewWorkflowExecutionDecisionAttributes\x12\x38\n\rworkflow_type\x18\x01 \x01(\x0b\x32!.uber.cadence.api.v1.WorkflowType\x12\x30\n\ttask_list\x18\x02 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12+\n\x05input\x18\x03 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x43\n execution_start_to_close_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1btask_start_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x0cretry_policy\x18\x07 \x01(\x0b\x32 .uber.cadence.api.v1.RetryPolicy\x12>\n\tinitiator\x18\x08 \x01(\x0e\x32+.uber.cadence.api.v1.ContinueAsNewInitiator\x12-\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32\x1c.uber.cadence.api.v1.Failure\x12<\n\x16last_completion_result\x18\n \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x15\n\rcron_schedule\x18\x0b \x01(\t\x12+\n\x06header\x18\x0c \x01(\x0b\x32\x1b.uber.cadence.api.v1.Header\x12\'\n\x04memo\x18\r \x01(\x0b\x32\x19.uber.cadence.api.v1.Memo\x12@\n\x11search_attributes\x18\x0e \x01(\x0b\x32%.uber.cadence.api.v1.SearchAttributes\x12/\n\x0cjitter_start\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n\x13\x63ron_overlap_policy\x18\x10 \x01(\x0e\x32&.uber.cadence.api.v1.CronOverlapPolicy\x12Z\n\x1f\x61\x63tive_cluster_selection_policy\x18\x11 \x01(\x0b\x32\x31.uber.cadence.api.v1.ActiveClusterSelectionPolicy\"\x9e\x07\n-StartChildWorkflowExecutionDecisionAttributes\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x38\n\rworkflow_type\x18\x03 \x01(\x0b\x32!.uber.cadence.api.v1.WorkflowType\x12\x30\n\ttask_list\x18\x04 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12+\n\x05input\x18\x05 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x43\n execution_start_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1btask_start_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n\x13parent_close_policy\x18\x08 \x01(\x0e\x32&.uber.cadence.api.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\t \x01(\x0c\x12L\n\x18workflow_id_reuse_policy\x18\n \x01(\x0e\x32*.uber.cadence.api.v1.WorkflowIdReusePolicy\x12\x36\n\x0cretry_policy\x18\x0b \x01(\x0b\x32 .uber.cadence.api.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0c \x01(\t\x12+\n\x06header\x18\r \x01(\x0b\x32\x1b.uber.cadence.api.v1.Header\x12\'\n\x04memo\x18\x0e \x01(\x0b\x32\x19.uber.cadence.api.v1.Memo\x12@\n\x11search_attributes\x18\x0f \x01(\x0b\x32%.uber.cadence.api.v1.SearchAttributes\x12\x43\n\x13\x63ron_overlap_policy\x18\x10 \x01(\x0e\x32&.uber.cadence.api.v1.CronOverlapPolicy\x12Z\n\x1f\x61\x63tive_cluster_selection_policy\x18\x11 \x01(\x0b\x32\x31.uber.cadence.api.v1.ActiveClusterSelectionPolicy\"\xf7\x01\n1SignalExternalWorkflowExecutionDecisionAttributes\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12+\n\x05input\x18\x04 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\x0c\x12\x1b\n\x13\x63hild_workflow_only\x18\x06 \x01(\x08\"t\n0UpsertWorkflowSearchAttributesDecisionAttributes\x12@\n\x11search_attributes\x18\x01 \x01(\x0b\x32%.uber.cadence.api.v1.SearchAttributesB]\n\x17\x63om.uber.cadence.api.v1B\rDecisionProtoP\x01Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1b\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cadence.api.v1.decision_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.uber.cadence.api.v1B\rDecisionProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
|
|
39
|
+
_globals['_DECISION']._serialized_start=178
|
|
40
|
+
_globals['_DECISION']._serialized_end=1793
|
|
41
|
+
_globals['_SCHEDULEACTIVITYTASKDECISIONATTRIBUTES']._serialized_start=1796
|
|
42
|
+
_globals['_SCHEDULEACTIVITYTASKDECISIONATTRIBUTES']._serialized_end=2396
|
|
43
|
+
_globals['_STARTTIMERDECISIONATTRIBUTES']._serialized_start=2398
|
|
44
|
+
_globals['_STARTTIMERDECISIONATTRIBUTES']._serialized_end=2504
|
|
45
|
+
_globals['_COMPLETEWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=2506
|
|
46
|
+
_globals['_COMPLETEWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=2597
|
|
47
|
+
_globals['_FAILWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=2599
|
|
48
|
+
_globals['_FAILWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=2687
|
|
49
|
+
_globals['_REQUESTCANCELACTIVITYTASKDECISIONATTRIBUTES']._serialized_start=2689
|
|
50
|
+
_globals['_REQUESTCANCELACTIVITYTASKDECISIONATTRIBUTES']._serialized_end=2755
|
|
51
|
+
_globals['_CANCELTIMERDECISIONATTRIBUTES']._serialized_start=2757
|
|
52
|
+
_globals['_CANCELTIMERDECISIONATTRIBUTES']._serialized_end=2806
|
|
53
|
+
_globals['_CANCELWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=2808
|
|
54
|
+
_globals['_CANCELWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=2898
|
|
55
|
+
_globals['_REQUESTCANCELEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=2901
|
|
56
|
+
_globals['_REQUESTCANCELEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=3089
|
|
57
|
+
_globals['_RECORDMARKERDECISIONATTRIBUTES']._serialized_start=3092
|
|
58
|
+
_globals['_RECORDMARKERDECISIONATTRIBUTES']._serialized_end=3237
|
|
59
|
+
_globals['_CONTINUEASNEWWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=3240
|
|
60
|
+
_globals['_CONTINUEASNEWWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=4249
|
|
61
|
+
_globals['_STARTCHILDWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=4252
|
|
62
|
+
_globals['_STARTCHILDWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=5178
|
|
63
|
+
_globals['_SIGNALEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_start=5181
|
|
64
|
+
_globals['_SIGNALEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES']._serialized_end=5428
|
|
65
|
+
_globals['_UPSERTWORKFLOWSEARCHATTRIBUTESDECISIONATTRIBUTES']._serialized_start=5430
|
|
66
|
+
_globals['_UPSERTWORKFLOWSEARCHATTRIBUTESDECISIONATTRIBUTES']._serialized_end=5546
|
|
67
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
2
|
+
from cadence.api.v1 import common_pb2 as _common_pb2
|
|
3
|
+
from cadence.api.v1 import tasklist_pb2 as _tasklist_pb2
|
|
4
|
+
from cadence.api.v1 import workflow_pb2 as _workflow_pb2
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
8
|
+
|
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
+
|
|
11
|
+
class Decision(_message.Message):
|
|
12
|
+
__slots__ = ("schedule_activity_task_decision_attributes", "start_timer_decision_attributes", "complete_workflow_execution_decision_attributes", "fail_workflow_execution_decision_attributes", "request_cancel_activity_task_decision_attributes", "cancel_timer_decision_attributes", "cancel_workflow_execution_decision_attributes", "request_cancel_external_workflow_execution_decision_attributes", "record_marker_decision_attributes", "continue_as_new_workflow_execution_decision_attributes", "start_child_workflow_execution_decision_attributes", "signal_external_workflow_execution_decision_attributes", "upsert_workflow_search_attributes_decision_attributes")
|
|
13
|
+
SCHEDULE_ACTIVITY_TASK_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
START_TIMER_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
COMPLETE_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
FAIL_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
REQUEST_CANCEL_ACTIVITY_TASK_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
CANCEL_TIMER_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
CANCEL_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
RECORD_MARKER_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
CONTINUE_AS_NEW_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
START_CHILD_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
UPSERT_WORKFLOW_SEARCH_ATTRIBUTES_DECISION_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
schedule_activity_task_decision_attributes: ScheduleActivityTaskDecisionAttributes
|
|
27
|
+
start_timer_decision_attributes: StartTimerDecisionAttributes
|
|
28
|
+
complete_workflow_execution_decision_attributes: CompleteWorkflowExecutionDecisionAttributes
|
|
29
|
+
fail_workflow_execution_decision_attributes: FailWorkflowExecutionDecisionAttributes
|
|
30
|
+
request_cancel_activity_task_decision_attributes: RequestCancelActivityTaskDecisionAttributes
|
|
31
|
+
cancel_timer_decision_attributes: CancelTimerDecisionAttributes
|
|
32
|
+
cancel_workflow_execution_decision_attributes: CancelWorkflowExecutionDecisionAttributes
|
|
33
|
+
request_cancel_external_workflow_execution_decision_attributes: RequestCancelExternalWorkflowExecutionDecisionAttributes
|
|
34
|
+
record_marker_decision_attributes: RecordMarkerDecisionAttributes
|
|
35
|
+
continue_as_new_workflow_execution_decision_attributes: ContinueAsNewWorkflowExecutionDecisionAttributes
|
|
36
|
+
start_child_workflow_execution_decision_attributes: StartChildWorkflowExecutionDecisionAttributes
|
|
37
|
+
signal_external_workflow_execution_decision_attributes: SignalExternalWorkflowExecutionDecisionAttributes
|
|
38
|
+
upsert_workflow_search_attributes_decision_attributes: UpsertWorkflowSearchAttributesDecisionAttributes
|
|
39
|
+
def __init__(self, schedule_activity_task_decision_attributes: _Optional[_Union[ScheduleActivityTaskDecisionAttributes, _Mapping]] = ..., start_timer_decision_attributes: _Optional[_Union[StartTimerDecisionAttributes, _Mapping]] = ..., complete_workflow_execution_decision_attributes: _Optional[_Union[CompleteWorkflowExecutionDecisionAttributes, _Mapping]] = ..., fail_workflow_execution_decision_attributes: _Optional[_Union[FailWorkflowExecutionDecisionAttributes, _Mapping]] = ..., request_cancel_activity_task_decision_attributes: _Optional[_Union[RequestCancelActivityTaskDecisionAttributes, _Mapping]] = ..., cancel_timer_decision_attributes: _Optional[_Union[CancelTimerDecisionAttributes, _Mapping]] = ..., cancel_workflow_execution_decision_attributes: _Optional[_Union[CancelWorkflowExecutionDecisionAttributes, _Mapping]] = ..., request_cancel_external_workflow_execution_decision_attributes: _Optional[_Union[RequestCancelExternalWorkflowExecutionDecisionAttributes, _Mapping]] = ..., record_marker_decision_attributes: _Optional[_Union[RecordMarkerDecisionAttributes, _Mapping]] = ..., continue_as_new_workflow_execution_decision_attributes: _Optional[_Union[ContinueAsNewWorkflowExecutionDecisionAttributes, _Mapping]] = ..., start_child_workflow_execution_decision_attributes: _Optional[_Union[StartChildWorkflowExecutionDecisionAttributes, _Mapping]] = ..., signal_external_workflow_execution_decision_attributes: _Optional[_Union[SignalExternalWorkflowExecutionDecisionAttributes, _Mapping]] = ..., upsert_workflow_search_attributes_decision_attributes: _Optional[_Union[UpsertWorkflowSearchAttributesDecisionAttributes, _Mapping]] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class ScheduleActivityTaskDecisionAttributes(_message.Message):
|
|
42
|
+
__slots__ = ("activity_id", "activity_type", "domain", "task_list", "input", "schedule_to_close_timeout", "schedule_to_start_timeout", "start_to_close_timeout", "heartbeat_timeout", "retry_policy", "header", "request_local_dispatch")
|
|
43
|
+
ACTIVITY_ID_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
ACTIVITY_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
TASK_LIST_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
HEARTBEAT_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
RETRY_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
REQUEST_LOCAL_DISPATCH_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
activity_id: str
|
|
56
|
+
activity_type: _common_pb2.ActivityType
|
|
57
|
+
domain: str
|
|
58
|
+
task_list: _tasklist_pb2.TaskList
|
|
59
|
+
input: _common_pb2.Payload
|
|
60
|
+
schedule_to_close_timeout: _duration_pb2.Duration
|
|
61
|
+
schedule_to_start_timeout: _duration_pb2.Duration
|
|
62
|
+
start_to_close_timeout: _duration_pb2.Duration
|
|
63
|
+
heartbeat_timeout: _duration_pb2.Duration
|
|
64
|
+
retry_policy: _common_pb2.RetryPolicy
|
|
65
|
+
header: _common_pb2.Header
|
|
66
|
+
request_local_dispatch: bool
|
|
67
|
+
def __init__(self, activity_id: _Optional[str] = ..., activity_type: _Optional[_Union[_common_pb2.ActivityType, _Mapping]] = ..., domain: _Optional[str] = ..., task_list: _Optional[_Union[_tasklist_pb2.TaskList, _Mapping]] = ..., input: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ..., schedule_to_close_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., schedule_to_start_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., start_to_close_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., heartbeat_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retry_policy: _Optional[_Union[_common_pb2.RetryPolicy, _Mapping]] = ..., header: _Optional[_Union[_common_pb2.Header, _Mapping]] = ..., request_local_dispatch: bool = ...) -> None: ...
|
|
68
|
+
|
|
69
|
+
class StartTimerDecisionAttributes(_message.Message):
|
|
70
|
+
__slots__ = ("timer_id", "start_to_fire_timeout")
|
|
71
|
+
TIMER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
START_TO_FIRE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
timer_id: str
|
|
74
|
+
start_to_fire_timeout: _duration_pb2.Duration
|
|
75
|
+
def __init__(self, timer_id: _Optional[str] = ..., start_to_fire_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
|
76
|
+
|
|
77
|
+
class CompleteWorkflowExecutionDecisionAttributes(_message.Message):
|
|
78
|
+
__slots__ = ("result",)
|
|
79
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
result: _common_pb2.Payload
|
|
81
|
+
def __init__(self, result: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ...) -> None: ...
|
|
82
|
+
|
|
83
|
+
class FailWorkflowExecutionDecisionAttributes(_message.Message):
|
|
84
|
+
__slots__ = ("failure",)
|
|
85
|
+
FAILURE_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
failure: _common_pb2.Failure
|
|
87
|
+
def __init__(self, failure: _Optional[_Union[_common_pb2.Failure, _Mapping]] = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class RequestCancelActivityTaskDecisionAttributes(_message.Message):
|
|
90
|
+
__slots__ = ("activity_id",)
|
|
91
|
+
ACTIVITY_ID_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
activity_id: str
|
|
93
|
+
def __init__(self, activity_id: _Optional[str] = ...) -> None: ...
|
|
94
|
+
|
|
95
|
+
class CancelTimerDecisionAttributes(_message.Message):
|
|
96
|
+
__slots__ = ("timer_id",)
|
|
97
|
+
TIMER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
timer_id: str
|
|
99
|
+
def __init__(self, timer_id: _Optional[str] = ...) -> None: ...
|
|
100
|
+
|
|
101
|
+
class CancelWorkflowExecutionDecisionAttributes(_message.Message):
|
|
102
|
+
__slots__ = ("details",)
|
|
103
|
+
DETAILS_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
details: _common_pb2.Payload
|
|
105
|
+
def __init__(self, details: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ...) -> None: ...
|
|
106
|
+
|
|
107
|
+
class RequestCancelExternalWorkflowExecutionDecisionAttributes(_message.Message):
|
|
108
|
+
__slots__ = ("domain", "workflow_execution", "control", "child_workflow_only")
|
|
109
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
WORKFLOW_EXECUTION_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
CONTROL_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
CHILD_WORKFLOW_ONLY_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
domain: str
|
|
114
|
+
workflow_execution: _common_pb2.WorkflowExecution
|
|
115
|
+
control: bytes
|
|
116
|
+
child_workflow_only: bool
|
|
117
|
+
def __init__(self, domain: _Optional[str] = ..., workflow_execution: _Optional[_Union[_common_pb2.WorkflowExecution, _Mapping]] = ..., control: _Optional[bytes] = ..., child_workflow_only: bool = ...) -> None: ...
|
|
118
|
+
|
|
119
|
+
class RecordMarkerDecisionAttributes(_message.Message):
|
|
120
|
+
__slots__ = ("marker_name", "details", "header")
|
|
121
|
+
MARKER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
DETAILS_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
marker_name: str
|
|
125
|
+
details: _common_pb2.Payload
|
|
126
|
+
header: _common_pb2.Header
|
|
127
|
+
def __init__(self, marker_name: _Optional[str] = ..., details: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ..., header: _Optional[_Union[_common_pb2.Header, _Mapping]] = ...) -> None: ...
|
|
128
|
+
|
|
129
|
+
class ContinueAsNewWorkflowExecutionDecisionAttributes(_message.Message):
|
|
130
|
+
__slots__ = ("workflow_type", "task_list", "input", "execution_start_to_close_timeout", "task_start_to_close_timeout", "backoff_start_interval", "retry_policy", "initiator", "failure", "last_completion_result", "cron_schedule", "header", "memo", "search_attributes", "jitter_start", "cron_overlap_policy", "active_cluster_selection_policy")
|
|
131
|
+
WORKFLOW_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
TASK_LIST_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
134
|
+
EXECUTION_START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
135
|
+
TASK_START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
136
|
+
BACKOFF_START_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
|
137
|
+
RETRY_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
+
INITIATOR_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
FAILURE_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
+
LAST_COMPLETION_RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
141
|
+
CRON_SCHEDULE_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
MEMO_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
SEARCH_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
JITTER_START_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
CRON_OVERLAP_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
ACTIVE_CLUSTER_SELECTION_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
workflow_type: _common_pb2.WorkflowType
|
|
149
|
+
task_list: _tasklist_pb2.TaskList
|
|
150
|
+
input: _common_pb2.Payload
|
|
151
|
+
execution_start_to_close_timeout: _duration_pb2.Duration
|
|
152
|
+
task_start_to_close_timeout: _duration_pb2.Duration
|
|
153
|
+
backoff_start_interval: _duration_pb2.Duration
|
|
154
|
+
retry_policy: _common_pb2.RetryPolicy
|
|
155
|
+
initiator: _workflow_pb2.ContinueAsNewInitiator
|
|
156
|
+
failure: _common_pb2.Failure
|
|
157
|
+
last_completion_result: _common_pb2.Payload
|
|
158
|
+
cron_schedule: str
|
|
159
|
+
header: _common_pb2.Header
|
|
160
|
+
memo: _common_pb2.Memo
|
|
161
|
+
search_attributes: _common_pb2.SearchAttributes
|
|
162
|
+
jitter_start: _duration_pb2.Duration
|
|
163
|
+
cron_overlap_policy: _workflow_pb2.CronOverlapPolicy
|
|
164
|
+
active_cluster_selection_policy: _common_pb2.ActiveClusterSelectionPolicy
|
|
165
|
+
def __init__(self, workflow_type: _Optional[_Union[_common_pb2.WorkflowType, _Mapping]] = ..., task_list: _Optional[_Union[_tasklist_pb2.TaskList, _Mapping]] = ..., input: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ..., execution_start_to_close_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_start_to_close_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., backoff_start_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retry_policy: _Optional[_Union[_common_pb2.RetryPolicy, _Mapping]] = ..., initiator: _Optional[_Union[_workflow_pb2.ContinueAsNewInitiator, str]] = ..., failure: _Optional[_Union[_common_pb2.Failure, _Mapping]] = ..., last_completion_result: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ..., cron_schedule: _Optional[str] = ..., header: _Optional[_Union[_common_pb2.Header, _Mapping]] = ..., memo: _Optional[_Union[_common_pb2.Memo, _Mapping]] = ..., search_attributes: _Optional[_Union[_common_pb2.SearchAttributes, _Mapping]] = ..., jitter_start: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., cron_overlap_policy: _Optional[_Union[_workflow_pb2.CronOverlapPolicy, str]] = ..., active_cluster_selection_policy: _Optional[_Union[_common_pb2.ActiveClusterSelectionPolicy, _Mapping]] = ...) -> None: ...
|
|
166
|
+
|
|
167
|
+
class StartChildWorkflowExecutionDecisionAttributes(_message.Message):
|
|
168
|
+
__slots__ = ("domain", "workflow_id", "workflow_type", "task_list", "input", "execution_start_to_close_timeout", "task_start_to_close_timeout", "parent_close_policy", "control", "workflow_id_reuse_policy", "retry_policy", "cron_schedule", "header", "memo", "search_attributes", "cron_overlap_policy", "active_cluster_selection_policy")
|
|
169
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
170
|
+
WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int]
|
|
171
|
+
WORKFLOW_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
TASK_LIST_FIELD_NUMBER: _ClassVar[int]
|
|
173
|
+
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
174
|
+
EXECUTION_START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
175
|
+
TASK_START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
176
|
+
PARENT_CLOSE_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
177
|
+
CONTROL_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
+
WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
179
|
+
RETRY_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
180
|
+
CRON_SCHEDULE_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
182
|
+
MEMO_FIELD_NUMBER: _ClassVar[int]
|
|
183
|
+
SEARCH_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
CRON_OVERLAP_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
185
|
+
ACTIVE_CLUSTER_SELECTION_POLICY_FIELD_NUMBER: _ClassVar[int]
|
|
186
|
+
domain: str
|
|
187
|
+
workflow_id: str
|
|
188
|
+
workflow_type: _common_pb2.WorkflowType
|
|
189
|
+
task_list: _tasklist_pb2.TaskList
|
|
190
|
+
input: _common_pb2.Payload
|
|
191
|
+
execution_start_to_close_timeout: _duration_pb2.Duration
|
|
192
|
+
task_start_to_close_timeout: _duration_pb2.Duration
|
|
193
|
+
parent_close_policy: _workflow_pb2.ParentClosePolicy
|
|
194
|
+
control: bytes
|
|
195
|
+
workflow_id_reuse_policy: _workflow_pb2.WorkflowIdReusePolicy
|
|
196
|
+
retry_policy: _common_pb2.RetryPolicy
|
|
197
|
+
cron_schedule: str
|
|
198
|
+
header: _common_pb2.Header
|
|
199
|
+
memo: _common_pb2.Memo
|
|
200
|
+
search_attributes: _common_pb2.SearchAttributes
|
|
201
|
+
cron_overlap_policy: _workflow_pb2.CronOverlapPolicy
|
|
202
|
+
active_cluster_selection_policy: _common_pb2.ActiveClusterSelectionPolicy
|
|
203
|
+
def __init__(self, domain: _Optional[str] = ..., workflow_id: _Optional[str] = ..., workflow_type: _Optional[_Union[_common_pb2.WorkflowType, _Mapping]] = ..., task_list: _Optional[_Union[_tasklist_pb2.TaskList, _Mapping]] = ..., input: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ..., execution_start_to_close_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_start_to_close_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., parent_close_policy: _Optional[_Union[_workflow_pb2.ParentClosePolicy, str]] = ..., control: _Optional[bytes] = ..., workflow_id_reuse_policy: _Optional[_Union[_workflow_pb2.WorkflowIdReusePolicy, str]] = ..., retry_policy: _Optional[_Union[_common_pb2.RetryPolicy, _Mapping]] = ..., cron_schedule: _Optional[str] = ..., header: _Optional[_Union[_common_pb2.Header, _Mapping]] = ..., memo: _Optional[_Union[_common_pb2.Memo, _Mapping]] = ..., search_attributes: _Optional[_Union[_common_pb2.SearchAttributes, _Mapping]] = ..., cron_overlap_policy: _Optional[_Union[_workflow_pb2.CronOverlapPolicy, str]] = ..., active_cluster_selection_policy: _Optional[_Union[_common_pb2.ActiveClusterSelectionPolicy, _Mapping]] = ...) -> None: ...
|
|
204
|
+
|
|
205
|
+
class SignalExternalWorkflowExecutionDecisionAttributes(_message.Message):
|
|
206
|
+
__slots__ = ("domain", "workflow_execution", "signal_name", "input", "control", "child_workflow_only")
|
|
207
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
208
|
+
WORKFLOW_EXECUTION_FIELD_NUMBER: _ClassVar[int]
|
|
209
|
+
SIGNAL_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
210
|
+
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
211
|
+
CONTROL_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
+
CHILD_WORKFLOW_ONLY_FIELD_NUMBER: _ClassVar[int]
|
|
213
|
+
domain: str
|
|
214
|
+
workflow_execution: _common_pb2.WorkflowExecution
|
|
215
|
+
signal_name: str
|
|
216
|
+
input: _common_pb2.Payload
|
|
217
|
+
control: bytes
|
|
218
|
+
child_workflow_only: bool
|
|
219
|
+
def __init__(self, domain: _Optional[str] = ..., workflow_execution: _Optional[_Union[_common_pb2.WorkflowExecution, _Mapping]] = ..., signal_name: _Optional[str] = ..., input: _Optional[_Union[_common_pb2.Payload, _Mapping]] = ..., control: _Optional[bytes] = ..., child_workflow_only: bool = ...) -> None: ...
|
|
220
|
+
|
|
221
|
+
class UpsertWorkflowSearchAttributesDecisionAttributes(_message.Message):
|
|
222
|
+
__slots__ = ("search_attributes",)
|
|
223
|
+
SEARCH_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
search_attributes: _common_pb2.SearchAttributes
|
|
225
|
+
def __init__(self, search_attributes: _Optional[_Union[_common_pb2.SearchAttributes, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.71.2'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in cadence/api/v1/decision_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cadence/api/v1/domain.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'cadence/api/v1/domain.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
from cadence.api.v1 import common_pb2 as cadence_dot_api_dot_v1_dot_common__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63\x61\x64\x65nce/api/v1/domain.proto\x12\x13uber.cadence.api.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1b\x63\x61\x64\x65nce/api/v1/common.proto\"\xdc\x07\n\x06\x44omain\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x31\n\x06status\x18\x03 \x01(\x0e\x32!.uber.cadence.api.v1.DomainStatus\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x13\n\x0bowner_email\x18\x05 \x01(\t\x12\x33\n\x04\x64\x61ta\x18\x06 \x03(\x0b\x32%.uber.cadence.api.v1.Domain.DataEntry\x12\x46\n#workflow_execution_retention_period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x0c\x62\x61\x64_binaries\x18\x08 \x01(\x0b\x32 .uber.cadence.api.v1.BadBinaries\x12\x44\n\x17history_archival_status\x18\t \x01(\x0e\x32#.uber.cadence.api.v1.ArchivalStatus\x12\x1c\n\x14history_archival_uri\x18\n \x01(\t\x12G\n\x1avisibility_archival_status\x18\x0b \x01(\x0e\x32#.uber.cadence.api.v1.ArchivalStatus\x12\x1f\n\x17visibility_archival_uri\x18\x0c \x01(\t\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\r \x01(\t\x12\x46\n\x08\x63lusters\x18\x0e \x03(\x0b\x32\x34.uber.cadence.api.v1.ClusterReplicationConfiguration\x12\x18\n\x10\x66\x61ilover_version\x18\x0f \x01(\x03\x12\x18\n\x10is_global_domain\x18\x10 \x01(\x08\x12\x38\n\rfailover_info\x18\x11 \x01(\x0b\x32!.uber.cadence.api.v1.FailoverInfo\x12J\n\x10isolation_groups\x18\x12 \x01(\x0b\x32\x30.uber.cadence.api.v1.IsolationGroupConfiguration\x12N\n\x15\x61sync_workflow_config\x18\x13 \x01(\x0b\x32/.uber.cadence.api.v1.AsyncWorkflowConfiguration\x12<\n\x0f\x61\x63tive_clusters\x18\x14 \x01(\x0b\x32#.uber.cadence.api.v1.ActiveClusters\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x1f\x43lusterReplicationConfiguration\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\"\xa4\x01\n\x0b\x42\x61\x64\x42inaries\x12@\n\x08\x62inaries\x18\x01 \x03(\x0b\x32..uber.cadence.api.v1.BadBinaries.BinariesEntry\x1aS\n\rBinariesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".uber.cadence.api.v1.BadBinaryInfo:\x02\x38\x01\"c\n\rBadBinaryInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x0c\x46\x61iloverInfo\x12\x18\n\x10\x66\x61ilover_version\x18\x01 \x01(\x03\x12<\n\x18\x66\x61ilover_start_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x19\x66\x61ilover_expire_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15\x63ompleted_shard_count\x18\x04 \x01(\x05\x12\x16\n\x0epending_shards\x18\x05 \x03(\x05\"\xc5\x01\n\x0e\x41\x63tiveClusters\x12S\n\x11region_to_cluster\x18\x01 \x03(\x0b\x32\x38.uber.cadence.api.v1.ActiveClusters.RegionToClusterEntry\x1a^\n\x14RegionToClusterEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.ActiveClusterInfo:\x02\x38\x01\"J\n\x11\x41\x63tiveClusterInfo\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x01 \x01(\t\x12\x18\n\x10\x66\x61ilover_version\x18\x02 \x01(\x03*\x80\x01\n\x0c\x44omainStatus\x12\x19\n\x15\x44OMAIN_STATUS_INVALID\x10\x00\x12\x1c\n\x18\x44OMAIN_STATUS_REGISTERED\x10\x01\x12\x1c\n\x18\x44OMAIN_STATUS_DEPRECATED\x10\x02\x12\x19\n\x15\x44OMAIN_STATUS_DELETED\x10\x03*h\n\x0e\x41rchivalStatus\x12\x1b\n\x17\x41RCHIVAL_STATUS_INVALID\x10\x00\x12\x1c\n\x18\x41RCHIVAL_STATUS_DISABLED\x10\x01\x12\x1b\n\x17\x41RCHIVAL_STATUS_ENABLED\x10\x02\x42[\n\x17\x63om.uber.cadence.api.v1B\x0b\x44omainProtoP\x01Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1b\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cadence.api.v1.domain_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.uber.cadence.api.v1B\013DomainProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
|
|
38
|
+
_globals['_DOMAIN_DATAENTRY']._loaded_options = None
|
|
39
|
+
_globals['_DOMAIN_DATAENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_BADBINARIES_BINARIESENTRY']._loaded_options = None
|
|
41
|
+
_globals['_BADBINARIES_BINARIESENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_ACTIVECLUSTERS_REGIONTOCLUSTERENTRY']._loaded_options = None
|
|
43
|
+
_globals['_ACTIVECLUSTERS_REGIONTOCLUSTERENTRY']._serialized_options = b'8\001'
|
|
44
|
+
_globals['_DOMAINSTATUS']._serialized_start=1962
|
|
45
|
+
_globals['_DOMAINSTATUS']._serialized_end=2090
|
|
46
|
+
_globals['_ARCHIVALSTATUS']._serialized_start=2092
|
|
47
|
+
_globals['_ARCHIVALSTATUS']._serialized_end=2196
|
|
48
|
+
_globals['_DOMAIN']._serialized_start=147
|
|
49
|
+
_globals['_DOMAIN']._serialized_end=1135
|
|
50
|
+
_globals['_DOMAIN_DATAENTRY']._serialized_start=1092
|
|
51
|
+
_globals['_DOMAIN_DATAENTRY']._serialized_end=1135
|
|
52
|
+
_globals['_CLUSTERREPLICATIONCONFIGURATION']._serialized_start=1137
|
|
53
|
+
_globals['_CLUSTERREPLICATIONCONFIGURATION']._serialized_end=1192
|
|
54
|
+
_globals['_BADBINARIES']._serialized_start=1195
|
|
55
|
+
_globals['_BADBINARIES']._serialized_end=1359
|
|
56
|
+
_globals['_BADBINARIES_BINARIESENTRY']._serialized_start=1276
|
|
57
|
+
_globals['_BADBINARIES_BINARIESENTRY']._serialized_end=1359
|
|
58
|
+
_globals['_BADBINARYINFO']._serialized_start=1361
|
|
59
|
+
_globals['_BADBINARYINFO']._serialized_end=1460
|
|
60
|
+
_globals['_FAILOVERINFO']._serialized_start=1463
|
|
61
|
+
_globals['_FAILOVERINFO']._serialized_end=1683
|
|
62
|
+
_globals['_ACTIVECLUSTERS']._serialized_start=1686
|
|
63
|
+
_globals['_ACTIVECLUSTERS']._serialized_end=1883
|
|
64
|
+
_globals['_ACTIVECLUSTERS_REGIONTOCLUSTERENTRY']._serialized_start=1789
|
|
65
|
+
_globals['_ACTIVECLUSTERS_REGIONTOCLUSTERENTRY']._serialized_end=1883
|
|
66
|
+
_globals['_ACTIVECLUSTERINFO']._serialized_start=1885
|
|
67
|
+
_globals['_ACTIVECLUSTERINFO']._serialized_end=1959
|
|
68
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from cadence.api.v1 import common_pb2 as _common_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class DomainStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
DOMAIN_STATUS_INVALID: _ClassVar[DomainStatus]
|
|
15
|
+
DOMAIN_STATUS_REGISTERED: _ClassVar[DomainStatus]
|
|
16
|
+
DOMAIN_STATUS_DEPRECATED: _ClassVar[DomainStatus]
|
|
17
|
+
DOMAIN_STATUS_DELETED: _ClassVar[DomainStatus]
|
|
18
|
+
|
|
19
|
+
class ArchivalStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
20
|
+
__slots__ = ()
|
|
21
|
+
ARCHIVAL_STATUS_INVALID: _ClassVar[ArchivalStatus]
|
|
22
|
+
ARCHIVAL_STATUS_DISABLED: _ClassVar[ArchivalStatus]
|
|
23
|
+
ARCHIVAL_STATUS_ENABLED: _ClassVar[ArchivalStatus]
|
|
24
|
+
DOMAIN_STATUS_INVALID: DomainStatus
|
|
25
|
+
DOMAIN_STATUS_REGISTERED: DomainStatus
|
|
26
|
+
DOMAIN_STATUS_DEPRECATED: DomainStatus
|
|
27
|
+
DOMAIN_STATUS_DELETED: DomainStatus
|
|
28
|
+
ARCHIVAL_STATUS_INVALID: ArchivalStatus
|
|
29
|
+
ARCHIVAL_STATUS_DISABLED: ArchivalStatus
|
|
30
|
+
ARCHIVAL_STATUS_ENABLED: ArchivalStatus
|
|
31
|
+
|
|
32
|
+
class Domain(_message.Message):
|
|
33
|
+
__slots__ = ("id", "name", "status", "description", "owner_email", "data", "workflow_execution_retention_period", "bad_binaries", "history_archival_status", "history_archival_uri", "visibility_archival_status", "visibility_archival_uri", "active_cluster_name", "clusters", "failover_version", "is_global_domain", "failover_info", "isolation_groups", "async_workflow_config", "active_clusters")
|
|
34
|
+
class DataEntry(_message.Message):
|
|
35
|
+
__slots__ = ("key", "value")
|
|
36
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
key: str
|
|
39
|
+
value: str
|
|
40
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
41
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
OWNER_EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
WORKFLOW_EXECUTION_RETENTION_PERIOD_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
BAD_BINARIES_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
HISTORY_ARCHIVAL_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
HISTORY_ARCHIVAL_URI_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
VISIBILITY_ARCHIVAL_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
VISIBILITY_ARCHIVAL_URI_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
ACTIVE_CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
CLUSTERS_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
FAILOVER_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
IS_GLOBAL_DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
FAILOVER_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
ISOLATION_GROUPS_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
ASYNC_WORKFLOW_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
ACTIVE_CLUSTERS_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
id: str
|
|
62
|
+
name: str
|
|
63
|
+
status: DomainStatus
|
|
64
|
+
description: str
|
|
65
|
+
owner_email: str
|
|
66
|
+
data: _containers.ScalarMap[str, str]
|
|
67
|
+
workflow_execution_retention_period: _duration_pb2.Duration
|
|
68
|
+
bad_binaries: BadBinaries
|
|
69
|
+
history_archival_status: ArchivalStatus
|
|
70
|
+
history_archival_uri: str
|
|
71
|
+
visibility_archival_status: ArchivalStatus
|
|
72
|
+
visibility_archival_uri: str
|
|
73
|
+
active_cluster_name: str
|
|
74
|
+
clusters: _containers.RepeatedCompositeFieldContainer[ClusterReplicationConfiguration]
|
|
75
|
+
failover_version: int
|
|
76
|
+
is_global_domain: bool
|
|
77
|
+
failover_info: FailoverInfo
|
|
78
|
+
isolation_groups: _common_pb2.IsolationGroupConfiguration
|
|
79
|
+
async_workflow_config: _common_pb2.AsyncWorkflowConfiguration
|
|
80
|
+
active_clusters: ActiveClusters
|
|
81
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., status: _Optional[_Union[DomainStatus, str]] = ..., description: _Optional[str] = ..., owner_email: _Optional[str] = ..., data: _Optional[_Mapping[str, str]] = ..., workflow_execution_retention_period: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., bad_binaries: _Optional[_Union[BadBinaries, _Mapping]] = ..., history_archival_status: _Optional[_Union[ArchivalStatus, str]] = ..., history_archival_uri: _Optional[str] = ..., visibility_archival_status: _Optional[_Union[ArchivalStatus, str]] = ..., visibility_archival_uri: _Optional[str] = ..., active_cluster_name: _Optional[str] = ..., clusters: _Optional[_Iterable[_Union[ClusterReplicationConfiguration, _Mapping]]] = ..., failover_version: _Optional[int] = ..., is_global_domain: bool = ..., failover_info: _Optional[_Union[FailoverInfo, _Mapping]] = ..., isolation_groups: _Optional[_Union[_common_pb2.IsolationGroupConfiguration, _Mapping]] = ..., async_workflow_config: _Optional[_Union[_common_pb2.AsyncWorkflowConfiguration, _Mapping]] = ..., active_clusters: _Optional[_Union[ActiveClusters, _Mapping]] = ...) -> None: ...
|
|
82
|
+
|
|
83
|
+
class ClusterReplicationConfiguration(_message.Message):
|
|
84
|
+
__slots__ = ("cluster_name",)
|
|
85
|
+
CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
cluster_name: str
|
|
87
|
+
def __init__(self, cluster_name: _Optional[str] = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class BadBinaries(_message.Message):
|
|
90
|
+
__slots__ = ("binaries",)
|
|
91
|
+
class BinariesEntry(_message.Message):
|
|
92
|
+
__slots__ = ("key", "value")
|
|
93
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
key: str
|
|
96
|
+
value: BadBinaryInfo
|
|
97
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[BadBinaryInfo, _Mapping]] = ...) -> None: ...
|
|
98
|
+
BINARIES_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
binaries: _containers.MessageMap[str, BadBinaryInfo]
|
|
100
|
+
def __init__(self, binaries: _Optional[_Mapping[str, BadBinaryInfo]] = ...) -> None: ...
|
|
101
|
+
|
|
102
|
+
class BadBinaryInfo(_message.Message):
|
|
103
|
+
__slots__ = ("reason", "operator", "created_time")
|
|
104
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
OPERATOR_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
CREATED_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
reason: str
|
|
108
|
+
operator: str
|
|
109
|
+
created_time: _timestamp_pb2.Timestamp
|
|
110
|
+
def __init__(self, reason: _Optional[str] = ..., operator: _Optional[str] = ..., created_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
111
|
+
|
|
112
|
+
class FailoverInfo(_message.Message):
|
|
113
|
+
__slots__ = ("failover_version", "failover_start_timestamp", "failover_expire_timestamp", "completed_shard_count", "pending_shards")
|
|
114
|
+
FAILOVER_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
FAILOVER_START_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
FAILOVER_EXPIRE_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
+
COMPLETED_SHARD_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
PENDING_SHARDS_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
failover_version: int
|
|
120
|
+
failover_start_timestamp: _timestamp_pb2.Timestamp
|
|
121
|
+
failover_expire_timestamp: _timestamp_pb2.Timestamp
|
|
122
|
+
completed_shard_count: int
|
|
123
|
+
pending_shards: _containers.RepeatedScalarFieldContainer[int]
|
|
124
|
+
def __init__(self, failover_version: _Optional[int] = ..., failover_start_timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., failover_expire_timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., completed_shard_count: _Optional[int] = ..., pending_shards: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
125
|
+
|
|
126
|
+
class ActiveClusters(_message.Message):
|
|
127
|
+
__slots__ = ("region_to_cluster",)
|
|
128
|
+
class RegionToClusterEntry(_message.Message):
|
|
129
|
+
__slots__ = ("key", "value")
|
|
130
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
131
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
key: str
|
|
133
|
+
value: ActiveClusterInfo
|
|
134
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ActiveClusterInfo, _Mapping]] = ...) -> None: ...
|
|
135
|
+
REGION_TO_CLUSTER_FIELD_NUMBER: _ClassVar[int]
|
|
136
|
+
region_to_cluster: _containers.MessageMap[str, ActiveClusterInfo]
|
|
137
|
+
def __init__(self, region_to_cluster: _Optional[_Mapping[str, ActiveClusterInfo]] = ...) -> None: ...
|
|
138
|
+
|
|
139
|
+
class ActiveClusterInfo(_message.Message):
|
|
140
|
+
__slots__ = ("active_cluster_name", "failover_version")
|
|
141
|
+
ACTIVE_CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
+
FAILOVER_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
active_cluster_name: str
|
|
144
|
+
failover_version: int
|
|
145
|
+
def __init__(self, active_cluster_name: _Optional[str] = ..., failover_version: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.71.2'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in cadence/api/v1/domain_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cadence/api/v1/error.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'cadence/api/v1/error.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63\x61\x64\x65nce/api/v1/error.proto\x12\x13uber.cadence.api.v1\"P\n$WorkflowExecutionAlreadyStartedError\x12\x18\n\x10start_request_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\"`\n\x14\x45ntityNotExistsError\x12\x17\n\x0f\x63urrent_cluster\x18\x01 \x01(\t\x12\x16\n\x0e\x61\x63tive_cluster\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63tive_clusters\x18\x03 \x03(\t\"(\n&WorkflowExecutionAlreadyCompletedError\"p\n\x14\x44omainNotActiveError\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x17\n\x0f\x63urrent_cluster\x18\x02 \x01(\t\x12\x16\n\x0e\x61\x63tive_cluster\x18\x03 \x01(\t\x12\x17\n\x0f\x61\x63tive_clusters\x18\x04 \x03(\t\"j\n\x1e\x43lientVersionNotSupportedError\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x01 \x01(\t\x12\x13\n\x0b\x63lient_impl\x18\x02 \x01(\t\x12\x1a\n\x12supported_versions\x18\x03 \x01(\t\".\n\x16\x46\x65\x61tureNotEnabledError\x12\x14\n\x0c\x66\x65\x61ture_flag\x18\x01 \x01(\t\"#\n!CancellationAlreadyRequestedError\"\x1a\n\x18\x44omainAlreadyExistsError\"\x14\n\x12LimitExceededError\"\x12\n\x10QueryFailedError\"\"\n\x10ServiceBusyError\x12\x0e\n\x06reason\x18\x01 \x01(\t\"\x1e\n\x1cStickyWorkerUnavailableErrorBZ\n\x17\x63om.uber.cadence.api.v1B\nErrorProtoP\x01Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1b\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cadence.api.v1.error_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.uber.cadence.api.v1B\nErrorProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
|
|
35
|
+
_globals['_WORKFLOWEXECUTIONALREADYSTARTEDERROR']._serialized_start=51
|
|
36
|
+
_globals['_WORKFLOWEXECUTIONALREADYSTARTEDERROR']._serialized_end=131
|
|
37
|
+
_globals['_ENTITYNOTEXISTSERROR']._serialized_start=133
|
|
38
|
+
_globals['_ENTITYNOTEXISTSERROR']._serialized_end=229
|
|
39
|
+
_globals['_WORKFLOWEXECUTIONALREADYCOMPLETEDERROR']._serialized_start=231
|
|
40
|
+
_globals['_WORKFLOWEXECUTIONALREADYCOMPLETEDERROR']._serialized_end=271
|
|
41
|
+
_globals['_DOMAINNOTACTIVEERROR']._serialized_start=273
|
|
42
|
+
_globals['_DOMAINNOTACTIVEERROR']._serialized_end=385
|
|
43
|
+
_globals['_CLIENTVERSIONNOTSUPPORTEDERROR']._serialized_start=387
|
|
44
|
+
_globals['_CLIENTVERSIONNOTSUPPORTEDERROR']._serialized_end=493
|
|
45
|
+
_globals['_FEATURENOTENABLEDERROR']._serialized_start=495
|
|
46
|
+
_globals['_FEATURENOTENABLEDERROR']._serialized_end=541
|
|
47
|
+
_globals['_CANCELLATIONALREADYREQUESTEDERROR']._serialized_start=543
|
|
48
|
+
_globals['_CANCELLATIONALREADYREQUESTEDERROR']._serialized_end=578
|
|
49
|
+
_globals['_DOMAINALREADYEXISTSERROR']._serialized_start=580
|
|
50
|
+
_globals['_DOMAINALREADYEXISTSERROR']._serialized_end=606
|
|
51
|
+
_globals['_LIMITEXCEEDEDERROR']._serialized_start=608
|
|
52
|
+
_globals['_LIMITEXCEEDEDERROR']._serialized_end=628
|
|
53
|
+
_globals['_QUERYFAILEDERROR']._serialized_start=630
|
|
54
|
+
_globals['_QUERYFAILEDERROR']._serialized_end=648
|
|
55
|
+
_globals['_SERVICEBUSYERROR']._serialized_start=650
|
|
56
|
+
_globals['_SERVICEBUSYERROR']._serialized_end=684
|
|
57
|
+
_globals['_STICKYWORKERUNAVAILABLEERROR']._serialized_start=686
|
|
58
|
+
_globals['_STICKYWORKERUNAVAILABLEERROR']._serialized_end=716
|
|
59
|
+
# @@protoc_insertion_point(module_scope)
|