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,78 @@
|
|
|
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/tasklist.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/tasklist.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 google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63\x61\x64\x65nce/api/v1/tasklist.proto\x12\x13uber.cadence.api.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"I\n\x08TaskList\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04kind\x18\x02 \x01(\x0e\x32!.uber.cadence.api.v1.TaskListKind\"N\n\x10TaskListMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"A\n\x19TaskListPartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t\"K\n\x15IsolationGroupMetrics\x12\x1c\n\x14new_tasks_per_second\x18\x01 \x01(\x01\x12\x14\n\x0cpoller_count\x18\x02 \x01(\x03\"\x9d\x03\n\x0eTaskListStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12\x37\n\rtask_id_block\x18\x05 \x01(\x0b\x32 .uber.cadence.api.v1.TaskIDBlock\x12_\n\x17isolation_group_metrics\x18\x06 \x03(\x0b\x32>.uber.cadence.api.v1.TaskListStatus.IsolationGroupMetricsEntry\x12\x1c\n\x14new_tasks_per_second\x18\x07 \x01(\x01\x12\r\n\x05\x65mpty\x18\x08 \x01(\x08\x1ah\n\x1aIsolationGroupMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.uber.cadence.api.v1.IsolationGroupMetrics:\x02\x38\x01\"/\n\x0bTaskIDBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03\"m\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\"\x92\x01\n\x19StickyExecutionAttributes\x12\x37\n\x10worker_task_list\x18\x01 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"-\n\x11TaskListPartition\x12\x18\n\x10isolation_groups\x18\x01 \x03(\t\"\xe4\x03\n\x17TaskListPartitionConfig\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x1f\n\x13num_read_partitions\x18\x02 \x01(\x05\x42\x02\x18\x01\x12 \n\x14num_write_partitions\x18\x03 \x01(\x05\x42\x02\x18\x01\x12Y\n\x0fread_partitions\x18\x04 \x03(\x0b\x32@.uber.cadence.api.v1.TaskListPartitionConfig.ReadPartitionsEntry\x12[\n\x10write_partitions\x18\x05 \x03(\x0b\x32\x41.uber.cadence.api.v1.TaskListPartitionConfig.WritePartitionsEntry\x1a]\n\x13ReadPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.TaskListPartition:\x02\x38\x01\x1a^\n\x14WritePartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.TaskListPartition:\x02\x38\x01*~\n\x0cTaskListKind\x12\x1a\n\x16TASK_LIST_KIND_INVALID\x10\x00\x12\x19\n\x15TASK_LIST_KIND_NORMAL\x10\x01\x12\x19\n\x15TASK_LIST_KIND_STICKY\x10\x02\x12\x1c\n\x18TASK_LIST_KIND_EPHEMERAL\x10\x03*d\n\x0cTaskListType\x12\x1a\n\x16TASK_LIST_TYPE_INVALID\x10\x00\x12\x1b\n\x17TASK_LIST_TYPE_DECISION\x10\x01\x12\x1b\n\x17TASK_LIST_TYPE_ACTIVITY\x10\x02\x42]\n\x17\x63om.uber.cadence.api.v1B\rTaskListProtoP\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.tasklist_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\rTaskListProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
|
|
38
|
+
_globals['_TASKLISTSTATUS_ISOLATIONGROUPMETRICSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_TASKLISTSTATUS_ISOLATIONGROUPMETRICSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_TASKLISTPARTITIONCONFIG_READPARTITIONSENTRY']._loaded_options = None
|
|
41
|
+
_globals['_TASKLISTPARTITIONCONFIG_READPARTITIONSENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_TASKLISTPARTITIONCONFIG_WRITEPARTITIONSENTRY']._loaded_options = None
|
|
43
|
+
_globals['_TASKLISTPARTITIONCONFIG_WRITEPARTITIONSENTRY']._serialized_options = b'8\001'
|
|
44
|
+
_globals['_TASKLISTPARTITIONCONFIG'].fields_by_name['num_read_partitions']._loaded_options = None
|
|
45
|
+
_globals['_TASKLISTPARTITIONCONFIG'].fields_by_name['num_read_partitions']._serialized_options = b'\030\001'
|
|
46
|
+
_globals['_TASKLISTPARTITIONCONFIG'].fields_by_name['num_write_partitions']._loaded_options = None
|
|
47
|
+
_globals['_TASKLISTPARTITIONCONFIG'].fields_by_name['num_write_partitions']._serialized_options = b'\030\001'
|
|
48
|
+
_globals['_TASKLISTKIND']._serialized_start=1709
|
|
49
|
+
_globals['_TASKLISTKIND']._serialized_end=1835
|
|
50
|
+
_globals['_TASKLISTTYPE']._serialized_start=1837
|
|
51
|
+
_globals['_TASKLISTTYPE']._serialized_end=1937
|
|
52
|
+
_globals['_TASKLIST']._serialized_start=151
|
|
53
|
+
_globals['_TASKLIST']._serialized_end=224
|
|
54
|
+
_globals['_TASKLISTMETADATA']._serialized_start=226
|
|
55
|
+
_globals['_TASKLISTMETADATA']._serialized_end=304
|
|
56
|
+
_globals['_TASKLISTPARTITIONMETADATA']._serialized_start=306
|
|
57
|
+
_globals['_TASKLISTPARTITIONMETADATA']._serialized_end=371
|
|
58
|
+
_globals['_ISOLATIONGROUPMETRICS']._serialized_start=373
|
|
59
|
+
_globals['_ISOLATIONGROUPMETRICS']._serialized_end=448
|
|
60
|
+
_globals['_TASKLISTSTATUS']._serialized_start=451
|
|
61
|
+
_globals['_TASKLISTSTATUS']._serialized_end=864
|
|
62
|
+
_globals['_TASKLISTSTATUS_ISOLATIONGROUPMETRICSENTRY']._serialized_start=760
|
|
63
|
+
_globals['_TASKLISTSTATUS_ISOLATIONGROUPMETRICSENTRY']._serialized_end=864
|
|
64
|
+
_globals['_TASKIDBLOCK']._serialized_start=866
|
|
65
|
+
_globals['_TASKIDBLOCK']._serialized_end=913
|
|
66
|
+
_globals['_POLLERINFO']._serialized_start=915
|
|
67
|
+
_globals['_POLLERINFO']._serialized_end=1024
|
|
68
|
+
_globals['_STICKYEXECUTIONATTRIBUTES']._serialized_start=1027
|
|
69
|
+
_globals['_STICKYEXECUTIONATTRIBUTES']._serialized_end=1173
|
|
70
|
+
_globals['_TASKLISTPARTITION']._serialized_start=1175
|
|
71
|
+
_globals['_TASKLISTPARTITION']._serialized_end=1220
|
|
72
|
+
_globals['_TASKLISTPARTITIONCONFIG']._serialized_start=1223
|
|
73
|
+
_globals['_TASKLISTPARTITIONCONFIG']._serialized_end=1707
|
|
74
|
+
_globals['_TASKLISTPARTITIONCONFIG_READPARTITIONSENTRY']._serialized_start=1518
|
|
75
|
+
_globals['_TASKLISTPARTITIONCONFIG_READPARTITIONSENTRY']._serialized_end=1611
|
|
76
|
+
_globals['_TASKLISTPARTITIONCONFIG_WRITEPARTITIONSENTRY']._serialized_start=1613
|
|
77
|
+
_globals['_TASKLISTPARTITIONCONFIG_WRITEPARTITIONSENTRY']._serialized_end=1707
|
|
78
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from google.protobuf import wrappers_pb2 as _wrappers_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 TaskListKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
TASK_LIST_KIND_INVALID: _ClassVar[TaskListKind]
|
|
15
|
+
TASK_LIST_KIND_NORMAL: _ClassVar[TaskListKind]
|
|
16
|
+
TASK_LIST_KIND_STICKY: _ClassVar[TaskListKind]
|
|
17
|
+
TASK_LIST_KIND_EPHEMERAL: _ClassVar[TaskListKind]
|
|
18
|
+
|
|
19
|
+
class TaskListType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
20
|
+
__slots__ = ()
|
|
21
|
+
TASK_LIST_TYPE_INVALID: _ClassVar[TaskListType]
|
|
22
|
+
TASK_LIST_TYPE_DECISION: _ClassVar[TaskListType]
|
|
23
|
+
TASK_LIST_TYPE_ACTIVITY: _ClassVar[TaskListType]
|
|
24
|
+
TASK_LIST_KIND_INVALID: TaskListKind
|
|
25
|
+
TASK_LIST_KIND_NORMAL: TaskListKind
|
|
26
|
+
TASK_LIST_KIND_STICKY: TaskListKind
|
|
27
|
+
TASK_LIST_KIND_EPHEMERAL: TaskListKind
|
|
28
|
+
TASK_LIST_TYPE_INVALID: TaskListType
|
|
29
|
+
TASK_LIST_TYPE_DECISION: TaskListType
|
|
30
|
+
TASK_LIST_TYPE_ACTIVITY: TaskListType
|
|
31
|
+
|
|
32
|
+
class TaskList(_message.Message):
|
|
33
|
+
__slots__ = ("name", "kind")
|
|
34
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
name: str
|
|
37
|
+
kind: TaskListKind
|
|
38
|
+
def __init__(self, name: _Optional[str] = ..., kind: _Optional[_Union[TaskListKind, str]] = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class TaskListMetadata(_message.Message):
|
|
41
|
+
__slots__ = ("max_tasks_per_second",)
|
|
42
|
+
MAX_TASKS_PER_SECOND_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
max_tasks_per_second: _wrappers_pb2.DoubleValue
|
|
44
|
+
def __init__(self, max_tasks_per_second: _Optional[_Union[_wrappers_pb2.DoubleValue, _Mapping]] = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class TaskListPartitionMetadata(_message.Message):
|
|
47
|
+
__slots__ = ("key", "owner_host_name")
|
|
48
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
OWNER_HOST_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
key: str
|
|
51
|
+
owner_host_name: str
|
|
52
|
+
def __init__(self, key: _Optional[str] = ..., owner_host_name: _Optional[str] = ...) -> None: ...
|
|
53
|
+
|
|
54
|
+
class IsolationGroupMetrics(_message.Message):
|
|
55
|
+
__slots__ = ("new_tasks_per_second", "poller_count")
|
|
56
|
+
NEW_TASKS_PER_SECOND_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
POLLER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
new_tasks_per_second: float
|
|
59
|
+
poller_count: int
|
|
60
|
+
def __init__(self, new_tasks_per_second: _Optional[float] = ..., poller_count: _Optional[int] = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class TaskListStatus(_message.Message):
|
|
63
|
+
__slots__ = ("backlog_count_hint", "read_level", "ack_level", "rate_per_second", "task_id_block", "isolation_group_metrics", "new_tasks_per_second", "empty")
|
|
64
|
+
class IsolationGroupMetricsEntry(_message.Message):
|
|
65
|
+
__slots__ = ("key", "value")
|
|
66
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
key: str
|
|
69
|
+
value: IsolationGroupMetrics
|
|
70
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[IsolationGroupMetrics, _Mapping]] = ...) -> None: ...
|
|
71
|
+
BACKLOG_COUNT_HINT_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
READ_LEVEL_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
ACK_LEVEL_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
RATE_PER_SECOND_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
TASK_ID_BLOCK_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
ISOLATION_GROUP_METRICS_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
NEW_TASKS_PER_SECOND_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
EMPTY_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
backlog_count_hint: int
|
|
80
|
+
read_level: int
|
|
81
|
+
ack_level: int
|
|
82
|
+
rate_per_second: float
|
|
83
|
+
task_id_block: TaskIDBlock
|
|
84
|
+
isolation_group_metrics: _containers.MessageMap[str, IsolationGroupMetrics]
|
|
85
|
+
new_tasks_per_second: float
|
|
86
|
+
empty: bool
|
|
87
|
+
def __init__(self, backlog_count_hint: _Optional[int] = ..., read_level: _Optional[int] = ..., ack_level: _Optional[int] = ..., rate_per_second: _Optional[float] = ..., task_id_block: _Optional[_Union[TaskIDBlock, _Mapping]] = ..., isolation_group_metrics: _Optional[_Mapping[str, IsolationGroupMetrics]] = ..., new_tasks_per_second: _Optional[float] = ..., empty: bool = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class TaskIDBlock(_message.Message):
|
|
90
|
+
__slots__ = ("start_id", "end_id")
|
|
91
|
+
START_ID_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
END_ID_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
start_id: int
|
|
94
|
+
end_id: int
|
|
95
|
+
def __init__(self, start_id: _Optional[int] = ..., end_id: _Optional[int] = ...) -> None: ...
|
|
96
|
+
|
|
97
|
+
class PollerInfo(_message.Message):
|
|
98
|
+
__slots__ = ("last_access_time", "identity", "rate_per_second")
|
|
99
|
+
LAST_ACCESS_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
IDENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
RATE_PER_SECOND_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
last_access_time: _timestamp_pb2.Timestamp
|
|
103
|
+
identity: str
|
|
104
|
+
rate_per_second: float
|
|
105
|
+
def __init__(self, last_access_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., identity: _Optional[str] = ..., rate_per_second: _Optional[float] = ...) -> None: ...
|
|
106
|
+
|
|
107
|
+
class StickyExecutionAttributes(_message.Message):
|
|
108
|
+
__slots__ = ("worker_task_list", "schedule_to_start_timeout")
|
|
109
|
+
WORKER_TASK_LIST_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
worker_task_list: TaskList
|
|
112
|
+
schedule_to_start_timeout: _duration_pb2.Duration
|
|
113
|
+
def __init__(self, worker_task_list: _Optional[_Union[TaskList, _Mapping]] = ..., schedule_to_start_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
|
114
|
+
|
|
115
|
+
class TaskListPartition(_message.Message):
|
|
116
|
+
__slots__ = ("isolation_groups",)
|
|
117
|
+
ISOLATION_GROUPS_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
isolation_groups: _containers.RepeatedScalarFieldContainer[str]
|
|
119
|
+
def __init__(self, isolation_groups: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
120
|
+
|
|
121
|
+
class TaskListPartitionConfig(_message.Message):
|
|
122
|
+
__slots__ = ("version", "num_read_partitions", "num_write_partitions", "read_partitions", "write_partitions")
|
|
123
|
+
class ReadPartitionsEntry(_message.Message):
|
|
124
|
+
__slots__ = ("key", "value")
|
|
125
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
key: int
|
|
128
|
+
value: TaskListPartition
|
|
129
|
+
def __init__(self, key: _Optional[int] = ..., value: _Optional[_Union[TaskListPartition, _Mapping]] = ...) -> None: ...
|
|
130
|
+
class WritePartitionsEntry(_message.Message):
|
|
131
|
+
__slots__ = ("key", "value")
|
|
132
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
134
|
+
key: int
|
|
135
|
+
value: TaskListPartition
|
|
136
|
+
def __init__(self, key: _Optional[int] = ..., value: _Optional[_Union[TaskListPartition, _Mapping]] = ...) -> None: ...
|
|
137
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
+
NUM_READ_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
NUM_WRITE_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
+
READ_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
|
141
|
+
WRITE_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
+
version: int
|
|
143
|
+
num_read_partitions: int
|
|
144
|
+
num_write_partitions: int
|
|
145
|
+
read_partitions: _containers.MessageMap[int, TaskListPartition]
|
|
146
|
+
write_partitions: _containers.MessageMap[int, TaskListPartition]
|
|
147
|
+
def __init__(self, version: _Optional[int] = ..., num_read_partitions: _Optional[int] = ..., num_write_partitions: _Optional[int] = ..., read_partitions: _Optional[_Mapping[int, TaskListPartition]] = ..., write_partitions: _Optional[_Mapping[int, TaskListPartition]] = ...) -> 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/tasklist_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,47 @@
|
|
|
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/visibility.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/visibility.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from cadence.api.v1 import workflow_pb2 as cadence_dot_api_dot_v1_dot_workflow__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63\x61\x64\x65nce/api/v1/visibility.proto\x12\x13uber.cadence.api.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1d\x63\x61\x64\x65nce/api/v1/workflow.proto\">\n\x17WorkflowExecutionFilter\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\"\"\n\x12WorkflowTypeFilter\x12\x0c\n\x04name\x18\x01 \x01(\t\"u\n\x0fStartTimeFilter\x12\x31\n\rearliest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0blatest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x0cStatusFilter\x12\x41\n\x06status\x18\x01 \x01(\x0e\x32\x31.uber.cadence.api.v1.WorkflowExecutionCloseStatus*\xea\x01\n\x10IndexedValueType\x12\x1e\n\x1aINDEXED_VALUE_TYPE_INVALID\x10\x00\x12\x1d\n\x19INDEXED_VALUE_TYPE_STRING\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x42_\n\x17\x63om.uber.cadence.api.v1B\x0fVisibilityProtoP\x01Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1b\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cadence.api.v1.visibility_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.uber.cadence.api.v1B\017VisibilityProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
|
|
37
|
+
_globals['_INDEXEDVALUETYPE']._serialized_start=423
|
|
38
|
+
_globals['_INDEXEDVALUETYPE']._serialized_end=657
|
|
39
|
+
_globals['_WORKFLOWEXECUTIONFILTER']._serialized_start=120
|
|
40
|
+
_globals['_WORKFLOWEXECUTIONFILTER']._serialized_end=182
|
|
41
|
+
_globals['_WORKFLOWTYPEFILTER']._serialized_start=184
|
|
42
|
+
_globals['_WORKFLOWTYPEFILTER']._serialized_end=218
|
|
43
|
+
_globals['_STARTTIMEFILTER']._serialized_start=220
|
|
44
|
+
_globals['_STARTTIMEFILTER']._serialized_end=337
|
|
45
|
+
_globals['_STATUSFILTER']._serialized_start=339
|
|
46
|
+
_globals['_STATUSFILTER']._serialized_end=420
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
|
+
from cadence.api.v1 import workflow_pb2 as _workflow_pb2
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class IndexedValueType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
11
|
+
__slots__ = ()
|
|
12
|
+
INDEXED_VALUE_TYPE_INVALID: _ClassVar[IndexedValueType]
|
|
13
|
+
INDEXED_VALUE_TYPE_STRING: _ClassVar[IndexedValueType]
|
|
14
|
+
INDEXED_VALUE_TYPE_KEYWORD: _ClassVar[IndexedValueType]
|
|
15
|
+
INDEXED_VALUE_TYPE_INT: _ClassVar[IndexedValueType]
|
|
16
|
+
INDEXED_VALUE_TYPE_DOUBLE: _ClassVar[IndexedValueType]
|
|
17
|
+
INDEXED_VALUE_TYPE_BOOL: _ClassVar[IndexedValueType]
|
|
18
|
+
INDEXED_VALUE_TYPE_DATETIME: _ClassVar[IndexedValueType]
|
|
19
|
+
INDEXED_VALUE_TYPE_INVALID: IndexedValueType
|
|
20
|
+
INDEXED_VALUE_TYPE_STRING: IndexedValueType
|
|
21
|
+
INDEXED_VALUE_TYPE_KEYWORD: IndexedValueType
|
|
22
|
+
INDEXED_VALUE_TYPE_INT: IndexedValueType
|
|
23
|
+
INDEXED_VALUE_TYPE_DOUBLE: IndexedValueType
|
|
24
|
+
INDEXED_VALUE_TYPE_BOOL: IndexedValueType
|
|
25
|
+
INDEXED_VALUE_TYPE_DATETIME: IndexedValueType
|
|
26
|
+
|
|
27
|
+
class WorkflowExecutionFilter(_message.Message):
|
|
28
|
+
__slots__ = ("workflow_id", "run_id")
|
|
29
|
+
WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
RUN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
workflow_id: str
|
|
32
|
+
run_id: str
|
|
33
|
+
def __init__(self, workflow_id: _Optional[str] = ..., run_id: _Optional[str] = ...) -> None: ...
|
|
34
|
+
|
|
35
|
+
class WorkflowTypeFilter(_message.Message):
|
|
36
|
+
__slots__ = ("name",)
|
|
37
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
name: str
|
|
39
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class StartTimeFilter(_message.Message):
|
|
42
|
+
__slots__ = ("earliest_time", "latest_time")
|
|
43
|
+
EARLIEST_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
LATEST_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
earliest_time: _timestamp_pb2.Timestamp
|
|
46
|
+
latest_time: _timestamp_pb2.Timestamp
|
|
47
|
+
def __init__(self, earliest_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., latest_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
48
|
+
|
|
49
|
+
class StatusFilter(_message.Message):
|
|
50
|
+
__slots__ = ("status",)
|
|
51
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
status: _workflow_pb2.WorkflowExecutionCloseStatus
|
|
53
|
+
def __init__(self, status: _Optional[_Union[_workflow_pb2.WorkflowExecutionCloseStatus, str]] = ...) -> 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/visibility_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,89 @@
|
|
|
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/workflow.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/workflow.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
|
+
from cadence.api.v1 import tasklist_pb2 as cadence_dot_api_dot_v1_dot_tasklist__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63\x61\x64\x65nce/api/v1/workflow.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\x1a\x1d\x63\x61\x64\x65nce/api/v1/tasklist.proto\"\xb2\x08\n\x15WorkflowExecutionInfo\x12\x42\n\x12workflow_execution\x18\x01 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12/\n\x04type\x18\x02 \x01(\x0b\x32!.uber.cadence.api.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x0c\x63lose_status\x18\x05 \x01(\x0e\x32\x31.uber.cadence.api.v1.WorkflowExecutionCloseStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12G\n\x15parent_execution_info\x18\x07 \x01(\x0b\x32(.uber.cadence.api.v1.ParentExecutionInfo\x12\x32\n\x0e\x65xecution_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x04memo\x18\t \x01(\x0b\x32\x19.uber.cadence.api.v1.Memo\x12@\n\x11search_attributes\x18\n \x01(\x0b\x32%.uber.cadence.api.v1.SearchAttributes\x12;\n\x11\x61uto_reset_points\x18\x0b \x01(\x0b\x32 .uber.cadence.api.v1.ResetPoints\x12\x11\n\ttask_list\x18\x0c \x01(\t\x12\x35\n\x0etask_list_info\x18\x11 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12\x0f\n\x07is_cron\x18\r \x01(\x08\x12/\n\x0bupdate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Y\n\x10partition_config\x18\x0f \x03(\x0b\x32?.uber.cadence.api.v1.WorkflowExecutionInfo.PartitionConfigEntry\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\x12 \x01(\x0b\x32\x31.uber.cadence.api.v1.ActiveClusterSelectionPolicy\x1a\x36\n\x14PartitionConfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd7\x01\n\x1eWorkflowExecutionConfiguration\x12\x30\n\ttask_list\x18\x01 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12\x43\n execution_start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1btask_start_to_close_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x97\x01\n\x13ParentExecutionInfo\x12\x11\n\tdomain_id\x18\x01 \x01(\t\x12\x13\n\x0b\x64omain_name\x18\x02 \x01(\t\x12\x42\n\x12workflow_execution\x18\x03 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\"q\n\x15\x45xternalExecutionInfo\x12\x42\n\x12workflow_execution\x18\x01 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x14\n\x0cinitiated_id\x18\x02 \x01(\x03\"\xe3\x04\n\x13PendingActivityInfo\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\x38\n\x05state\x18\x03 \x01(\x0e\x32).uber.cadence.api.v1.PendingActivityState\x12\x37\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0clast_failure\x18\x0b \x01(\x0b\x32\x1c.uber.cadence.api.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t\x12\x1f\n\x17started_worker_identity\x18\r \x01(\t\x12\x13\n\x0bschedule_id\x18\x0e \x01(\x03\"\xe6\x01\n\x19PendingChildExecutionInfo\x12\x42\n\x12workflow_execution\x18\x01 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x1a\n\x12workflow_type_name\x18\x02 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x03 \x01(\x03\x12\x43\n\x13parent_close_policy\x18\x04 \x01(\x0e\x32&.uber.cadence.api.v1.ParentClosePolicy\x12\x0e\n\x06\x64omain\x18\x05 \x01(\t\"\x98\x02\n\x13PendingDecisionInfo\x12\x38\n\x05state\x18\x01 \x01(\x0e\x32).uber.cadence.api.v1.PendingDecisionState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12;\n\x17original_scheduled_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bschedule_id\x18\x06 \x01(\x03\"\xee\x01\n\x19\x41\x63tivityLocalDispatchInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1escheduled_time_of_this_attempt\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ntask_token\x18\x05 \x01(\x0c\"B\n\x0bResetPoints\x12\x33\n\x06points\x18\x01 \x03(\x0b\x32#.uber.cadence.api.v1.ResetPointInfo\"\xd7\x01\n\x0eResetPointInfo\x12\x17\n\x0f\x62inary_checksum\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12#\n\x1b\x66irst_decision_completed_id\x18\x03 \x01(\x03\x12\x30\n\x0c\x63reated_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rexpiring_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08*\xb1\x01\n\x14PendingActivityState\x12\"\n\x1ePENDING_ACTIVITY_STATE_INVALID\x10\x00\x12$\n PENDING_ACTIVITY_STATE_SCHEDULED\x10\x01\x12\"\n\x1ePENDING_ACTIVITY_STATE_STARTED\x10\x02\x12+\n\'PENDING_ACTIVITY_STATE_CANCEL_REQUESTED\x10\x03*\x84\x01\n\x14PendingDecisionState\x12\"\n\x1ePENDING_DECISION_STATE_INVALID\x10\x00\x12$\n PENDING_DECISION_STATE_SCHEDULED\x10\x01\x12\"\n\x1ePENDING_DECISION_STATE_STARTED\x10\x02*\x87\x02\n\x15WorkflowIdReusePolicy\x12$\n WORKFLOW_ID_REUSE_POLICY_INVALID\x10\x00\x12\x38\n4WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY\x10\x01\x12,\n(WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE\x10\x02\x12-\n)WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE\x10\x03\x12\x31\n-WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING\x10\x04*y\n\x11\x43ronOverlapPolicy\x12\x1f\n\x1b\x43RON_OVERLAP_POLICY_INVALID\x10\x00\x12\x1f\n\x1b\x43RON_OVERLAP_POLICY_SKIPPED\x10\x01\x12\"\n\x1e\x43RON_OVERLAP_POLICY_BUFFER_ONE\x10\x02*\xa0\x01\n\x11ParentClosePolicy\x12\x1f\n\x1bPARENT_CLOSE_POLICY_INVALID\x10\x00\x12\x1f\n\x1bPARENT_CLOSE_POLICY_ABANDON\x10\x01\x12&\n\"PARENT_CLOSE_POLICY_REQUEST_CANCEL\x10\x02\x12!\n\x1dPARENT_CLOSE_POLICY_TERMINATE\x10\x03*\xe9\x02\n\x1cWorkflowExecutionCloseStatus\x12+\n\'WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID\x10\x00\x12-\n)WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED\x10\x01\x12*\n&WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED\x10\x02\x12,\n(WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED\x10\x03\x12.\n*WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED\x10\x04\x12\x34\n0WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW\x10\x05\x12-\n)WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT\x10\x06*\xbf\x01\n\x16\x43ontinueAsNewInitiator\x12%\n!CONTINUE_AS_NEW_INITIATOR_INVALID\x10\x00\x12%\n!CONTINUE_AS_NEW_INITIATOR_DECIDER\x10\x01\x12*\n&CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY\x10\x02\x12+\n\'CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE\x10\x03*\xac\x01\n\x0bTimeoutType\x12\x18\n\x14TIMEOUT_TYPE_INVALID\x10\x00\x12\x1f\n\x1bTIMEOUT_TYPE_START_TO_CLOSE\x10\x01\x12\"\n\x1eTIMEOUT_TYPE_SCHEDULE_TO_START\x10\x02\x12\"\n\x1eTIMEOUT_TYPE_SCHEDULE_TO_CLOSE\x10\x03\x12\x1a\n\x16TIMEOUT_TYPE_HEARTBEAT\x10\x04*\x9a\x01\n\x19\x44\x65\x63isionTaskTimedOutCause\x12)\n%DECISION_TASK_TIMED_OUT_CAUSE_INVALID\x10\x00\x12)\n%DECISION_TASK_TIMED_OUT_CAUSE_TIMEOUT\x10\x01\x12\'\n#DECISION_TASK_TIMED_OUT_CAUSE_RESET\x10\x02*\xd6\x0b\n\x17\x44\x65\x63isionTaskFailedCause\x12&\n\"DECISION_TASK_FAILED_CAUSE_INVALID\x10\x00\x12\x31\n-DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION\x10\x01\x12?\n;DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES\x10\x02\x12\x45\nADECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES\x10\x03\x12\x39\n5DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES\x10\x04\x12:\n6DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES\x10\x05\x12;\n7DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES\x10\x06\x12I\nEDECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES\x10\x07\x12\x45\nADECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES\x10\x08\x12G\nCDECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES\x10\t\x12X\nTDECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES\x10\n\x12=\n9DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES\x10\x0b\x12\x37\n3DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID\x10\x0c\x12\x35\n1DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST\x10\r\x12@\n<DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE\x10\x0e\x12G\nCDECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES\x10\x0f\x12\x43\n?DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES\x10\x10\x12\x33\n/DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION\x10\x11\x12\x36\n2DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION\x10\x12\x12\x34\n0DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE\x10\x13\x12-\n)DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW\x10\x14\x12)\n%DECISION_TASK_FAILED_CAUSE_BAD_BINARY\x10\x15\x12=\n9DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID\x10\x16\x12\x34\n0DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES\x10\x17*\x9a\x01\n!ChildWorkflowExecutionFailedCause\x12\x31\n-CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID\x10\x00\x12\x42\n>CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING\x10\x01*\x92\x02\n*CancelExternalWorkflowExecutionFailedCause\x12;\n7CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID\x10\x00\x12W\nSCANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION\x10\x01\x12N\nJCANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_COMPLETED\x10\x02*\x92\x02\n*SignalExternalWorkflowExecutionFailedCause\x12;\n7SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID\x10\x00\x12W\nSSIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION\x10\x01\x12N\nJSIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_COMPLETED\x10\x02\x42]\n\x17\x63om.uber.cadence.api.v1B\rWorkflowProtoP\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.workflow_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\rWorkflowProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
|
|
39
|
+
_globals['_WORKFLOWEXECUTIONINFO_PARTITIONCONFIGENTRY']._loaded_options = None
|
|
40
|
+
_globals['_WORKFLOWEXECUTIONINFO_PARTITIONCONFIGENTRY']._serialized_options = b'8\001'
|
|
41
|
+
_globals['_PENDINGACTIVITYSTATE']._serialized_start=3401
|
|
42
|
+
_globals['_PENDINGACTIVITYSTATE']._serialized_end=3578
|
|
43
|
+
_globals['_PENDINGDECISIONSTATE']._serialized_start=3581
|
|
44
|
+
_globals['_PENDINGDECISIONSTATE']._serialized_end=3713
|
|
45
|
+
_globals['_WORKFLOWIDREUSEPOLICY']._serialized_start=3716
|
|
46
|
+
_globals['_WORKFLOWIDREUSEPOLICY']._serialized_end=3979
|
|
47
|
+
_globals['_CRONOVERLAPPOLICY']._serialized_start=3981
|
|
48
|
+
_globals['_CRONOVERLAPPOLICY']._serialized_end=4102
|
|
49
|
+
_globals['_PARENTCLOSEPOLICY']._serialized_start=4105
|
|
50
|
+
_globals['_PARENTCLOSEPOLICY']._serialized_end=4265
|
|
51
|
+
_globals['_WORKFLOWEXECUTIONCLOSESTATUS']._serialized_start=4268
|
|
52
|
+
_globals['_WORKFLOWEXECUTIONCLOSESTATUS']._serialized_end=4629
|
|
53
|
+
_globals['_CONTINUEASNEWINITIATOR']._serialized_start=4632
|
|
54
|
+
_globals['_CONTINUEASNEWINITIATOR']._serialized_end=4823
|
|
55
|
+
_globals['_TIMEOUTTYPE']._serialized_start=4826
|
|
56
|
+
_globals['_TIMEOUTTYPE']._serialized_end=4998
|
|
57
|
+
_globals['_DECISIONTASKTIMEDOUTCAUSE']._serialized_start=5001
|
|
58
|
+
_globals['_DECISIONTASKTIMEDOUTCAUSE']._serialized_end=5155
|
|
59
|
+
_globals['_DECISIONTASKFAILEDCAUSE']._serialized_start=5158
|
|
60
|
+
_globals['_DECISIONTASKFAILEDCAUSE']._serialized_end=6652
|
|
61
|
+
_globals['_CHILDWORKFLOWEXECUTIONFAILEDCAUSE']._serialized_start=6655
|
|
62
|
+
_globals['_CHILDWORKFLOWEXECUTIONFAILEDCAUSE']._serialized_end=6809
|
|
63
|
+
_globals['_CANCELEXTERNALWORKFLOWEXECUTIONFAILEDCAUSE']._serialized_start=6812
|
|
64
|
+
_globals['_CANCELEXTERNALWORKFLOWEXECUTIONFAILEDCAUSE']._serialized_end=7086
|
|
65
|
+
_globals['_SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDCAUSE']._serialized_start=7089
|
|
66
|
+
_globals['_SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDCAUSE']._serialized_end=7363
|
|
67
|
+
_globals['_WORKFLOWEXECUTIONINFO']._serialized_start=180
|
|
68
|
+
_globals['_WORKFLOWEXECUTIONINFO']._serialized_end=1254
|
|
69
|
+
_globals['_WORKFLOWEXECUTIONINFO_PARTITIONCONFIGENTRY']._serialized_start=1200
|
|
70
|
+
_globals['_WORKFLOWEXECUTIONINFO_PARTITIONCONFIGENTRY']._serialized_end=1254
|
|
71
|
+
_globals['_WORKFLOWEXECUTIONCONFIGURATION']._serialized_start=1257
|
|
72
|
+
_globals['_WORKFLOWEXECUTIONCONFIGURATION']._serialized_end=1472
|
|
73
|
+
_globals['_PARENTEXECUTIONINFO']._serialized_start=1475
|
|
74
|
+
_globals['_PARENTEXECUTIONINFO']._serialized_end=1626
|
|
75
|
+
_globals['_EXTERNALEXECUTIONINFO']._serialized_start=1628
|
|
76
|
+
_globals['_EXTERNALEXECUTIONINFO']._serialized_end=1741
|
|
77
|
+
_globals['_PENDINGACTIVITYINFO']._serialized_start=1744
|
|
78
|
+
_globals['_PENDINGACTIVITYINFO']._serialized_end=2355
|
|
79
|
+
_globals['_PENDINGCHILDEXECUTIONINFO']._serialized_start=2358
|
|
80
|
+
_globals['_PENDINGCHILDEXECUTIONINFO']._serialized_end=2588
|
|
81
|
+
_globals['_PENDINGDECISIONINFO']._serialized_start=2591
|
|
82
|
+
_globals['_PENDINGDECISIONINFO']._serialized_end=2871
|
|
83
|
+
_globals['_ACTIVITYLOCALDISPATCHINFO']._serialized_start=2874
|
|
84
|
+
_globals['_ACTIVITYLOCALDISPATCHINFO']._serialized_end=3112
|
|
85
|
+
_globals['_RESETPOINTS']._serialized_start=3114
|
|
86
|
+
_globals['_RESETPOINTS']._serialized_end=3180
|
|
87
|
+
_globals['_RESETPOINTINFO']._serialized_start=3183
|
|
88
|
+
_globals['_RESETPOINTINFO']._serialized_end=3398
|
|
89
|
+
# @@protoc_insertion_point(module_scope)
|