flyte 2.0.0b21__py3-none-any.whl → 2.0.0b23__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.
Potentially problematic release.
This version of flyte might be problematic. Click here for more details.
- flyte/__init__.py +5 -0
- flyte/_bin/runtime.py +36 -6
- flyte/_cache/cache.py +4 -2
- flyte/_cache/local_cache.py +215 -0
- flyte/_code_bundle/bundle.py +1 -0
- flyte/_debug/constants.py +0 -1
- flyte/_debug/vscode.py +6 -1
- flyte/_deploy.py +204 -55
- flyte/_environment.py +5 -0
- flyte/_excepthook.py +1 -1
- flyte/_image.py +101 -68
- flyte/_initialize.py +30 -1
- flyte/_interface.py +3 -1
- flyte/_internal/controllers/_local_controller.py +64 -24
- flyte/_internal/controllers/remote/_action.py +4 -1
- flyte/_internal/controllers/remote/_controller.py +5 -2
- flyte/_internal/controllers/remote/_core.py +6 -3
- flyte/_internal/controllers/remote/_informer.py +1 -1
- flyte/_internal/imagebuild/docker_builder.py +95 -28
- flyte/_internal/imagebuild/image_builder.py +0 -5
- flyte/_internal/imagebuild/remote_builder.py +6 -1
- flyte/_internal/runtime/io.py +13 -1
- flyte/_internal/runtime/rusty.py +17 -2
- flyte/_internal/runtime/task_serde.py +15 -11
- flyte/_internal/runtime/taskrunner.py +1 -1
- flyte/_internal/runtime/trigger_serde.py +153 -0
- flyte/_keyring/file.py +2 -2
- flyte/_logging.py +1 -1
- flyte/_protos/common/identifier_pb2.py +19 -1
- flyte/_protos/common/identifier_pb2.pyi +22 -0
- flyte/_protos/workflow/common_pb2.py +14 -3
- flyte/_protos/workflow/common_pb2.pyi +49 -0
- flyte/_protos/workflow/queue_service_pb2.py +41 -35
- flyte/_protos/workflow/queue_service_pb2.pyi +26 -12
- flyte/_protos/workflow/queue_service_pb2_grpc.py +34 -0
- flyte/_protos/workflow/run_definition_pb2.py +38 -38
- flyte/_protos/workflow/run_definition_pb2.pyi +4 -2
- flyte/_protos/workflow/run_service_pb2.py +60 -50
- flyte/_protos/workflow/run_service_pb2.pyi +24 -6
- flyte/_protos/workflow/run_service_pb2_grpc.py +34 -0
- flyte/_protos/workflow/task_definition_pb2.py +15 -11
- flyte/_protos/workflow/task_definition_pb2.pyi +19 -2
- flyte/_protos/workflow/task_service_pb2.py +18 -17
- flyte/_protos/workflow/task_service_pb2.pyi +5 -2
- flyte/_protos/workflow/trigger_definition_pb2.py +66 -0
- flyte/_protos/workflow/trigger_definition_pb2.pyi +117 -0
- flyte/_protos/workflow/trigger_definition_pb2_grpc.py +4 -0
- flyte/_protos/workflow/trigger_service_pb2.py +96 -0
- flyte/_protos/workflow/trigger_service_pb2.pyi +110 -0
- flyte/_protos/workflow/trigger_service_pb2_grpc.py +281 -0
- flyte/_run.py +42 -15
- flyte/_task.py +35 -4
- flyte/_task_environment.py +61 -16
- flyte/_trigger.py +382 -0
- flyte/_version.py +3 -3
- flyte/cli/_abort.py +3 -3
- flyte/cli/_build.py +1 -3
- flyte/cli/_common.py +17 -4
- flyte/cli/_create.py +74 -0
- flyte/cli/_delete.py +23 -1
- flyte/cli/_deploy.py +16 -10
- flyte/cli/_get.py +75 -34
- flyte/cli/_params.py +4 -2
- flyte/cli/_run.py +25 -6
- flyte/cli/_update.py +36 -0
- flyte/cli/_user.py +17 -0
- flyte/cli/main.py +9 -1
- flyte/errors.py +9 -0
- flyte/io/_dir.py +513 -115
- flyte/io/_file.py +495 -135
- flyte/models.py +32 -0
- flyte/remote/__init__.py +6 -1
- flyte/remote/_action.py +9 -8
- flyte/remote/_client/_protocols.py +36 -2
- flyte/remote/_client/controlplane.py +19 -3
- flyte/remote/_run.py +42 -2
- flyte/remote/_task.py +14 -1
- flyte/remote/_trigger.py +308 -0
- flyte/remote/_user.py +33 -0
- flyte/storage/__init__.py +6 -1
- flyte/storage/_storage.py +119 -101
- flyte/types/_pickle.py +34 -7
- flyte/types/_type_engine.py +6 -0
- {flyte-2.0.0b21.data → flyte-2.0.0b23.data}/scripts/runtime.py +36 -6
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/METADATA +3 -1
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/RECORD +91 -79
- flyte/_protos/secret/secret_pb2_grpc_grpc.py +0 -198
- {flyte-2.0.0b21.data → flyte-2.0.0b23.data}/scripts/debug.py +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/WHEEL +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/entry_points.txt +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/licenses/LICENSE +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/top_level.txt +0 -0
|
@@ -118,3 +118,25 @@ class ActionAttemptIdentifier(_message.Message):
|
|
|
118
118
|
action_id: ActionIdentifier
|
|
119
119
|
attempt: int
|
|
120
120
|
def __init__(self, action_id: _Optional[_Union[ActionIdentifier, _Mapping]] = ..., attempt: _Optional[int] = ...) -> None: ...
|
|
121
|
+
|
|
122
|
+
class TriggerName(_message.Message):
|
|
123
|
+
__slots__ = ["org", "project", "domain", "name", "task_name"]
|
|
124
|
+
ORG_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
TASK_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
org: str
|
|
130
|
+
project: str
|
|
131
|
+
domain: str
|
|
132
|
+
name: str
|
|
133
|
+
task_name: str
|
|
134
|
+
def __init__(self, org: _Optional[str] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., task_name: _Optional[str] = ...) -> None: ...
|
|
135
|
+
|
|
136
|
+
class TriggerIdentifier(_message.Message):
|
|
137
|
+
__slots__ = ["name", "revision"]
|
|
138
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
REVISION_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
+
name: TriggerName
|
|
141
|
+
revision: int
|
|
142
|
+
def __init__(self, name: _Optional[_Union[TriggerName, _Mapping]] = ..., revision: _Optional[int] = ...) -> None: ...
|
|
@@ -12,9 +12,10 @@ _sym_db = _symbol_database.Default()
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15workflow/common.proto\x12\x11\x63loudidl.workflow\x1a\x1d\x66lyteidl/core/interface.proto\"\\\n\x0eNamedParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x36\n\tparameter\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ParameterR\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15workflow/common.proto\x12\x11\x63loudidl.workflow\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\\\n\x0eNamedParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x36\n\tparameter\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ParameterR\tparameter\"\x92\x01\n\tFixedRate\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\x12\x34\n\x04unit\x18\x02 \x01(\x0e\x32 .cloudidl.workflow.FixedRateUnitR\x04unit\x12\x39\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\"\xac\x01\n\x08Schedule\x12\x32\n\x04rate\x18\x01 \x01(\x0b\x32\x1c.cloudidl.workflow.FixedRateH\x00R\x04rate\x12)\n\x0f\x63ron_expression\x18\x02 \x01(\tH\x00R\x0e\x63ronExpression\x12\x33\n\x16kickoff_time_input_arg\x18\x03 \x01(\tR\x13kickoffTimeInputArgB\x0c\n\nexpression\"\xe3\x01\n\x15TriggerAutomationSpec\x12\x41\n\x04type\x18\x01 \x01(\x0e\x32-.cloudidl.workflow.TriggerAutomationSpec.TypeR\x04type\x12\x39\n\x08schedule\x18\x02 \x01(\x0b\x32\x1b.cloudidl.workflow.ScheduleH\x00R\x08schedule\">\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tTYPE_NONE\x10\x01\x12\x11\n\rTYPE_SCHEDULE\x10\x02\x42\x0c\n\nautomation*\x7f\n\rFixedRateUnit\x12\x1f\n\x1b\x46IXED_RATE_UNIT_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46IXED_RATE_UNIT_MINUTE\x10\x01\x12\x18\n\x14\x46IXED_RATE_UNIT_HOUR\x10\x02\x12\x17\n\x13\x46IXED_RATE_UNIT_DAY\x10\x03\x42\xb8\x01\n\x15\x63om.cloudidl.workflowB\x0b\x43ommonProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
|
|
18
19
|
|
|
19
20
|
_globals = globals()
|
|
20
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -22,6 +23,16 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.common_pb2', _glob
|
|
|
22
23
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
24
|
DESCRIPTOR._options = None
|
|
24
25
|
DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\013CommonProtoH\002P\001Z+github.com/unionai/cloud/gen/pb-go/workflow\242\002\003CWX\252\002\021Cloudidl.Workflow\312\002\021Cloudidl\\Workflow\342\002\035Cloudidl\\Workflow\\GPBMetadata\352\002\022Cloudidl::Workflow'
|
|
25
|
-
_globals['
|
|
26
|
-
_globals['
|
|
26
|
+
_globals['_FIXEDRATEUNIT']._serialized_start=756
|
|
27
|
+
_globals['_FIXEDRATEUNIT']._serialized_end=883
|
|
28
|
+
_globals['_NAMEDPARAMETER']._serialized_start=108
|
|
29
|
+
_globals['_NAMEDPARAMETER']._serialized_end=200
|
|
30
|
+
_globals['_FIXEDRATE']._serialized_start=203
|
|
31
|
+
_globals['_FIXEDRATE']._serialized_end=349
|
|
32
|
+
_globals['_SCHEDULE']._serialized_start=352
|
|
33
|
+
_globals['_SCHEDULE']._serialized_end=524
|
|
34
|
+
_globals['_TRIGGERAUTOMATIONSPEC']._serialized_start=527
|
|
35
|
+
_globals['_TRIGGERAUTOMATIONSPEC']._serialized_end=754
|
|
36
|
+
_globals['_TRIGGERAUTOMATIONSPEC_TYPE']._serialized_start=678
|
|
37
|
+
_globals['_TRIGGERAUTOMATIONSPEC_TYPE']._serialized_end=740
|
|
27
38
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
from flyteidl.core import interface_pb2 as _interface_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
2
4
|
from google.protobuf import descriptor as _descriptor
|
|
3
5
|
from google.protobuf import message as _message
|
|
4
6
|
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
5
7
|
|
|
6
8
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
9
|
|
|
10
|
+
class FixedRateUnit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
11
|
+
__slots__ = []
|
|
12
|
+
FIXED_RATE_UNIT_UNSPECIFIED: _ClassVar[FixedRateUnit]
|
|
13
|
+
FIXED_RATE_UNIT_MINUTE: _ClassVar[FixedRateUnit]
|
|
14
|
+
FIXED_RATE_UNIT_HOUR: _ClassVar[FixedRateUnit]
|
|
15
|
+
FIXED_RATE_UNIT_DAY: _ClassVar[FixedRateUnit]
|
|
16
|
+
FIXED_RATE_UNIT_UNSPECIFIED: FixedRateUnit
|
|
17
|
+
FIXED_RATE_UNIT_MINUTE: FixedRateUnit
|
|
18
|
+
FIXED_RATE_UNIT_HOUR: FixedRateUnit
|
|
19
|
+
FIXED_RATE_UNIT_DAY: FixedRateUnit
|
|
20
|
+
|
|
8
21
|
class NamedParameter(_message.Message):
|
|
9
22
|
__slots__ = ["name", "parameter"]
|
|
10
23
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -12,3 +25,39 @@ class NamedParameter(_message.Message):
|
|
|
12
25
|
name: str
|
|
13
26
|
parameter: _interface_pb2.Parameter
|
|
14
27
|
def __init__(self, name: _Optional[str] = ..., parameter: _Optional[_Union[_interface_pb2.Parameter, _Mapping]] = ...) -> None: ...
|
|
28
|
+
|
|
29
|
+
class FixedRate(_message.Message):
|
|
30
|
+
__slots__ = ["value", "unit", "start_time"]
|
|
31
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
UNIT_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
START_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
value: int
|
|
35
|
+
unit: FixedRateUnit
|
|
36
|
+
start_time: _timestamp_pb2.Timestamp
|
|
37
|
+
def __init__(self, value: _Optional[int] = ..., unit: _Optional[_Union[FixedRateUnit, str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
38
|
+
|
|
39
|
+
class Schedule(_message.Message):
|
|
40
|
+
__slots__ = ["rate", "cron_expression", "kickoff_time_input_arg"]
|
|
41
|
+
RATE_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
CRON_EXPRESSION_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
rate: FixedRate
|
|
45
|
+
cron_expression: str
|
|
46
|
+
kickoff_time_input_arg: str
|
|
47
|
+
def __init__(self, rate: _Optional[_Union[FixedRate, _Mapping]] = ..., cron_expression: _Optional[str] = ..., kickoff_time_input_arg: _Optional[str] = ...) -> None: ...
|
|
48
|
+
|
|
49
|
+
class TriggerAutomationSpec(_message.Message):
|
|
50
|
+
__slots__ = ["type", "schedule"]
|
|
51
|
+
class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
52
|
+
__slots__ = []
|
|
53
|
+
TYPE_UNSPECIFIED: _ClassVar[TriggerAutomationSpec.Type]
|
|
54
|
+
TYPE_NONE: _ClassVar[TriggerAutomationSpec.Type]
|
|
55
|
+
TYPE_SCHEDULE: _ClassVar[TriggerAutomationSpec.Type]
|
|
56
|
+
TYPE_UNSPECIFIED: TriggerAutomationSpec.Type
|
|
57
|
+
TYPE_NONE: TriggerAutomationSpec.Type
|
|
58
|
+
TYPE_SCHEDULE: TriggerAutomationSpec.Type
|
|
59
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
SCHEDULE_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
type: TriggerAutomationSpec.Type
|
|
62
|
+
schedule: Schedule
|
|
63
|
+
def __init__(self, type: _Optional[_Union[TriggerAutomationSpec.Type, str]] = ..., schedule: _Optional[_Union[Schedule, _Mapping]] = ...) -> None: ...
|
|
@@ -20,7 +20,7 @@ from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__defin
|
|
|
20
20
|
from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cworkflow/queue_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\
|
|
23
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cworkflow/queue_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\xbf\x04\n\x14\x45nqueueActionRequest\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12\x31\n\x12parent_action_name\x18\x02 \x01(\tH\x01R\x10parentActionName\x88\x01\x01\x12\x35\n\x08run_spec\x18\x03 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec\x12$\n\tinput_uri\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x08inputUri\x12/\n\x0frun_output_base\x18\x07 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\rrunOutputBase\x12\x14\n\x05group\x18\x08 \x01(\tR\x05group\x12\x18\n\x07subject\x18\t \x01(\tR\x07subject\x12=\n\x04task\x18\n \x01(\x0b\x32\x1d.cloudidl.workflow.TaskActionB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x04task\x12@\n\x05trace\x18\x0b \x01(\x0b\x32\x1e.cloudidl.workflow.TraceActionB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05trace\x12L\n\tcondition\x18\x0c \x01(\x0b\x32\".cloudidl.workflow.ConditionActionB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tconditionB\x06\n\x04specB\x15\n\x13_parent_action_name\"\xcf\x01\n\nTaskAction\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierR\x02id\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12\x39\n\tcache_key\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueR\x08\x63\x61\x63heKey\x12\x18\n\x07\x63luster\x18\x04 \x01(\tR\x07\x63luster\"\xd9\x02\n\x0bTraceAction\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x04name\x12.\n\x05phase\x18\x02 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x12=\n\x07outputs\x18\x05 \x01(\x0b\x32#.cloudidl.workflow.OutputReferencesR\x07outputs\x12:\n\x04spec\x18\x06 \x01(\x0b\x32\x1c.cloudidl.workflow.TraceSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04specB\x0b\n\t_end_time\"\x8a\x02\n\x0f\x43onditionAction\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x04name\x12 \n\x06run_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x05runId\x12&\n\taction_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x08\x61\x63tionId\x12\x18\n\x06global\x18\x04 \x01(\x08H\x00R\x06global\x12.\n\x04type\x18\x06 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x16\n\x06prompt\x18\x07 \x01(\tR\x06prompt\x12 \n\x0b\x64\x65scription\x18\x08 \x01(\tR\x0b\x64\x65scriptionB\x0c\n\x05scope\x12\x03\xf8\x42\x01\"\x17\n\x15\x45nqueueActionResponse\"\x80\x01\n\x15\x41\x62ortQueuedRunRequest\x12?\n\x06run_id\x18\x01 \x01(\x0b\x32\x1e.cloudidl.common.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\x12\x1b\n\x06reason\x18\x02 \x01(\tH\x00R\x06reason\x88\x01\x01\x42\t\n\x07_reason\"\x18\n\x16\x41\x62ortQueuedRunResponse\"\x8c\x01\n\x18\x41\x62ortQueuedActionRequest\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12\x1b\n\x06reason\x18\x02 \x01(\tH\x00R\x06reason\x88\x01\x01\x42\t\n\x07_reason\"\x1b\n\x19\x41\x62ortQueuedActionResponse\"\x7f\n\x10WorkerIdentifier\x12+\n\x0corganization\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0corganization\x12!\n\x07\x63luster\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x07\x63luster\x12\x1b\n\x04name\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x04name\"\x80\x03\n\x10HeartbeatRequest\x12J\n\tworker_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.WorkerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08workerId\x12M\n\x11\x61\x63tive_action_ids\x18\x02 \x03(\x0b\x32!.cloudidl.common.ActionIdentifierR\x0f\x61\x63tiveActionIds\x12Q\n\x13terminal_action_ids\x18\x03 \x03(\x0b\x32!.cloudidl.common.ActionIdentifierR\x11terminalActionIds\x12O\n\x12\x61\x62orted_action_ids\x18\x04 \x03(\x0b\x32!.cloudidl.common.ActionIdentifierR\x10\x61\x62ortedActionIds\x12-\n\x12\x61vailable_capacity\x18\x05 \x01(\x05R\x11\x61vailableCapacity\"\xe2\x01\n\x11HeartbeatResponse\x12\x37\n\nnew_leases\x18\x01 \x03(\x0b\x32\x18.cloudidl.workflow.LeaseR\tnewLeases\x12?\n\x0e\x61\x62orted_leases\x18\x02 \x03(\x0b\x32\x18.cloudidl.workflow.LeaseR\rabortedLeases\x12S\n\x14\x66inalized_action_ids\x18\x03 \x03(\x0b\x32!.cloudidl.common.ActionIdentifierR\x12\x66inalizedActionIds\"a\n\x13StreamLeasesRequest\x12J\n\tworker_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.WorkerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08workerId\"H\n\x14StreamLeasesResponse\x12\x30\n\x06leases\x18\x01 \x03(\x0b\x32\x18.cloudidl.workflow.LeaseR\x06leases\"\xc9\x04\n\x05Lease\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12\x31\n\x12parent_action_name\x18\x02 \x01(\tH\x01R\x10parentActionName\x88\x01\x01\x12\x35\n\x08run_spec\x18\x03 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec\x12$\n\tinput_uri\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x08inputUri\x12/\n\x0frun_output_base\x18\x05 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\rrunOutputBase\x12=\n\x04task\x18\x06 \x01(\x0b\x32\x1d.cloudidl.workflow.TaskActionB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x04task\x12L\n\tcondition\x18\x07 \x01(\x0b\x32\".cloudidl.workflow.ConditionActionB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tcondition\x12@\n\x05trace\x18\n \x01(\x0b\x32\x1e.cloudidl.workflow.TraceActionB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05trace\x12\x14\n\x05group\x18\x08 \x01(\tR\x05group\x12\x18\n\x07subject\x18\t \x01(\tR\x07subject\x12\x12\n\x04host\x18\x0b \x01(\tR\x04hostB\x0b\n\x04spec\x12\x03\xf8\x42\x01\x42\x15\n\x13_parent_action_name2\x92\x04\n\x0cQueueService\x12\x64\n\rEnqueueAction\x12\'.cloudidl.workflow.EnqueueActionRequest\x1a(.cloudidl.workflow.EnqueueActionResponse\"\x00\x12g\n\x0e\x41\x62ortQueuedRun\x12(.cloudidl.workflow.AbortQueuedRunRequest\x1a).cloudidl.workflow.AbortQueuedRunResponse\"\x00\x12p\n\x11\x41\x62ortQueuedAction\x12+.cloudidl.workflow.AbortQueuedActionRequest\x1a,.cloudidl.workflow.AbortQueuedActionResponse\"\x00\x12\\\n\tHeartbeat\x12#.cloudidl.workflow.HeartbeatRequest\x1a$.cloudidl.workflow.HeartbeatResponse\"\x00(\x01\x30\x01\x12\x63\n\x0cStreamLeases\x12&.cloudidl.workflow.StreamLeasesRequest\x1a\'.cloudidl.workflow.StreamLeasesResponse\"\x00\x30\x01\x42\xbe\x01\n\x15\x63om.cloudidl.workflowB\x11QueueServiceProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
|
|
24
24
|
|
|
25
25
|
_globals = globals()
|
|
26
26
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -28,12 +28,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.queue_service_pb2'
|
|
|
28
28
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
29
29
|
DESCRIPTOR._options = None
|
|
30
30
|
DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\021QueueServiceProtoH\002P\001Z+github.com/unionai/cloud/gen/pb-go/workflow\242\002\003CWX\252\002\021Cloudidl.Workflow\312\002\021Cloudidl\\Workflow\342\002\035Cloudidl\\Workflow\\GPBMetadata\352\002\022Cloudidl::Workflow'
|
|
31
|
-
_WORKERIDENTIFIER.fields_by_name['organization']._options = None
|
|
32
|
-
_WORKERIDENTIFIER.fields_by_name['organization']._serialized_options = b'\372B\004r\002\020\001'
|
|
33
|
-
_WORKERIDENTIFIER.fields_by_name['cluster']._options = None
|
|
34
|
-
_WORKERIDENTIFIER.fields_by_name['cluster']._serialized_options = b'\372B\004r\002\020\001'
|
|
35
|
-
_WORKERIDENTIFIER.fields_by_name['name']._options = None
|
|
36
|
-
_WORKERIDENTIFIER.fields_by_name['name']._serialized_options = b'\372B\004r\002\020\001'
|
|
37
31
|
_ENQUEUEACTIONREQUEST.fields_by_name['action_id']._options = None
|
|
38
32
|
_ENQUEUEACTIONREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
39
33
|
_ENQUEUEACTIONREQUEST.fields_by_name['input_uri']._options = None
|
|
@@ -62,6 +56,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
62
56
|
_CONDITIONACTION.fields_by_name['action_id']._serialized_options = b'\372B\004r\002\020\001'
|
|
63
57
|
_ABORTQUEUEDRUNREQUEST.fields_by_name['run_id']._options = None
|
|
64
58
|
_ABORTQUEUEDRUNREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
59
|
+
_ABORTQUEUEDACTIONREQUEST.fields_by_name['action_id']._options = None
|
|
60
|
+
_ABORTQUEUEDACTIONREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
61
|
+
_WORKERIDENTIFIER.fields_by_name['organization']._options = None
|
|
62
|
+
_WORKERIDENTIFIER.fields_by_name['organization']._serialized_options = b'\372B\004r\002\020\001'
|
|
63
|
+
_WORKERIDENTIFIER.fields_by_name['cluster']._options = None
|
|
64
|
+
_WORKERIDENTIFIER.fields_by_name['cluster']._serialized_options = b'\372B\004r\002\020\001'
|
|
65
|
+
_WORKERIDENTIFIER.fields_by_name['name']._options = None
|
|
66
|
+
_WORKERIDENTIFIER.fields_by_name['name']._serialized_options = b'\372B\004r\002\020\001'
|
|
65
67
|
_HEARTBEATREQUEST.fields_by_name['worker_id']._options = None
|
|
66
68
|
_HEARTBEATREQUEST.fields_by_name['worker_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
67
69
|
_STREAMLEASESREQUEST.fields_by_name['worker_id']._options = None
|
|
@@ -80,32 +82,36 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
80
82
|
_LEASE.fields_by_name['condition']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
81
83
|
_LEASE.fields_by_name['trace']._options = None
|
|
82
84
|
_LEASE.fields_by_name['trace']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
83
|
-
_globals['
|
|
84
|
-
_globals['
|
|
85
|
-
_globals['
|
|
86
|
-
_globals['
|
|
87
|
-
_globals['
|
|
88
|
-
_globals['
|
|
89
|
-
_globals['
|
|
90
|
-
_globals['
|
|
91
|
-
_globals['
|
|
92
|
-
_globals['
|
|
93
|
-
_globals['
|
|
94
|
-
_globals['
|
|
95
|
-
_globals['
|
|
96
|
-
_globals['
|
|
97
|
-
_globals['
|
|
98
|
-
_globals['
|
|
99
|
-
_globals['
|
|
100
|
-
_globals['
|
|
101
|
-
_globals['
|
|
102
|
-
_globals['
|
|
103
|
-
_globals['
|
|
104
|
-
_globals['
|
|
105
|
-
_globals['
|
|
106
|
-
_globals['
|
|
107
|
-
_globals['
|
|
108
|
-
_globals['
|
|
109
|
-
_globals['
|
|
110
|
-
_globals['
|
|
85
|
+
_globals['_ENQUEUEACTIONREQUEST']._serialized_start=257
|
|
86
|
+
_globals['_ENQUEUEACTIONREQUEST']._serialized_end=832
|
|
87
|
+
_globals['_TASKACTION']._serialized_start=835
|
|
88
|
+
_globals['_TASKACTION']._serialized_end=1042
|
|
89
|
+
_globals['_TRACEACTION']._serialized_start=1045
|
|
90
|
+
_globals['_TRACEACTION']._serialized_end=1390
|
|
91
|
+
_globals['_CONDITIONACTION']._serialized_start=1393
|
|
92
|
+
_globals['_CONDITIONACTION']._serialized_end=1659
|
|
93
|
+
_globals['_ENQUEUEACTIONRESPONSE']._serialized_start=1661
|
|
94
|
+
_globals['_ENQUEUEACTIONRESPONSE']._serialized_end=1684
|
|
95
|
+
_globals['_ABORTQUEUEDRUNREQUEST']._serialized_start=1687
|
|
96
|
+
_globals['_ABORTQUEUEDRUNREQUEST']._serialized_end=1815
|
|
97
|
+
_globals['_ABORTQUEUEDRUNRESPONSE']._serialized_start=1817
|
|
98
|
+
_globals['_ABORTQUEUEDRUNRESPONSE']._serialized_end=1841
|
|
99
|
+
_globals['_ABORTQUEUEDACTIONREQUEST']._serialized_start=1844
|
|
100
|
+
_globals['_ABORTQUEUEDACTIONREQUEST']._serialized_end=1984
|
|
101
|
+
_globals['_ABORTQUEUEDACTIONRESPONSE']._serialized_start=1986
|
|
102
|
+
_globals['_ABORTQUEUEDACTIONRESPONSE']._serialized_end=2013
|
|
103
|
+
_globals['_WORKERIDENTIFIER']._serialized_start=2015
|
|
104
|
+
_globals['_WORKERIDENTIFIER']._serialized_end=2142
|
|
105
|
+
_globals['_HEARTBEATREQUEST']._serialized_start=2145
|
|
106
|
+
_globals['_HEARTBEATREQUEST']._serialized_end=2529
|
|
107
|
+
_globals['_HEARTBEATRESPONSE']._serialized_start=2532
|
|
108
|
+
_globals['_HEARTBEATRESPONSE']._serialized_end=2758
|
|
109
|
+
_globals['_STREAMLEASESREQUEST']._serialized_start=2760
|
|
110
|
+
_globals['_STREAMLEASESREQUEST']._serialized_end=2857
|
|
111
|
+
_globals['_STREAMLEASESRESPONSE']._serialized_start=2859
|
|
112
|
+
_globals['_STREAMLEASESRESPONSE']._serialized_end=2931
|
|
113
|
+
_globals['_LEASE']._serialized_start=2934
|
|
114
|
+
_globals['_LEASE']._serialized_end=3519
|
|
115
|
+
_globals['_QUEUESERVICE']._serialized_start=3522
|
|
116
|
+
_globals['_QUEUESERVICE']._serialized_end=4052
|
|
111
117
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -12,16 +12,6 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
|
|
|
12
12
|
|
|
13
13
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
14
14
|
|
|
15
|
-
class WorkerIdentifier(_message.Message):
|
|
16
|
-
__slots__ = ["organization", "cluster", "name"]
|
|
17
|
-
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
-
CLUSTER_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
-
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
-
organization: str
|
|
21
|
-
cluster: str
|
|
22
|
-
name: str
|
|
23
|
-
def __init__(self, organization: _Optional[str] = ..., cluster: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
|
|
24
|
-
|
|
25
15
|
class EnqueueActionRequest(_message.Message):
|
|
26
16
|
__slots__ = ["action_id", "parent_action_name", "run_spec", "input_uri", "run_output_base", "group", "subject", "task", "trace", "condition"]
|
|
27
17
|
ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -96,15 +86,39 @@ class EnqueueActionResponse(_message.Message):
|
|
|
96
86
|
def __init__(self) -> None: ...
|
|
97
87
|
|
|
98
88
|
class AbortQueuedRunRequest(_message.Message):
|
|
99
|
-
__slots__ = ["run_id"]
|
|
89
|
+
__slots__ = ["run_id", "reason"]
|
|
100
90
|
RUN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
101
92
|
run_id: _identifier_pb2.RunIdentifier
|
|
102
|
-
|
|
93
|
+
reason: str
|
|
94
|
+
def __init__(self, run_id: _Optional[_Union[_identifier_pb2.RunIdentifier, _Mapping]] = ..., reason: _Optional[str] = ...) -> None: ...
|
|
103
95
|
|
|
104
96
|
class AbortQueuedRunResponse(_message.Message):
|
|
105
97
|
__slots__ = []
|
|
106
98
|
def __init__(self) -> None: ...
|
|
107
99
|
|
|
100
|
+
class AbortQueuedActionRequest(_message.Message):
|
|
101
|
+
__slots__ = ["action_id", "reason"]
|
|
102
|
+
ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
action_id: _identifier_pb2.ActionIdentifier
|
|
105
|
+
reason: str
|
|
106
|
+
def __init__(self, action_id: _Optional[_Union[_identifier_pb2.ActionIdentifier, _Mapping]] = ..., reason: _Optional[str] = ...) -> None: ...
|
|
107
|
+
|
|
108
|
+
class AbortQueuedActionResponse(_message.Message):
|
|
109
|
+
__slots__ = []
|
|
110
|
+
def __init__(self) -> None: ...
|
|
111
|
+
|
|
112
|
+
class WorkerIdentifier(_message.Message):
|
|
113
|
+
__slots__ = ["organization", "cluster", "name"]
|
|
114
|
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
CLUSTER_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
+
organization: str
|
|
118
|
+
cluster: str
|
|
119
|
+
name: str
|
|
120
|
+
def __init__(self, organization: _Optional[str] = ..., cluster: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
|
|
121
|
+
|
|
108
122
|
class HeartbeatRequest(_message.Message):
|
|
109
123
|
__slots__ = ["worker_id", "active_action_ids", "terminal_action_ids", "aborted_action_ids", "available_capacity"]
|
|
110
124
|
WORKER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -25,6 +25,11 @@ class QueueServiceStub(object):
|
|
|
25
25
|
request_serializer=workflow_dot_queue__service__pb2.AbortQueuedRunRequest.SerializeToString,
|
|
26
26
|
response_deserializer=workflow_dot_queue__service__pb2.AbortQueuedRunResponse.FromString,
|
|
27
27
|
)
|
|
28
|
+
self.AbortQueuedAction = channel.unary_unary(
|
|
29
|
+
'/cloudidl.workflow.QueueService/AbortQueuedAction',
|
|
30
|
+
request_serializer=workflow_dot_queue__service__pb2.AbortQueuedActionRequest.SerializeToString,
|
|
31
|
+
response_deserializer=workflow_dot_queue__service__pb2.AbortQueuedActionResponse.FromString,
|
|
32
|
+
)
|
|
28
33
|
self.Heartbeat = channel.stream_stream(
|
|
29
34
|
'/cloudidl.workflow.QueueService/Heartbeat',
|
|
30
35
|
request_serializer=workflow_dot_queue__service__pb2.HeartbeatRequest.SerializeToString,
|
|
@@ -55,6 +60,13 @@ class QueueServiceServicer(object):
|
|
|
55
60
|
context.set_details('Method not implemented!')
|
|
56
61
|
raise NotImplementedError('Method not implemented!')
|
|
57
62
|
|
|
63
|
+
def AbortQueuedAction(self, request, context):
|
|
64
|
+
"""AbortAction aborts a single action that was previously queued or is currently being processed by a worker.
|
|
65
|
+
"""
|
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
+
context.set_details('Method not implemented!')
|
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
|
+
|
|
58
70
|
def Heartbeat(self, request_iterator, context):
|
|
59
71
|
"""heartbeat is used by workers to report their status and acquire new leases.
|
|
60
72
|
"""
|
|
@@ -82,6 +94,11 @@ def add_QueueServiceServicer_to_server(servicer, server):
|
|
|
82
94
|
request_deserializer=workflow_dot_queue__service__pb2.AbortQueuedRunRequest.FromString,
|
|
83
95
|
response_serializer=workflow_dot_queue__service__pb2.AbortQueuedRunResponse.SerializeToString,
|
|
84
96
|
),
|
|
97
|
+
'AbortQueuedAction': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.AbortQueuedAction,
|
|
99
|
+
request_deserializer=workflow_dot_queue__service__pb2.AbortQueuedActionRequest.FromString,
|
|
100
|
+
response_serializer=workflow_dot_queue__service__pb2.AbortQueuedActionResponse.SerializeToString,
|
|
101
|
+
),
|
|
85
102
|
'Heartbeat': grpc.stream_stream_rpc_method_handler(
|
|
86
103
|
servicer.Heartbeat,
|
|
87
104
|
request_deserializer=workflow_dot_queue__service__pb2.HeartbeatRequest.FromString,
|
|
@@ -137,6 +154,23 @@ class QueueService(object):
|
|
|
137
154
|
options, channel_credentials,
|
|
138
155
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
139
156
|
|
|
157
|
+
@staticmethod
|
|
158
|
+
def AbortQueuedAction(request,
|
|
159
|
+
target,
|
|
160
|
+
options=(),
|
|
161
|
+
channel_credentials=None,
|
|
162
|
+
call_credentials=None,
|
|
163
|
+
insecure=False,
|
|
164
|
+
compression=None,
|
|
165
|
+
wait_for_ready=None,
|
|
166
|
+
timeout=None,
|
|
167
|
+
metadata=None):
|
|
168
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.QueueService/AbortQueuedAction',
|
|
169
|
+
workflow_dot_queue__service__pb2.AbortQueuedActionRequest.SerializeToString,
|
|
170
|
+
workflow_dot_queue__service__pb2.AbortQueuedActionResponse.FromString,
|
|
171
|
+
options, channel_credentials,
|
|
172
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
173
|
+
|
|
140
174
|
@staticmethod
|
|
141
175
|
def Heartbeat(request_iterator,
|
|
142
176
|
target,
|
|
@@ -22,7 +22,7 @@ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validat
|
|
|
22
22
|
from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dworkflow/run_definition.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x15\x63ommon/identity.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\x1a\x1eworkflow/task_definition.proto\"\x82\x01\n\x06Labels\x12=\n\x06values\x18\x01 \x03(\x0b\x32%.cloudidl.workflow.Labels.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x8c\x01\n\x0b\x41nnotations\x12\x42\n\x06values\x18\x01 \x03(\x0b\x32*.cloudidl.workflow.Annotations.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\";\n\x04\x45nvs\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x06values\"\xb0\x02\n\x07RunSpec\x12\x31\n\x06labels\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.LabelsR\x06labels\x12@\n\x0b\x61nnotations\x18\x02 \x01(\x0b\x32\x1e.cloudidl.workflow.AnnotationsR\x0b\x61nnotations\x12+\n\x04\x65nvs\x18\x03 \x01(\x0b\x32\x17.cloudidl.workflow.EnvsR\x04\x65nvs\x12@\n\rinterruptible\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x05 \x01(\x08R\x0eoverwriteCache\x12\x18\n\x07\x63luster\x18\x06 \x01(\tR\x07\x63luster\"8\n\x03Run\x12\x31\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.ActionR\x06\x61\x63tion\"}\n\nRunDetails\x12\x35\n\x08run_spec\x18\x01 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec\x12\x38\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x06\x61\x63tion\"\x83\x01\n\x12TaskActionMetadata\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierR\x02id\x12\x1b\n\ttask_type\x18\x02 \x01(\tR\x08taskType\x12\x1d\n\nshort_name\x18\x03 \x01(\tR\tshortName\")\n\x13TraceActionMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\x9f\x01\n\x17\x43onditionActionMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x06run_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x05runId\x12&\n\taction_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x08\x61\x63tionId\x12\x18\n\x06global\x18\x04 \x01(\x08H\x00R\x06globalB\x0c\n\x05scope\x12\x03\xf8\x42\x01\"\xb1\x03\n\x0e\x41\x63tionMetadata\x12\x16\n\x06parent\x18\x03 \x01(\tR\x06parent\x12\x14\n\x05group\x18\x05 \x01(\tR\x05group\x12\x42\n\x0b\x65xecuted_by\x18\x06 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityR\nexecutedBy\x12\x45\n\x04task\x18\x07 \x01(\x0b\x32%.cloudidl.workflow.TaskActionMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x04task\x12H\n\x05trace\x18\x08 \x01(\x0b\x32&.cloudidl.workflow.TraceActionMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05trace\x12T\n\tcondition\x18\t \x01(\x0b\x32*.cloudidl.workflow.ConditionActionMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tcondition\x12>\n\x0b\x61\x63tion_type\x18\n \x01(\x0e\x32\x1d.cloudidl.workflow.ActionTypeR\nactionTypeB\x06\n\x04spec\"\xad\x02\n\x0c\x41\x63tionStatus\x12.\n\x05phase\x18\x01 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x12#\n\x08\x61ttempts\x18\x04 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x08\x61ttempts\x12\x44\n\x0c\x63\x61\x63he_status\x18\x05 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatusB\x0b\n\t_end_time\"\xb3\x01\n\x06\x41\x63tion\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierR\x02id\x12=\n\x08metadata\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.ActionMetadataR\x08metadata\x12\x37\n\x06status\x18\x03 \x01(\x0b\x32\x1f.cloudidl.workflow.ActionStatusR\x06status\"\x9e\x02\n\x0e\x45nrichedAction\x12\x31\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.ActionR\x06\x61\x63tion\x12!\n\x0cmeets_filter\x18\x02 \x01(\x08R\x0bmeetsFilter\x12n\n\x15\x63hildren_phase_counts\x18\x03 \x03(\x0b\x32:.cloudidl.workflow.EnrichedAction.ChildrenPhaseCountsEntryR\x13\x63hildrenPhaseCounts\x1a\x46\n\x18\x43hildrenPhaseCountsEntry\x12\x10\n\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n\x05value\x18\x02 \x01(\x05R\x05value:\x02\x38\x01\"\x9a\x01\n\tErrorInfo\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message\x12\x35\n\x04kind\x18\x02 \x01(\x0e\x32!.cloudidl.workflow.ErrorInfo.KindR\x04kind\"<\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\r\n\tKIND_USER\x10\x01\x12\x0f\n\x0bKIND_SYSTEM\x10\x02\"e\n\tAbortInfo\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\x12@\n\naborted_by\x18\x02 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityR\tabortedBy\"\xf1\x03\n\rActionDetails\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierR\x02id\x12=\n\x08metadata\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.ActionMetadataR\x08metadata\x12\x37\n\x06status\x18\x03 \x01(\x0b\x32\x1f.cloudidl.workflow.ActionStatusR\x06status\x12=\n\nerror_info\x18\x04 \x01(\x0b\x32\x1c.cloudidl.workflow.ErrorInfoH\x00R\terrorInfo\x12=\n\nabort_info\x18\x05 \x01(\x0b\x32\x1c.cloudidl.workflow.AbortInfoH\x00R\tabortInfo\x12\x31\n\x04task\x18\x06 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecH\x01R\x04task\x12\x34\n\x05trace\x18\x08 \x01(\x0b\x32\x1c.cloudidl.workflow.TraceSpecH\x01R\x05trace\x12<\n\x08\x61ttempts\x18\x07 \x03(\x0b\x32 .cloudidl.workflow.ActionAttemptR\x08\x61ttemptsB\x08\n\x06resultB\x06\n\x04spec\"\x85\x06\n\rActionAttempt\x12.\n\x05phase\x18\x01 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x12@\n\nerror_info\x18\x04 \x01(\x0b\x32\x1c.cloudidl.workflow.ErrorInfoH\x01R\terrorInfo\x88\x01\x01\x12!\n\x07\x61ttempt\x18\x05 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x07\x61ttempt\x12\x31\n\x08log_info\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x07logInfo\x12=\n\x07outputs\x18\x07 \x01(\x0b\x32#.cloudidl.workflow.OutputReferencesR\x07outputs\x12%\n\x0elogs_available\x18\x08 \x01(\x08R\rlogsAvailable\x12\x44\n\x0c\x63\x61\x63he_status\x18\t \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12\x46\n\x0e\x63luster_events\x18\n \x03(\x0b\x32\x1f.cloudidl.workflow.ClusterEventR\rclusterEvents\x12O\n\x11phase_transitions\x18\x0b \x03(\x0b\x32\".cloudidl.workflow.PhaseTransitionR\x10phaseTransitions\x12\x18\n\x07\x63luster\x18\x0c \x01(\tR\x07\x63luster\x12:\n\x0blog_context\x18\r \x01(\x0b\x32\x19.flyteidl.core.LogContextR\nlogContextB\x0b\n\t_end_timeB\r\n\x0b_error_info\"e\n\x0c\x43lusterEvent\x12;\n\x0boccurred_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"\xc5\x01\n\x0fPhaseTransition\x12.\n\x05phase\x18\x01 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x42\x0b\n\t_end_time\"\xea\x06\n\x0b\x41\x63tionEvent\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12!\n\x07\x61ttempt\x18\x02 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x07\x61ttempt\x12.\n\x05phase\x18\x03 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x18\n\x07version\x18\x04 \x01(\rR\x07version\x12=\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01R\tstartTime\x12=\n\x0cupdated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bupdatedTime\x12>\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01H\x00R\x07\x65ndTime\x88\x01\x01\x12@\n\nerror_info\x18\x08 \x01(\x0b\x32\x1c.cloudidl.workflow.ErrorInfoH\x01R\terrorInfo\x88\x01\x01\x12\x31\n\x08log_info\x18\t \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x07logInfo\x12:\n\x0blog_context\x18\n \x01(\x0b\x32\x19.flyteidl.core.LogContextR\nlogContext\x12\x18\n\x07\x63luster\x18\x0b \x01(\tR\x07\x63luster\x12=\n\x07outputs\x18\x0c \x01(\x0b\x32#.cloudidl.workflow.OutputReferencesR\x07outputs\x12\x44\n\x0c\x63\x61\x63he_status\x18\r \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12\x46\n\x0e\x63luster_events\x18\x0e \x03(\x0b\x32\x1f.cloudidl.workflow.ClusterEventR\rclusterEvents\x12?\n\rreported_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0creportedTimeB\x0b\n\t_end_timeB\r\n\x0b_error_info\"P\n\x0cNamedLiteral\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"P\n\x10OutputReferences\x12\x1d\n\noutput_uri\x18\x01 \x01(\tR\toutputUri\x12\x1d\n\nreport_uri\x18\x02 \x01(\tR\treportUri\"|\n\x06Inputs\x12;\n\x08literals\x18\x01 \x03(\x0b\x32\x1f.cloudidl.workflow.NamedLiteralR\x08literals\x12\x35\n\x07\x63ontext\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x07\x63ontext\"F\n\x07Outputs\x12;\n\x08literals\x18\x01 \x03(\x0b\x32\x1f.cloudidl.workflow.NamedLiteralR\x08literals*\xcb\x01\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPHASE_QUEUED\x10\x01\x12\x1f\n\x1bPHASE_WAITING_FOR_RESOURCES\x10\x02\x12\x16\n\x12PHASE_INITIALIZING\x10\x03\x12\x11\n\rPHASE_RUNNING\x10\x04\x12\x13\n\x0fPHASE_SUCCEEDED\x10\x05\x12\x10\n\x0cPHASE_FAILED\x10\x06\x12\x11\n\rPHASE_ABORTED\x10\x07\x12\x13\n\x0fPHASE_TIMED_OUT\x10\x08*q\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x43TION_TYPE_TASK\x10\x01\x12\x15\n\x11\x41\x43TION_TYPE_TRACE\x10\x02\x12\x19\n\x15\x41\x43TION_TYPE_CONDITION\x10\x03\x42\xbf\x01\n\x15\x63om.cloudidl.workflowB\x12RunDefinitionProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
|
|
25
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dworkflow/run_definition.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x15\x63ommon/identity.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\x1a\x1eworkflow/task_definition.proto\"\x82\x01\n\x06Labels\x12=\n\x06values\x18\x01 \x03(\x0b\x32%.cloudidl.workflow.Labels.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x8c\x01\n\x0b\x41nnotations\x12\x42\n\x06values\x18\x01 \x03(\x0b\x32*.cloudidl.workflow.Annotations.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\";\n\x04\x45nvs\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x06values\"\xb0\x02\n\x07RunSpec\x12\x31\n\x06labels\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.LabelsR\x06labels\x12@\n\x0b\x61nnotations\x18\x02 \x01(\x0b\x32\x1e.cloudidl.workflow.AnnotationsR\x0b\x61nnotations\x12+\n\x04\x65nvs\x18\x03 \x01(\x0b\x32\x17.cloudidl.workflow.EnvsR\x04\x65nvs\x12@\n\rinterruptible\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x05 \x01(\x08R\x0eoverwriteCache\x12\x18\n\x07\x63luster\x18\x06 \x01(\tR\x07\x63luster\"8\n\x03Run\x12\x31\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.ActionR\x06\x61\x63tion\"}\n\nRunDetails\x12\x35\n\x08run_spec\x18\x01 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec\x12\x38\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x06\x61\x63tion\"\x83\x01\n\x12TaskActionMetadata\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierR\x02id\x12\x1b\n\ttask_type\x18\x02 \x01(\tR\x08taskType\x12\x1d\n\nshort_name\x18\x03 \x01(\tR\tshortName\")\n\x13TraceActionMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\x9f\x01\n\x17\x43onditionActionMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x06run_id\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x05runId\x12&\n\taction_id\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x08\x61\x63tionId\x12\x18\n\x06global\x18\x04 \x01(\x08H\x00R\x06globalB\x0c\n\x05scope\x12\x03\xf8\x42\x01\"\xf4\x03\n\x0e\x41\x63tionMetadata\x12\x16\n\x06parent\x18\x03 \x01(\tR\x06parent\x12\x14\n\x05group\x18\x05 \x01(\tR\x05group\x12\x42\n\x0b\x65xecuted_by\x18\x06 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityR\nexecutedBy\x12\x45\n\x04task\x18\x07 \x01(\x0b\x32%.cloudidl.workflow.TaskActionMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x04task\x12H\n\x05trace\x18\x08 \x01(\x0b\x32&.cloudidl.workflow.TraceActionMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05trace\x12T\n\tcondition\x18\t \x01(\x0b\x32*.cloudidl.workflow.ConditionActionMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tcondition\x12>\n\x0b\x61\x63tion_type\x18\n \x01(\x0e\x32\x1d.cloudidl.workflow.ActionTypeR\nactionType\x12\x41\n\ntrigger_id\x18\x0b \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierR\ttriggerIdB\x06\n\x04spec\"\xad\x02\n\x0c\x41\x63tionStatus\x12.\n\x05phase\x18\x01 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x12#\n\x08\x61ttempts\x18\x04 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x08\x61ttempts\x12\x44\n\x0c\x63\x61\x63he_status\x18\x05 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatusB\x0b\n\t_end_time\"\xb3\x01\n\x06\x41\x63tion\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierR\x02id\x12=\n\x08metadata\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.ActionMetadataR\x08metadata\x12\x37\n\x06status\x18\x03 \x01(\x0b\x32\x1f.cloudidl.workflow.ActionStatusR\x06status\"\x9e\x02\n\x0e\x45nrichedAction\x12\x31\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.ActionR\x06\x61\x63tion\x12!\n\x0cmeets_filter\x18\x02 \x01(\x08R\x0bmeetsFilter\x12n\n\x15\x63hildren_phase_counts\x18\x03 \x03(\x0b\x32:.cloudidl.workflow.EnrichedAction.ChildrenPhaseCountsEntryR\x13\x63hildrenPhaseCounts\x1a\x46\n\x18\x43hildrenPhaseCountsEntry\x12\x10\n\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n\x05value\x18\x02 \x01(\x05R\x05value:\x02\x38\x01\"\x9a\x01\n\tErrorInfo\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message\x12\x35\n\x04kind\x18\x02 \x01(\x0e\x32!.cloudidl.workflow.ErrorInfo.KindR\x04kind\"<\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\r\n\tKIND_USER\x10\x01\x12\x0f\n\x0bKIND_SYSTEM\x10\x02\"e\n\tAbortInfo\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\x12@\n\naborted_by\x18\x02 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityR\tabortedBy\"\xf1\x03\n\rActionDetails\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierR\x02id\x12=\n\x08metadata\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.ActionMetadataR\x08metadata\x12\x37\n\x06status\x18\x03 \x01(\x0b\x32\x1f.cloudidl.workflow.ActionStatusR\x06status\x12=\n\nerror_info\x18\x04 \x01(\x0b\x32\x1c.cloudidl.workflow.ErrorInfoH\x00R\terrorInfo\x12=\n\nabort_info\x18\x05 \x01(\x0b\x32\x1c.cloudidl.workflow.AbortInfoH\x00R\tabortInfo\x12\x31\n\x04task\x18\x06 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecH\x01R\x04task\x12\x34\n\x05trace\x18\x08 \x01(\x0b\x32\x1c.cloudidl.workflow.TraceSpecH\x01R\x05trace\x12<\n\x08\x61ttempts\x18\x07 \x03(\x0b\x32 .cloudidl.workflow.ActionAttemptR\x08\x61ttemptsB\x08\n\x06resultB\x06\n\x04spec\"\x85\x06\n\rActionAttempt\x12.\n\x05phase\x18\x01 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x12@\n\nerror_info\x18\x04 \x01(\x0b\x32\x1c.cloudidl.workflow.ErrorInfoH\x01R\terrorInfo\x88\x01\x01\x12!\n\x07\x61ttempt\x18\x05 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x07\x61ttempt\x12\x31\n\x08log_info\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x07logInfo\x12=\n\x07outputs\x18\x07 \x01(\x0b\x32#.cloudidl.workflow.OutputReferencesR\x07outputs\x12%\n\x0elogs_available\x18\x08 \x01(\x08R\rlogsAvailable\x12\x44\n\x0c\x63\x61\x63he_status\x18\t \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12\x46\n\x0e\x63luster_events\x18\n \x03(\x0b\x32\x1f.cloudidl.workflow.ClusterEventR\rclusterEvents\x12O\n\x11phase_transitions\x18\x0b \x03(\x0b\x32\".cloudidl.workflow.PhaseTransitionR\x10phaseTransitions\x12\x18\n\x07\x63luster\x18\x0c \x01(\tR\x07\x63luster\x12:\n\x0blog_context\x18\r \x01(\x0b\x32\x19.flyteidl.core.LogContextR\nlogContextB\x0b\n\t_end_timeB\r\n\x0b_error_info\"e\n\x0c\x43lusterEvent\x12;\n\x0boccurred_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"\xc5\x01\n\x0fPhaseTransition\x12.\n\x05phase\x18\x01 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12:\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x07\x65ndTime\x88\x01\x01\x42\x0b\n\t_end_time\"\xea\x06\n\x0b\x41\x63tionEvent\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12!\n\x07\x61ttempt\x18\x02 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x07\x61ttempt\x12.\n\x05phase\x18\x03 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x18\n\x07version\x18\x04 \x01(\rR\x07version\x12=\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01R\tstartTime\x12=\n\x0cupdated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bupdatedTime\x12>\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01H\x00R\x07\x65ndTime\x88\x01\x01\x12@\n\nerror_info\x18\x08 \x01(\x0b\x32\x1c.cloudidl.workflow.ErrorInfoH\x01R\terrorInfo\x88\x01\x01\x12\x31\n\x08log_info\x18\t \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x07logInfo\x12:\n\x0blog_context\x18\n \x01(\x0b\x32\x19.flyteidl.core.LogContextR\nlogContext\x12\x18\n\x07\x63luster\x18\x0b \x01(\tR\x07\x63luster\x12=\n\x07outputs\x18\x0c \x01(\x0b\x32#.cloudidl.workflow.OutputReferencesR\x07outputs\x12\x44\n\x0c\x63\x61\x63he_status\x18\r \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12\x46\n\x0e\x63luster_events\x18\x0e \x03(\x0b\x32\x1f.cloudidl.workflow.ClusterEventR\rclusterEvents\x12?\n\rreported_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0creportedTimeB\x0b\n\t_end_timeB\r\n\x0b_error_info\"P\n\x0cNamedLiteral\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"P\n\x10OutputReferences\x12\x1d\n\noutput_uri\x18\x01 \x01(\tR\toutputUri\x12\x1d\n\nreport_uri\x18\x02 \x01(\tR\treportUri\"|\n\x06Inputs\x12;\n\x08literals\x18\x01 \x03(\x0b\x32\x1f.cloudidl.workflow.NamedLiteralR\x08literals\x12\x35\n\x07\x63ontext\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x07\x63ontext\"F\n\x07Outputs\x12;\n\x08literals\x18\x01 \x03(\x0b\x32\x1f.cloudidl.workflow.NamedLiteralR\x08literals*\xcb\x01\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPHASE_QUEUED\x10\x01\x12\x1f\n\x1bPHASE_WAITING_FOR_RESOURCES\x10\x02\x12\x16\n\x12PHASE_INITIALIZING\x10\x03\x12\x11\n\rPHASE_RUNNING\x10\x04\x12\x13\n\x0fPHASE_SUCCEEDED\x10\x05\x12\x10\n\x0cPHASE_FAILED\x10\x06\x12\x11\n\rPHASE_ABORTED\x10\x07\x12\x13\n\x0fPHASE_TIMED_OUT\x10\x08*q\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x43TION_TYPE_TASK\x10\x01\x12\x15\n\x11\x41\x43TION_TYPE_TRACE\x10\x02\x12\x19\n\x15\x41\x43TION_TYPE_CONDITION\x10\x03\x42\xbf\x01\n\x15\x63om.cloudidl.workflowB\x12RunDefinitionProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
|
|
26
26
|
|
|
27
27
|
_globals = globals()
|
|
28
28
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -60,10 +60,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
60
60
|
_ACTIONEVENT.fields_by_name['start_time']._serialized_options = b'\030\001'
|
|
61
61
|
_ACTIONEVENT.fields_by_name['end_time']._options = None
|
|
62
62
|
_ACTIONEVENT.fields_by_name['end_time']._serialized_options = b'\030\001'
|
|
63
|
-
_globals['_PHASE']._serialized_start=
|
|
64
|
-
_globals['_PHASE']._serialized_end=
|
|
65
|
-
_globals['_ACTIONTYPE']._serialized_start=
|
|
66
|
-
_globals['_ACTIONTYPE']._serialized_end=
|
|
63
|
+
_globals['_PHASE']._serialized_start=5837
|
|
64
|
+
_globals['_PHASE']._serialized_end=6040
|
|
65
|
+
_globals['_ACTIONTYPE']._serialized_start=6042
|
|
66
|
+
_globals['_ACTIONTYPE']._serialized_end=6155
|
|
67
67
|
_globals['_LABELS']._serialized_start=313
|
|
68
68
|
_globals['_LABELS']._serialized_end=443
|
|
69
69
|
_globals['_LABELS_VALUESENTRY']._serialized_start=386
|
|
@@ -87,37 +87,37 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
87
87
|
_globals['_CONDITIONACTIONMETADATA']._serialized_start=1319
|
|
88
88
|
_globals['_CONDITIONACTIONMETADATA']._serialized_end=1478
|
|
89
89
|
_globals['_ACTIONMETADATA']._serialized_start=1481
|
|
90
|
-
_globals['_ACTIONMETADATA']._serialized_end=
|
|
91
|
-
_globals['_ACTIONSTATUS']._serialized_start=
|
|
92
|
-
_globals['_ACTIONSTATUS']._serialized_end=
|
|
93
|
-
_globals['_ACTION']._serialized_start=
|
|
94
|
-
_globals['_ACTION']._serialized_end=
|
|
95
|
-
_globals['_ENRICHEDACTION']._serialized_start=
|
|
96
|
-
_globals['_ENRICHEDACTION']._serialized_end=
|
|
97
|
-
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_start=
|
|
98
|
-
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_end=
|
|
99
|
-
_globals['_ERRORINFO']._serialized_start=
|
|
100
|
-
_globals['_ERRORINFO']._serialized_end=
|
|
101
|
-
_globals['_ERRORINFO_KIND']._serialized_start=
|
|
102
|
-
_globals['_ERRORINFO_KIND']._serialized_end=
|
|
103
|
-
_globals['_ABORTINFO']._serialized_start=
|
|
104
|
-
_globals['_ABORTINFO']._serialized_end=
|
|
105
|
-
_globals['_ACTIONDETAILS']._serialized_start=
|
|
106
|
-
_globals['_ACTIONDETAILS']._serialized_end=
|
|
107
|
-
_globals['_ACTIONATTEMPT']._serialized_start=
|
|
108
|
-
_globals['_ACTIONATTEMPT']._serialized_end=
|
|
109
|
-
_globals['_CLUSTEREVENT']._serialized_start=
|
|
110
|
-
_globals['_CLUSTEREVENT']._serialized_end=
|
|
111
|
-
_globals['_PHASETRANSITION']._serialized_start=
|
|
112
|
-
_globals['_PHASETRANSITION']._serialized_end=
|
|
113
|
-
_globals['_ACTIONEVENT']._serialized_start=
|
|
114
|
-
_globals['_ACTIONEVENT']._serialized_end=
|
|
115
|
-
_globals['_NAMEDLITERAL']._serialized_start=
|
|
116
|
-
_globals['_NAMEDLITERAL']._serialized_end=
|
|
117
|
-
_globals['_OUTPUTREFERENCES']._serialized_start=
|
|
118
|
-
_globals['_OUTPUTREFERENCES']._serialized_end=
|
|
119
|
-
_globals['_INPUTS']._serialized_start=
|
|
120
|
-
_globals['_INPUTS']._serialized_end=
|
|
121
|
-
_globals['_OUTPUTS']._serialized_start=
|
|
122
|
-
_globals['_OUTPUTS']._serialized_end=
|
|
90
|
+
_globals['_ACTIONMETADATA']._serialized_end=1981
|
|
91
|
+
_globals['_ACTIONSTATUS']._serialized_start=1984
|
|
92
|
+
_globals['_ACTIONSTATUS']._serialized_end=2285
|
|
93
|
+
_globals['_ACTION']._serialized_start=2288
|
|
94
|
+
_globals['_ACTION']._serialized_end=2467
|
|
95
|
+
_globals['_ENRICHEDACTION']._serialized_start=2470
|
|
96
|
+
_globals['_ENRICHEDACTION']._serialized_end=2756
|
|
97
|
+
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_start=2686
|
|
98
|
+
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_end=2756
|
|
99
|
+
_globals['_ERRORINFO']._serialized_start=2759
|
|
100
|
+
_globals['_ERRORINFO']._serialized_end=2913
|
|
101
|
+
_globals['_ERRORINFO_KIND']._serialized_start=2853
|
|
102
|
+
_globals['_ERRORINFO_KIND']._serialized_end=2913
|
|
103
|
+
_globals['_ABORTINFO']._serialized_start=2915
|
|
104
|
+
_globals['_ABORTINFO']._serialized_end=3016
|
|
105
|
+
_globals['_ACTIONDETAILS']._serialized_start=3019
|
|
106
|
+
_globals['_ACTIONDETAILS']._serialized_end=3516
|
|
107
|
+
_globals['_ACTIONATTEMPT']._serialized_start=3519
|
|
108
|
+
_globals['_ACTIONATTEMPT']._serialized_end=4292
|
|
109
|
+
_globals['_CLUSTEREVENT']._serialized_start=4294
|
|
110
|
+
_globals['_CLUSTEREVENT']._serialized_end=4395
|
|
111
|
+
_globals['_PHASETRANSITION']._serialized_start=4398
|
|
112
|
+
_globals['_PHASETRANSITION']._serialized_end=4595
|
|
113
|
+
_globals['_ACTIONEVENT']._serialized_start=4598
|
|
114
|
+
_globals['_ACTIONEVENT']._serialized_end=5472
|
|
115
|
+
_globals['_NAMEDLITERAL']._serialized_start=5474
|
|
116
|
+
_globals['_NAMEDLITERAL']._serialized_end=5554
|
|
117
|
+
_globals['_OUTPUTREFERENCES']._serialized_start=5556
|
|
118
|
+
_globals['_OUTPUTREFERENCES']._serialized_end=5636
|
|
119
|
+
_globals['_INPUTS']._serialized_start=5638
|
|
120
|
+
_globals['_INPUTS']._serialized_end=5762
|
|
121
|
+
_globals['_OUTPUTS']._serialized_start=5764
|
|
122
|
+
_globals['_OUTPUTS']._serialized_end=5834
|
|
123
123
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -137,7 +137,7 @@ class ConditionActionMetadata(_message.Message):
|
|
|
137
137
|
def __init__(self, name: _Optional[str] = ..., run_id: _Optional[str] = ..., action_id: _Optional[str] = ..., **kwargs) -> None: ...
|
|
138
138
|
|
|
139
139
|
class ActionMetadata(_message.Message):
|
|
140
|
-
__slots__ = ["parent", "group", "executed_by", "task", "trace", "condition", "action_type"]
|
|
140
|
+
__slots__ = ["parent", "group", "executed_by", "task", "trace", "condition", "action_type", "trigger_id"]
|
|
141
141
|
PARENT_FIELD_NUMBER: _ClassVar[int]
|
|
142
142
|
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
143
143
|
EXECUTED_BY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -145,6 +145,7 @@ class ActionMetadata(_message.Message):
|
|
|
145
145
|
TRACE_FIELD_NUMBER: _ClassVar[int]
|
|
146
146
|
CONDITION_FIELD_NUMBER: _ClassVar[int]
|
|
147
147
|
ACTION_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
TRIGGER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
148
149
|
parent: str
|
|
149
150
|
group: str
|
|
150
151
|
executed_by: _identity_pb2.EnrichedIdentity
|
|
@@ -152,7 +153,8 @@ class ActionMetadata(_message.Message):
|
|
|
152
153
|
trace: TraceActionMetadata
|
|
153
154
|
condition: ConditionActionMetadata
|
|
154
155
|
action_type: ActionType
|
|
155
|
-
|
|
156
|
+
trigger_id: _identifier_pb2.TriggerIdentifier
|
|
157
|
+
def __init__(self, parent: _Optional[str] = ..., group: _Optional[str] = ..., executed_by: _Optional[_Union[_identity_pb2.EnrichedIdentity, _Mapping]] = ..., task: _Optional[_Union[TaskActionMetadata, _Mapping]] = ..., trace: _Optional[_Union[TraceActionMetadata, _Mapping]] = ..., condition: _Optional[_Union[ConditionActionMetadata, _Mapping]] = ..., action_type: _Optional[_Union[ActionType, str]] = ..., trigger_id: _Optional[_Union[_identifier_pb2.TriggerIdentifier, _Mapping]] = ...) -> None: ...
|
|
156
158
|
|
|
157
159
|
class ActionStatus(_message.Message):
|
|
158
160
|
__slots__ = ["phase", "start_time", "end_time", "attempts", "cache_status"]
|