flyte 0.2.0b11__py3-none-any.whl → 0.2.0b12__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/_bin/runtime.py +11 -2
- flyte/_deploy.py +29 -0
- flyte/_initialize.py +7 -6
- flyte/_protos/common/list_pb2.py +3 -3
- flyte/_protos/common/list_pb2.pyi +2 -0
- flyte/_protos/workflow/environment_pb2.py +29 -0
- flyte/_protos/workflow/environment_pb2.pyi +12 -0
- flyte/_protos/workflow/environment_pb2_grpc.py +4 -0
- flyte/_protos/workflow/run_definition_pb2.py +61 -61
- flyte/_protos/workflow/run_definition_pb2.pyi +4 -2
- flyte/_protos/workflow/run_service_pb2.py +20 -24
- flyte/_protos/workflow/run_service_pb2.pyi +2 -6
- flyte/_protos/workflow/task_definition_pb2.py +28 -22
- flyte/_protos/workflow/task_definition_pb2.pyi +16 -4
- flyte/_protos/workflow/task_service_pb2.py +27 -11
- flyte/_protos/workflow/task_service_pb2.pyi +29 -1
- flyte/_protos/workflow/task_service_pb2_grpc.py +34 -0
- flyte/_trace.py +0 -2
- flyte/_utils/__init__.py +4 -0
- flyte/_utils/org_discovery.py +26 -0
- flyte/_version.py +2 -2
- flyte/cli/_abort.py +4 -2
- flyte/cli/_common.py +8 -2
- flyte/cli/_create.py +4 -3
- flyte/cli/_deploy.py +14 -7
- flyte/cli/_get.py +11 -10
- flyte/remote/__init__.py +2 -1
- flyte/remote/_client/_protocols.py +2 -0
- flyte/remote/_task.py +141 -9
- flyte/syncify/_api.py +0 -1
- {flyte-0.2.0b11.dist-info → flyte-0.2.0b12.dist-info}/METADATA +1 -1
- {flyte-0.2.0b11.dist-info → flyte-0.2.0b12.dist-info}/RECORD +35 -32
- {flyte-0.2.0b11.dist-info → flyte-0.2.0b12.dist-info}/WHEEL +0 -0
- {flyte-0.2.0b11.dist-info → flyte-0.2.0b12.dist-info}/entry_points.txt +0 -0
- {flyte-0.2.0b11.dist-info → flyte-0.2.0b12.dist-info}/top_level.txt +0 -0
flyte/_bin/runtime.py
CHANGED
|
@@ -78,7 +78,7 @@ def main(
|
|
|
78
78
|
|
|
79
79
|
import flyte
|
|
80
80
|
import flyte._utils as utils
|
|
81
|
-
from flyte._initialize import
|
|
81
|
+
from flyte._initialize import init
|
|
82
82
|
from flyte._internal.controllers import create_controller
|
|
83
83
|
from flyte._internal.imagebuild.image_builder import ImageCache
|
|
84
84
|
from flyte._internal.runtime.entrypoints import load_and_run_task
|
|
@@ -112,7 +112,16 @@ def main(
|
|
|
112
112
|
logger.debug(f"Using controller endpoint: {ep} with kwargs: {controller_kwargs}")
|
|
113
113
|
|
|
114
114
|
bundle = CodeBundle(tgz=tgz, pkl=pkl, destination=dest, computed_version=version)
|
|
115
|
-
|
|
115
|
+
# We init regular client here so that reference tasks can work
|
|
116
|
+
# Current reference tasks will not work with remote controller, because we create 2 different
|
|
117
|
+
# channels on different threads and this is not supported by grpcio or the auth system. It ends up leading
|
|
118
|
+
# File "src/python/grpcio/grpc/_cython/_cygrpc/aio/completion_queue.pyx.pxi", line 147,
|
|
119
|
+
# in grpc._cython.cygrpc.PollerCompletionQueue._handle_events
|
|
120
|
+
# BlockingIOError: [Errno 11] Resource temporarily unavailable
|
|
121
|
+
# init(org=org, project=project, domain=domain, **controller_kwargs)
|
|
122
|
+
# TODO solution is to use a single channel for both controller and reference tasks, but this requires a refactor
|
|
123
|
+
init()
|
|
124
|
+
# Controller is created with the same kwargs as init, so that it can be used to run tasks
|
|
116
125
|
controller = create_controller(ct="remote", **controller_kwargs)
|
|
117
126
|
|
|
118
127
|
ic = ImageCache.from_transport(image_cache) if image_cache else None
|
flyte/_deploy.py
CHANGED
|
@@ -46,6 +46,35 @@ class Deployment:
|
|
|
46
46
|
)
|
|
47
47
|
return f"Deployment(envs=[{env_names}], tasks=[{task_names_versions}])"
|
|
48
48
|
|
|
49
|
+
def task_repr(self) -> List[List[Tuple[str, str]]]:
|
|
50
|
+
"""
|
|
51
|
+
Returns a detailed representation of the deployed tasks.
|
|
52
|
+
"""
|
|
53
|
+
tuples = []
|
|
54
|
+
if self.deployed_tasks:
|
|
55
|
+
for task in self.deployed_tasks:
|
|
56
|
+
tuples.append(
|
|
57
|
+
[
|
|
58
|
+
("name", task.task_template.id.name),
|
|
59
|
+
("version", task.task_template.id.version),
|
|
60
|
+
]
|
|
61
|
+
)
|
|
62
|
+
return tuples
|
|
63
|
+
|
|
64
|
+
def env_repr(self) -> List[List[Tuple[str, str]]]:
|
|
65
|
+
"""
|
|
66
|
+
Returns a detailed representation of the deployed environments.
|
|
67
|
+
"""
|
|
68
|
+
tuples = []
|
|
69
|
+
for env_name, env in self.envs.items():
|
|
70
|
+
tuples.append(
|
|
71
|
+
[
|
|
72
|
+
("environment", env_name),
|
|
73
|
+
("image", env.image.uri if isinstance(env.image, Image) else env.image or ""),
|
|
74
|
+
]
|
|
75
|
+
)
|
|
76
|
+
return tuples
|
|
77
|
+
|
|
49
78
|
|
|
50
79
|
async def _deploy_task(
|
|
51
80
|
task: TaskTemplate, serialization_context: SerializationContext, dryrun: bool = False
|
flyte/_initialize.py
CHANGED
|
@@ -32,6 +32,7 @@ class CommonInit:
|
|
|
32
32
|
org: str | None = None
|
|
33
33
|
project: str | None = None
|
|
34
34
|
domain: str | None = None
|
|
35
|
+
batch_size: int = 1000
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
@dataclass(init=True, kw_only=True, repr=True, eq=True, frozen=True)
|
|
@@ -130,6 +131,7 @@ async def init(
|
|
|
130
131
|
rpc_retries: int = 3,
|
|
131
132
|
http_proxy_url: str | None = None,
|
|
132
133
|
storage: Storage | None = None,
|
|
134
|
+
batch_size: int = 1000,
|
|
133
135
|
) -> None:
|
|
134
136
|
"""
|
|
135
137
|
Initialize the Flyte system with the given configuration. This method should be called before any other Flyte
|
|
@@ -162,13 +164,12 @@ async def init(
|
|
|
162
164
|
:param insecure: insecure flag for the client
|
|
163
165
|
:param storage: Optional blob store (S3, GCS, Azure) configuration if needed to access (i.e. using Minio)
|
|
164
166
|
:param org: Optional organization override for the client. Should be set by auth instead.
|
|
165
|
-
:param
|
|
167
|
+
:param batch_size: Optional batch size for operations that use listings, defaults to 1000, so limit larger than
|
|
168
|
+
batch_size will be split into multiple requests.
|
|
166
169
|
|
|
167
170
|
:return: None
|
|
168
171
|
"""
|
|
169
|
-
from flyte._utils import get_cwd_editable_install
|
|
170
|
-
|
|
171
|
-
from ._utils.org_discovery import org_from_endpoint
|
|
172
|
+
from flyte._utils import get_cwd_editable_install, org_from_endpoint, sanitize_endpoint
|
|
172
173
|
|
|
173
174
|
interactive_mode = ipython_check()
|
|
174
175
|
|
|
@@ -178,8 +179,7 @@ async def init(
|
|
|
178
179
|
|
|
179
180
|
global _init_config # noqa: PLW0603
|
|
180
181
|
|
|
181
|
-
|
|
182
|
-
endpoint = f"dns:///{endpoint}"
|
|
182
|
+
endpoint = sanitize_endpoint(endpoint)
|
|
183
183
|
|
|
184
184
|
with _init_lock:
|
|
185
185
|
client = None
|
|
@@ -209,6 +209,7 @@ async def init(
|
|
|
209
209
|
client=client,
|
|
210
210
|
storage=storage,
|
|
211
211
|
org=org or org_from_endpoint(endpoint),
|
|
212
|
+
batch_size=batch_size,
|
|
212
213
|
)
|
|
213
214
|
|
|
214
215
|
|
flyte/_protos/common/list_pb2.py
CHANGED
|
@@ -13,7 +13,7 @@ _sym_db = _symbol_database.Default()
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x63ommon/list.proto\x12\x0f\x63loudidl.common\"\x83\x01\n\x04Sort\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12=\n\tdirection\x18\x02 \x01(\x0e\x32\x1f.cloudidl.common.Sort.DirectionR\tdirection\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\xfe\x01\n\x0bListRequest\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x32\n\x07sort_by\x18\x03 \x01(\x0b\x32\x15.cloudidl.common.SortB\x02\x18\x01R\x06sortBy\x12\x31\n\x07\x66ilters\x18\x04 \x03(\x0b\x32\x17.cloudidl.common.FilterR\x07\x66ilters\x12\x1f\n\x0braw_filters\x18\x05 \x03(\tR\nrawFilters\x12;\n\x0esort_by_fields\x18\x06 \x03(\x0b\x32\x15.cloudidl.common.SortR\x0csortByFields\"\
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x63ommon/list.proto\x12\x0f\x63loudidl.common\"\x83\x01\n\x04Sort\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12=\n\tdirection\x18\x02 \x01(\x0e\x32\x1f.cloudidl.common.Sort.DirectionR\tdirection\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\xfe\x01\n\x0bListRequest\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x32\n\x07sort_by\x18\x03 \x01(\x0b\x32\x15.cloudidl.common.SortB\x02\x18\x01R\x06sortBy\x12\x31\n\x07\x66ilters\x18\x04 \x03(\x0b\x32\x17.cloudidl.common.FilterR\x07\x66ilters\x12\x1f\n\x0braw_filters\x18\x05 \x03(\tR\nrawFilters\x12;\n\x0esort_by_fields\x18\x06 \x03(\x0b\x32\x15.cloudidl.common.SortR\x0csortByFields\"\xcc\x02\n\x06\x46ilter\x12<\n\x08\x66unction\x18\x01 \x01(\x0e\x32 .cloudidl.common.Filter.FunctionR\x08\x66unction\x12\x14\n\x05\x66ield\x18\x02 \x01(\tR\x05\x66ield\x12\x16\n\x06values\x18\x03 \x03(\tR\x06values\"\xd5\x01\n\x08\x46unction\x12\t\n\x05\x45QUAL\x10\x00\x12\r\n\tNOT_EQUAL\x10\x01\x12\x10\n\x0cGREATER_THAN\x10\x02\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x05\x12\x0c\n\x08\x43ONTAINS\x10\x06\x12\x0c\n\x08VALUE_IN\x10\x07\x12\r\n\tENDS_WITH\x10\x0c\x12\x11\n\rNOT_ENDS_WITH\x10\r\x12\x1d\n\x19\x43ONTAINS_CASE_INSENSITIVE\x10\x0e\x42\xaa\x01\n\x13\x63om.cloudidl.commonB\tListProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/common\xa2\x02\x03\x43\x43X\xaa\x02\x0f\x43loudidl.Common\xca\x02\x0f\x43loudidl\\Common\xe2\x02\x1b\x43loudidl\\Common\\GPBMetadata\xea\x02\x10\x43loudidl::Commonb\x06proto3')
|
|
17
17
|
|
|
18
18
|
_globals = globals()
|
|
19
19
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -30,7 +30,7 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
30
30
|
_globals['_LISTREQUEST']._serialized_start=173
|
|
31
31
|
_globals['_LISTREQUEST']._serialized_end=427
|
|
32
32
|
_globals['_FILTER']._serialized_start=430
|
|
33
|
-
_globals['_FILTER']._serialized_end=
|
|
33
|
+
_globals['_FILTER']._serialized_end=762
|
|
34
34
|
_globals['_FILTER_FUNCTION']._serialized_start=549
|
|
35
|
-
_globals['_FILTER_FUNCTION']._serialized_end=
|
|
35
|
+
_globals['_FILTER_FUNCTION']._serialized_end=762
|
|
36
36
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -50,6 +50,7 @@ class Filter(_message.Message):
|
|
|
50
50
|
VALUE_IN: _ClassVar[Filter.Function]
|
|
51
51
|
ENDS_WITH: _ClassVar[Filter.Function]
|
|
52
52
|
NOT_ENDS_WITH: _ClassVar[Filter.Function]
|
|
53
|
+
CONTAINS_CASE_INSENSITIVE: _ClassVar[Filter.Function]
|
|
53
54
|
EQUAL: Filter.Function
|
|
54
55
|
NOT_EQUAL: Filter.Function
|
|
55
56
|
GREATER_THAN: Filter.Function
|
|
@@ -60,6 +61,7 @@ class Filter(_message.Message):
|
|
|
60
61
|
VALUE_IN: Filter.Function
|
|
61
62
|
ENDS_WITH: Filter.Function
|
|
62
63
|
NOT_ENDS_WITH: Filter.Function
|
|
64
|
+
CONTAINS_CASE_INSENSITIVE: Filter.Function
|
|
63
65
|
FUNCTION_FIELD_NUMBER: _ClassVar[int]
|
|
64
66
|
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
65
67
|
VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: workflow/environment.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aworkflow/environment.proto\x12\x11\x63loudidl.workflow\x1a\x17validate/validate.proto\",\n\x0b\x45nvironment\x12\x1d\n\x04name\x18\x01 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x04nameB\xbd\x01\n\x15\x63om.cloudidl.workflowB\x10\x45nvironmentProtoH\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
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.environment_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\020EnvironmentProtoH\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
|
+
_ENVIRONMENT.fields_by_name['name']._options = None
|
|
26
|
+
_ENVIRONMENT.fields_by_name['name']._serialized_options = b'\372B\006r\004\020\001\030?'
|
|
27
|
+
_globals['_ENVIRONMENT']._serialized_start=74
|
|
28
|
+
_globals['_ENVIRONMENT']._serialized_end=118
|
|
29
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class Environment(_message.Message):
|
|
9
|
+
__slots__ = ["name"]
|
|
10
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
11
|
+
name: str
|
|
12
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
@@ -21,7 +21,7 @@ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validat
|
|
|
21
21
|
from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
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\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\"\
|
|
24
|
+
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\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\"\x93\x01\n\rRunIdentifier\x12\x1b\n\x03org\x18\x01 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x03org\x12#\n\x07project\x18\x02 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x07project\x12!\n\x06\x64omain\x18\x03 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x06\x64omain\x12\x1d\n\x04name\x18\x04 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18\x1eR\x04name\"\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\"\x96\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\"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\"o\n\x10\x41\x63tionIdentifier\x12<\n\x03run\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x03run\x12\x1d\n\x04name\x18\x02 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18\x1eR\x04name\"\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\"\xf1\x02\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\tconditionB\x06\n\x04spec\"\xe7\x01\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\x61ttemptsB\x0b\n\t_end_time\"\xb5\x01\n\x06\x41\x63tion\x12\x33\n\x02id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.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\"\xcd\x03\n\rActionDetails\x12\x33\n\x02id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.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\x12I\n\x12resolved_task_spec\x18\x06 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecR\x10resolvedTaskSpec\x12<\n\x08\x61ttempts\x18\x07 \x03(\x0b\x32 .cloudidl.workflow.ActionAttemptR\x08\x61ttemptsB\x08\n\x06result\"\xd0\x03\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\rlogsAvailableB\x0b\n\t_end_timeB\r\n\x0b_error_info\"\x95\x05\n\x0b\x41\x63tionEvent\x12=\n\x02id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.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\x39\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\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.TimestampH\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\x07outputsB\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\"1\n\x10OutputReferences\x12\x1d\n\noutput_uri\x18\x01 \x01(\tR\toutputUri\"E\n\x06Inputs\x12;\n\x08literals\x18\x01 \x03(\x0b\x32\x1f.cloudidl.workflow.NamedLiteralR\x08literals\"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\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
25
|
|
|
26
26
|
_globals = globals()
|
|
27
27
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -30,11 +30,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
30
30
|
DESCRIPTOR._options = None
|
|
31
31
|
DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\022RunDefinitionProtoH\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'
|
|
32
32
|
_RUNIDENTIFIER.fields_by_name['org']._options = None
|
|
33
|
-
_RUNIDENTIFIER.fields_by_name['org']._serialized_options = b'\372B\
|
|
33
|
+
_RUNIDENTIFIER.fields_by_name['org']._serialized_options = b'\372B\006r\004\020\001\030?'
|
|
34
34
|
_RUNIDENTIFIER.fields_by_name['project']._options = None
|
|
35
|
-
_RUNIDENTIFIER.fields_by_name['project']._serialized_options = b'\372B\
|
|
35
|
+
_RUNIDENTIFIER.fields_by_name['project']._serialized_options = b'\372B\006r\004\020\001\030?'
|
|
36
36
|
_RUNIDENTIFIER.fields_by_name['domain']._options = None
|
|
37
|
-
_RUNIDENTIFIER.fields_by_name['domain']._serialized_options = b'\372B\
|
|
37
|
+
_RUNIDENTIFIER.fields_by_name['domain']._serialized_options = b'\372B\006r\004\020\001\030?'
|
|
38
38
|
_RUNIDENTIFIER.fields_by_name['name']._options = None
|
|
39
39
|
_RUNIDENTIFIER.fields_by_name['name']._serialized_options = b'\372B\006r\004\020\001\030\036'
|
|
40
40
|
_LABELS_VALUESENTRY._options = None
|
|
@@ -67,62 +67,62 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
67
67
|
_ACTIONEVENT.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
68
68
|
_ACTIONEVENT.fields_by_name['attempt']._options = None
|
|
69
69
|
_ACTIONEVENT.fields_by_name['attempt']._serialized_options = b'\372B\004*\002 \000'
|
|
70
|
-
_globals['_PHASE']._serialized_start=
|
|
71
|
-
_globals['_PHASE']._serialized_end=
|
|
70
|
+
_globals['_PHASE']._serialized_start=4899
|
|
71
|
+
_globals['_PHASE']._serialized_end=5102
|
|
72
72
|
_globals['_RUNIDENTIFIER']._serialized_start=284
|
|
73
|
-
_globals['_RUNIDENTIFIER']._serialized_end=
|
|
74
|
-
_globals['_LABELS']._serialized_start=
|
|
75
|
-
_globals['_LABELS']._serialized_end=
|
|
76
|
-
_globals['_LABELS_VALUESENTRY']._serialized_start=
|
|
77
|
-
_globals['_LABELS_VALUESENTRY']._serialized_end=
|
|
78
|
-
_globals['_ANNOTATIONS']._serialized_start=
|
|
79
|
-
_globals['_ANNOTATIONS']._serialized_end=
|
|
80
|
-
_globals['_ANNOTATIONS_VALUESENTRY']._serialized_start=
|
|
81
|
-
_globals['_ANNOTATIONS_VALUESENTRY']._serialized_end=
|
|
82
|
-
_globals['_ENVS']._serialized_start=
|
|
83
|
-
_globals['_ENVS']._serialized_end=
|
|
84
|
-
_globals['_RUNSPEC']._serialized_start=
|
|
85
|
-
_globals['_RUNSPEC']._serialized_end=
|
|
86
|
-
_globals['_RUN']._serialized_start=
|
|
87
|
-
_globals['_RUN']._serialized_end=
|
|
88
|
-
_globals['_RUNDETAILS']._serialized_start=
|
|
89
|
-
_globals['_RUNDETAILS']._serialized_end=
|
|
90
|
-
_globals['_ACTIONIDENTIFIER']._serialized_start=
|
|
91
|
-
_globals['_ACTIONIDENTIFIER']._serialized_end=
|
|
92
|
-
_globals['_TASKACTIONMETADATA']._serialized_start=
|
|
93
|
-
_globals['_TASKACTIONMETADATA']._serialized_end=
|
|
94
|
-
_globals['_TRACEACTIONMETADATA']._serialized_start=
|
|
95
|
-
_globals['_TRACEACTIONMETADATA']._serialized_end=
|
|
96
|
-
_globals['_CONDITIONACTIONMETADATA']._serialized_start=
|
|
97
|
-
_globals['_CONDITIONACTIONMETADATA']._serialized_end=
|
|
98
|
-
_globals['_ACTIONMETADATA']._serialized_start=
|
|
99
|
-
_globals['_ACTIONMETADATA']._serialized_end=
|
|
100
|
-
_globals['_ACTIONSTATUS']._serialized_start=
|
|
101
|
-
_globals['_ACTIONSTATUS']._serialized_end=
|
|
102
|
-
_globals['_ACTION']._serialized_start=
|
|
103
|
-
_globals['_ACTION']._serialized_end=
|
|
104
|
-
_globals['_ENRICHEDACTION']._serialized_start=
|
|
105
|
-
_globals['_ENRICHEDACTION']._serialized_end=
|
|
106
|
-
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_start=
|
|
107
|
-
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_end=
|
|
108
|
-
_globals['_ERRORINFO']._serialized_start=
|
|
109
|
-
_globals['_ERRORINFO']._serialized_end=
|
|
110
|
-
_globals['_ERRORINFO_KIND']._serialized_start=
|
|
111
|
-
_globals['_ERRORINFO_KIND']._serialized_end=
|
|
112
|
-
_globals['_ABORTINFO']._serialized_start=
|
|
113
|
-
_globals['_ABORTINFO']._serialized_end=
|
|
114
|
-
_globals['_ACTIONDETAILS']._serialized_start=
|
|
115
|
-
_globals['_ACTIONDETAILS']._serialized_end=
|
|
116
|
-
_globals['_ACTIONATTEMPT']._serialized_start=
|
|
117
|
-
_globals['_ACTIONATTEMPT']._serialized_end=
|
|
118
|
-
_globals['_ACTIONEVENT']._serialized_start=
|
|
119
|
-
_globals['_ACTIONEVENT']._serialized_end=
|
|
120
|
-
_globals['_NAMEDLITERAL']._serialized_start=
|
|
121
|
-
_globals['_NAMEDLITERAL']._serialized_end=
|
|
122
|
-
_globals['_OUTPUTREFERENCES']._serialized_start=
|
|
123
|
-
_globals['_OUTPUTREFERENCES']._serialized_end=
|
|
124
|
-
_globals['_INPUTS']._serialized_start=
|
|
125
|
-
_globals['_INPUTS']._serialized_end=
|
|
126
|
-
_globals['_OUTPUTS']._serialized_start=
|
|
127
|
-
_globals['_OUTPUTS']._serialized_end=
|
|
73
|
+
_globals['_RUNIDENTIFIER']._serialized_end=431
|
|
74
|
+
_globals['_LABELS']._serialized_start=434
|
|
75
|
+
_globals['_LABELS']._serialized_end=564
|
|
76
|
+
_globals['_LABELS_VALUESENTRY']._serialized_start=507
|
|
77
|
+
_globals['_LABELS_VALUESENTRY']._serialized_end=564
|
|
78
|
+
_globals['_ANNOTATIONS']._serialized_start=567
|
|
79
|
+
_globals['_ANNOTATIONS']._serialized_end=707
|
|
80
|
+
_globals['_ANNOTATIONS_VALUESENTRY']._serialized_start=507
|
|
81
|
+
_globals['_ANNOTATIONS_VALUESENTRY']._serialized_end=564
|
|
82
|
+
_globals['_ENVS']._serialized_start=709
|
|
83
|
+
_globals['_ENVS']._serialized_end=768
|
|
84
|
+
_globals['_RUNSPEC']._serialized_start=771
|
|
85
|
+
_globals['_RUNSPEC']._serialized_end=1049
|
|
86
|
+
_globals['_RUN']._serialized_start=1051
|
|
87
|
+
_globals['_RUN']._serialized_end=1107
|
|
88
|
+
_globals['_RUNDETAILS']._serialized_start=1109
|
|
89
|
+
_globals['_RUNDETAILS']._serialized_end=1234
|
|
90
|
+
_globals['_ACTIONIDENTIFIER']._serialized_start=1236
|
|
91
|
+
_globals['_ACTIONIDENTIFIER']._serialized_end=1347
|
|
92
|
+
_globals['_TASKACTIONMETADATA']._serialized_start=1350
|
|
93
|
+
_globals['_TASKACTIONMETADATA']._serialized_end=1481
|
|
94
|
+
_globals['_TRACEACTIONMETADATA']._serialized_start=1483
|
|
95
|
+
_globals['_TRACEACTIONMETADATA']._serialized_end=1524
|
|
96
|
+
_globals['_CONDITIONACTIONMETADATA']._serialized_start=1527
|
|
97
|
+
_globals['_CONDITIONACTIONMETADATA']._serialized_end=1686
|
|
98
|
+
_globals['_ACTIONMETADATA']._serialized_start=1689
|
|
99
|
+
_globals['_ACTIONMETADATA']._serialized_end=2058
|
|
100
|
+
_globals['_ACTIONSTATUS']._serialized_start=2061
|
|
101
|
+
_globals['_ACTIONSTATUS']._serialized_end=2292
|
|
102
|
+
_globals['_ACTION']._serialized_start=2295
|
|
103
|
+
_globals['_ACTION']._serialized_end=2476
|
|
104
|
+
_globals['_ENRICHEDACTION']._serialized_start=2479
|
|
105
|
+
_globals['_ENRICHEDACTION']._serialized_end=2765
|
|
106
|
+
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_start=2695
|
|
107
|
+
_globals['_ENRICHEDACTION_CHILDRENPHASECOUNTSENTRY']._serialized_end=2765
|
|
108
|
+
_globals['_ERRORINFO']._serialized_start=2768
|
|
109
|
+
_globals['_ERRORINFO']._serialized_end=2922
|
|
110
|
+
_globals['_ERRORINFO_KIND']._serialized_start=2862
|
|
111
|
+
_globals['_ERRORINFO_KIND']._serialized_end=2922
|
|
112
|
+
_globals['_ABORTINFO']._serialized_start=2924
|
|
113
|
+
_globals['_ABORTINFO']._serialized_end=3025
|
|
114
|
+
_globals['_ACTIONDETAILS']._serialized_start=3028
|
|
115
|
+
_globals['_ACTIONDETAILS']._serialized_end=3489
|
|
116
|
+
_globals['_ACTIONATTEMPT']._serialized_start=3492
|
|
117
|
+
_globals['_ACTIONATTEMPT']._serialized_end=3956
|
|
118
|
+
_globals['_ACTIONEVENT']._serialized_start=3959
|
|
119
|
+
_globals['_ACTIONEVENT']._serialized_end=4620
|
|
120
|
+
_globals['_NAMEDLITERAL']._serialized_start=4622
|
|
121
|
+
_globals['_NAMEDLITERAL']._serialized_end=4702
|
|
122
|
+
_globals['_OUTPUTREFERENCES']._serialized_start=4704
|
|
123
|
+
_globals['_OUTPUTREFERENCES']._serialized_end=4753
|
|
124
|
+
_globals['_INPUTS']._serialized_start=4755
|
|
125
|
+
_globals['_INPUTS']._serialized_end=4824
|
|
126
|
+
_globals['_OUTPUTS']._serialized_start=4826
|
|
127
|
+
_globals['_OUTPUTS']._serialized_end=4896
|
|
128
128
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -116,12 +116,14 @@ class ActionIdentifier(_message.Message):
|
|
|
116
116
|
def __init__(self, run: _Optional[_Union[RunIdentifier, _Mapping]] = ..., name: _Optional[str] = ...) -> None: ...
|
|
117
117
|
|
|
118
118
|
class TaskActionMetadata(_message.Message):
|
|
119
|
-
__slots__ = ["id", "task_type"]
|
|
119
|
+
__slots__ = ["id", "task_type", "short_name"]
|
|
120
120
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
121
121
|
TASK_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
SHORT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
122
123
|
id: _task_definition_pb2.TaskIdentifier
|
|
123
124
|
task_type: str
|
|
124
|
-
|
|
125
|
+
short_name: str
|
|
126
|
+
def __init__(self, id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., task_type: _Optional[str] = ..., short_name: _Optional[str] = ...) -> None: ...
|
|
125
127
|
|
|
126
128
|
class TraceActionMetadata(_message.Message):
|
|
127
129
|
__slots__ = ["name"]
|
|
@@ -18,7 +18,7 @@ from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__defin
|
|
|
18
18
|
from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aworkflow/run_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\xb6\x03\n\x10\x43reateRunRequest\x12\x43\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05runId\x12M\n\nproject_id\x18\x06 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x06taskId\x12\x44\n\ttask_spec\x18\x03 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x08taskSpec\x12\x31\n\x06inputs\x18\x04 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x05 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpecB\t\n\x02id\x12\x03\xf8\x42\x01\x42\x0b\n\x04task\x12\x03\xf8\x42\x01\"=\n\x11\x43reateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x16.cloudidl.workflow.RunR\x03run\"T\n\x0f\x41\x62ortRunRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"\x12\n\x10\x41\x62ortRunResponse\"Y\n\x14GetRunDetailsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"P\n\x15GetRunDetailsResponse\x12\x37\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1d.cloudidl.workflow.RunDetailsR\x07\x64\x65tails\"[\n\x16WatchRunDetailsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"R\n\x17WatchRunDetailsResponse\x12\x37\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1d.cloudidl.workflow.RunDetailsR\x07\x64\x65tails\"e\n\x17GetActionDetailsRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"V\n\x18GetActionDetailsResponse\x12:\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x07\x64\x65tails\"g\n\x19WatchActionDetailsRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"X\n\x1aWatchActionDetailsResponse\x12:\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x07\x64\x65tails\"b\n\x14GetActionDataRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"\x80\x01\n\x15GetActionDataResponse\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.cloudidl.workflow.OutputsR\x07outputs\"\
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aworkflow/run_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\xb6\x03\n\x10\x43reateRunRequest\x12\x43\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05runId\x12M\n\nproject_id\x18\x06 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x06taskId\x12\x44\n\ttask_spec\x18\x03 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x08taskSpec\x12\x31\n\x06inputs\x18\x04 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x05 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpecB\t\n\x02id\x12\x03\xf8\x42\x01\x42\x0b\n\x04task\x12\x03\xf8\x42\x01\"=\n\x11\x43reateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x16.cloudidl.workflow.RunR\x03run\"T\n\x0f\x41\x62ortRunRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"\x12\n\x10\x41\x62ortRunResponse\"Y\n\x14GetRunDetailsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"P\n\x15GetRunDetailsResponse\x12\x37\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1d.cloudidl.workflow.RunDetailsR\x07\x64\x65tails\"[\n\x16WatchRunDetailsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"R\n\x17WatchRunDetailsResponse\x12\x37\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1d.cloudidl.workflow.RunDetailsR\x07\x64\x65tails\"e\n\x17GetActionDetailsRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"V\n\x18GetActionDetailsResponse\x12:\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x07\x64\x65tails\"g\n\x19WatchActionDetailsRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"X\n\x1aWatchActionDetailsResponse\x12:\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x07\x64\x65tails\"b\n\x14GetActionDataRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"\x80\x01\n\x15GetActionDataResponse\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.cloudidl.workflow.OutputsR\x07outputs\"\xd2\x01\n\x0fListRunsRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\nproject_id\x18\x04 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectIdB\x0f\n\x08scope_by\x12\x03\xf8\x42\x01J\x04\x08\x03\x10\x04J\x04\x08\x05\x10\x06\"T\n\x10ListRunsResponse\x12*\n\x04runs\x18\x01 \x03(\x0b\x32\x16.cloudidl.workflow.RunR\x04runs\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xa4\x02\n\x10WatchRunsRequest\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\ncluster_id\x18\x03 \x01(\x0b\x32\".cloudidl.common.ClusterIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tclusterId\x12M\n\nproject_id\x18\x04 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x05 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x06taskIdB\r\n\x06target\x12\x03\xf8\x42\x01\"?\n\x11WatchRunsResponse\x12*\n\x04runs\x18\x01 \x03(\x0b\x32\x16.cloudidl.workflow.RunR\x04runs\"\x8f\x01\n\x12ListActionsRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x41\n\x06run_id\x18\x02 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"`\n\x13ListActionsResponse\x12\x33\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x19.cloudidl.workflow.ActionR\x07\x61\x63tions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x89\x01\n\x13WatchActionsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\x12/\n\x06\x66ilter\x18\x02 \x03(\x0b\x32\x17.cloudidl.common.FilterR\x06\x66ilter\"d\n\x14WatchActionsResponse\x12L\n\x10\x65nriched_actions\x18\x01 \x03(\x0b\x32!.cloudidl.workflow.EnrichedActionR\x0f\x65nrichedActions2\xe4\x08\n\nRunService\x12X\n\tCreateRun\x12#.cloudidl.workflow.CreateRunRequest\x1a$.cloudidl.workflow.CreateRunResponse\"\x00\x12U\n\x08\x41\x62ortRun\x12\".cloudidl.workflow.AbortRunRequest\x1a#.cloudidl.workflow.AbortRunResponse\"\x00\x12g\n\rGetRunDetails\x12\'.cloudidl.workflow.GetRunDetailsRequest\x1a(.cloudidl.workflow.GetRunDetailsResponse\"\x03\x90\x02\x01\x12l\n\x0fWatchRunDetails\x12).cloudidl.workflow.WatchRunDetailsRequest\x1a*.cloudidl.workflow.WatchRunDetailsResponse\"\x00\x30\x01\x12p\n\x10GetActionDetails\x12*.cloudidl.workflow.GetActionDetailsRequest\x1a+.cloudidl.workflow.GetActionDetailsResponse\"\x03\x90\x02\x01\x12u\n\x12WatchActionDetails\x12,.cloudidl.workflow.WatchActionDetailsRequest\x1a-.cloudidl.workflow.WatchActionDetailsResponse\"\x00\x30\x01\x12g\n\rGetActionData\x12\'.cloudidl.workflow.GetActionDataRequest\x1a(.cloudidl.workflow.GetActionDataResponse\"\x03\x90\x02\x01\x12X\n\x08ListRuns\x12\".cloudidl.workflow.ListRunsRequest\x1a#.cloudidl.workflow.ListRunsResponse\"\x03\x90\x02\x01\x12Z\n\tWatchRuns\x12#.cloudidl.workflow.WatchRunsRequest\x1a$.cloudidl.workflow.WatchRunsResponse\"\x00\x30\x01\x12\x61\n\x0bListActions\x12%.cloudidl.workflow.ListActionsRequest\x1a&.cloudidl.workflow.ListActionsResponse\"\x03\x90\x02\x01\x12\x63\n\x0cWatchActions\x12&.cloudidl.workflow.WatchActionsRequest\x1a\'.cloudidl.workflow.WatchActionsResponse\"\x00\x30\x01\x42\xbc\x01\n\x15\x63om.cloudidl.workflowB\x0fRunServiceProtoH\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')
|
|
22
22
|
|
|
23
23
|
_globals = globals()
|
|
24
24
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -50,16 +50,12 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
50
50
|
_WATCHACTIONDETAILSREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
51
51
|
_GETACTIONDATAREQUEST.fields_by_name['action_id']._options = None
|
|
52
52
|
_GETACTIONDATAREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
53
|
-
_LISTRUNSREQUEST.oneofs_by_name['
|
|
54
|
-
_LISTRUNSREQUEST.oneofs_by_name['
|
|
53
|
+
_LISTRUNSREQUEST.oneofs_by_name['scope_by']._options = None
|
|
54
|
+
_LISTRUNSREQUEST.oneofs_by_name['scope_by']._serialized_options = b'\370B\001'
|
|
55
55
|
_LISTRUNSREQUEST.fields_by_name['org']._options = None
|
|
56
56
|
_LISTRUNSREQUEST.fields_by_name['org']._serialized_options = b'\372B\004r\002\020\001'
|
|
57
|
-
_LISTRUNSREQUEST.fields_by_name['cluster_id']._options = None
|
|
58
|
-
_LISTRUNSREQUEST.fields_by_name['cluster_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
59
57
|
_LISTRUNSREQUEST.fields_by_name['project_id']._options = None
|
|
60
58
|
_LISTRUNSREQUEST.fields_by_name['project_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
61
|
-
_LISTRUNSREQUEST.fields_by_name['task_id']._options = None
|
|
62
|
-
_LISTRUNSREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
63
59
|
_WATCHRUNSREQUEST.oneofs_by_name['target']._options = None
|
|
64
60
|
_WATCHRUNSREQUEST.oneofs_by_name['target']._serialized_options = b'\370B\001'
|
|
65
61
|
_WATCHRUNSREQUEST.fields_by_name['org']._options = None
|
|
@@ -113,21 +109,21 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
113
109
|
_globals['_GETACTIONDATARESPONSE']._serialized_start=1628
|
|
114
110
|
_globals['_GETACTIONDATARESPONSE']._serialized_end=1756
|
|
115
111
|
_globals['_LISTRUNSREQUEST']._serialized_start=1759
|
|
116
|
-
_globals['_LISTRUNSREQUEST']._serialized_end=
|
|
117
|
-
_globals['_LISTRUNSRESPONSE']._serialized_start=
|
|
118
|
-
_globals['_LISTRUNSRESPONSE']._serialized_end=
|
|
119
|
-
_globals['_WATCHRUNSREQUEST']._serialized_start=
|
|
120
|
-
_globals['_WATCHRUNSREQUEST']._serialized_end=
|
|
121
|
-
_globals['_WATCHRUNSRESPONSE']._serialized_start=
|
|
122
|
-
_globals['_WATCHRUNSRESPONSE']._serialized_end=
|
|
123
|
-
_globals['_LISTACTIONSREQUEST']._serialized_start=
|
|
124
|
-
_globals['_LISTACTIONSREQUEST']._serialized_end=
|
|
125
|
-
_globals['_LISTACTIONSRESPONSE']._serialized_start=
|
|
126
|
-
_globals['_LISTACTIONSRESPONSE']._serialized_end=
|
|
127
|
-
_globals['_WATCHACTIONSREQUEST']._serialized_start=
|
|
128
|
-
_globals['_WATCHACTIONSREQUEST']._serialized_end=
|
|
129
|
-
_globals['_WATCHACTIONSRESPONSE']._serialized_start=
|
|
130
|
-
_globals['_WATCHACTIONSRESPONSE']._serialized_end=
|
|
131
|
-
_globals['_RUNSERVICE']._serialized_start=
|
|
132
|
-
_globals['_RUNSERVICE']._serialized_end=
|
|
112
|
+
_globals['_LISTRUNSREQUEST']._serialized_end=1969
|
|
113
|
+
_globals['_LISTRUNSRESPONSE']._serialized_start=1971
|
|
114
|
+
_globals['_LISTRUNSRESPONSE']._serialized_end=2055
|
|
115
|
+
_globals['_WATCHRUNSREQUEST']._serialized_start=2058
|
|
116
|
+
_globals['_WATCHRUNSREQUEST']._serialized_end=2350
|
|
117
|
+
_globals['_WATCHRUNSRESPONSE']._serialized_start=2352
|
|
118
|
+
_globals['_WATCHRUNSRESPONSE']._serialized_end=2415
|
|
119
|
+
_globals['_LISTACTIONSREQUEST']._serialized_start=2418
|
|
120
|
+
_globals['_LISTACTIONSREQUEST']._serialized_end=2561
|
|
121
|
+
_globals['_LISTACTIONSRESPONSE']._serialized_start=2563
|
|
122
|
+
_globals['_LISTACTIONSRESPONSE']._serialized_end=2659
|
|
123
|
+
_globals['_WATCHACTIONSREQUEST']._serialized_start=2662
|
|
124
|
+
_globals['_WATCHACTIONSREQUEST']._serialized_end=2799
|
|
125
|
+
_globals['_WATCHACTIONSRESPONSE']._serialized_start=2801
|
|
126
|
+
_globals['_WATCHACTIONSRESPONSE']._serialized_end=2901
|
|
127
|
+
_globals['_RUNSERVICE']._serialized_start=2904
|
|
128
|
+
_globals['_RUNSERVICE']._serialized_end=4028
|
|
133
129
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -105,18 +105,14 @@ class GetActionDataResponse(_message.Message):
|
|
|
105
105
|
def __init__(self, inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., outputs: _Optional[_Union[_run_definition_pb2.Outputs, _Mapping]] = ...) -> None: ...
|
|
106
106
|
|
|
107
107
|
class ListRunsRequest(_message.Message):
|
|
108
|
-
__slots__ = ["request", "org", "
|
|
108
|
+
__slots__ = ["request", "org", "project_id"]
|
|
109
109
|
REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
110
110
|
ORG_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
-
CLUSTER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
112
111
|
PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
-
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
114
112
|
request: _list_pb2.ListRequest
|
|
115
113
|
org: str
|
|
116
|
-
cluster_id: _identifier_pb2.ClusterIdentifier
|
|
117
114
|
project_id: _identifier_pb2.ProjectIdentifier
|
|
118
|
-
|
|
119
|
-
def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., org: _Optional[str] = ..., cluster_id: _Optional[_Union[_identifier_pb2.ClusterIdentifier, _Mapping]] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ...) -> None: ...
|
|
115
|
+
def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., org: _Optional[str] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ...) -> None: ...
|
|
120
116
|
|
|
121
117
|
class ListRunsResponse(_message.Message):
|
|
122
118
|
__slots__ = ["runs", "token"]
|