flyte 0.0.1b0__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 +62 -0
- flyte/_api_commons.py +3 -0
- flyte/_bin/__init__.py +0 -0
- flyte/_bin/runtime.py +126 -0
- flyte/_build.py +25 -0
- flyte/_cache/__init__.py +12 -0
- flyte/_cache/cache.py +146 -0
- flyte/_cache/defaults.py +9 -0
- flyte/_cache/policy_function_body.py +42 -0
- flyte/_cli/__init__.py +0 -0
- flyte/_cli/_common.py +287 -0
- flyte/_cli/_create.py +42 -0
- flyte/_cli/_delete.py +23 -0
- flyte/_cli/_deploy.py +140 -0
- flyte/_cli/_get.py +235 -0
- flyte/_cli/_run.py +152 -0
- flyte/_cli/main.py +72 -0
- flyte/_code_bundle/__init__.py +8 -0
- flyte/_code_bundle/_ignore.py +113 -0
- flyte/_code_bundle/_packaging.py +187 -0
- flyte/_code_bundle/_utils.py +339 -0
- flyte/_code_bundle/bundle.py +178 -0
- flyte/_context.py +146 -0
- flyte/_datastructures.py +342 -0
- flyte/_deploy.py +202 -0
- flyte/_doc.py +29 -0
- flyte/_docstring.py +32 -0
- flyte/_environment.py +43 -0
- flyte/_group.py +31 -0
- flyte/_hash.py +23 -0
- flyte/_image.py +760 -0
- flyte/_initialize.py +634 -0
- flyte/_interface.py +84 -0
- flyte/_internal/__init__.py +3 -0
- flyte/_internal/controllers/__init__.py +115 -0
- flyte/_internal/controllers/_local_controller.py +118 -0
- flyte/_internal/controllers/_trace.py +40 -0
- flyte/_internal/controllers/pbhash.py +39 -0
- flyte/_internal/controllers/remote/__init__.py +40 -0
- flyte/_internal/controllers/remote/_action.py +141 -0
- flyte/_internal/controllers/remote/_client.py +43 -0
- flyte/_internal/controllers/remote/_controller.py +361 -0
- flyte/_internal/controllers/remote/_core.py +402 -0
- flyte/_internal/controllers/remote/_informer.py +361 -0
- flyte/_internal/controllers/remote/_service_protocol.py +50 -0
- flyte/_internal/imagebuild/__init__.py +11 -0
- flyte/_internal/imagebuild/docker_builder.py +416 -0
- flyte/_internal/imagebuild/image_builder.py +241 -0
- flyte/_internal/imagebuild/remote_builder.py +0 -0
- flyte/_internal/resolvers/__init__.py +0 -0
- flyte/_internal/resolvers/_task_module.py +54 -0
- flyte/_internal/resolvers/common.py +31 -0
- flyte/_internal/resolvers/default.py +28 -0
- flyte/_internal/runtime/__init__.py +0 -0
- flyte/_internal/runtime/convert.py +199 -0
- flyte/_internal/runtime/entrypoints.py +135 -0
- flyte/_internal/runtime/io.py +136 -0
- flyte/_internal/runtime/resources_serde.py +138 -0
- flyte/_internal/runtime/task_serde.py +210 -0
- flyte/_internal/runtime/taskrunner.py +190 -0
- flyte/_internal/runtime/types_serde.py +54 -0
- flyte/_logging.py +124 -0
- flyte/_protos/__init__.py +0 -0
- flyte/_protos/common/authorization_pb2.py +66 -0
- flyte/_protos/common/authorization_pb2.pyi +108 -0
- flyte/_protos/common/authorization_pb2_grpc.py +4 -0
- flyte/_protos/common/identifier_pb2.py +71 -0
- flyte/_protos/common/identifier_pb2.pyi +82 -0
- flyte/_protos/common/identifier_pb2_grpc.py +4 -0
- flyte/_protos/common/identity_pb2.py +48 -0
- flyte/_protos/common/identity_pb2.pyi +72 -0
- flyte/_protos/common/identity_pb2_grpc.py +4 -0
- flyte/_protos/common/list_pb2.py +36 -0
- flyte/_protos/common/list_pb2.pyi +69 -0
- flyte/_protos/common/list_pb2_grpc.py +4 -0
- flyte/_protos/common/policy_pb2.py +37 -0
- flyte/_protos/common/policy_pb2.pyi +27 -0
- flyte/_protos/common/policy_pb2_grpc.py +4 -0
- flyte/_protos/common/role_pb2.py +37 -0
- flyte/_protos/common/role_pb2.pyi +53 -0
- flyte/_protos/common/role_pb2_grpc.py +4 -0
- flyte/_protos/common/runtime_version_pb2.py +28 -0
- flyte/_protos/common/runtime_version_pb2.pyi +24 -0
- flyte/_protos/common/runtime_version_pb2_grpc.py +4 -0
- flyte/_protos/logs/dataplane/payload_pb2.py +96 -0
- flyte/_protos/logs/dataplane/payload_pb2.pyi +168 -0
- flyte/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
- flyte/_protos/secret/definition_pb2.py +49 -0
- flyte/_protos/secret/definition_pb2.pyi +93 -0
- flyte/_protos/secret/definition_pb2_grpc.py +4 -0
- flyte/_protos/secret/payload_pb2.py +62 -0
- flyte/_protos/secret/payload_pb2.pyi +94 -0
- flyte/_protos/secret/payload_pb2_grpc.py +4 -0
- flyte/_protos/secret/secret_pb2.py +38 -0
- flyte/_protos/secret/secret_pb2.pyi +6 -0
- flyte/_protos/secret/secret_pb2_grpc.py +198 -0
- flyte/_protos/secret/secret_pb2_grpc_grpc.py +198 -0
- flyte/_protos/validate/validate/validate_pb2.py +76 -0
- flyte/_protos/workflow/node_execution_service_pb2.py +26 -0
- flyte/_protos/workflow/node_execution_service_pb2.pyi +4 -0
- flyte/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
- flyte/_protos/workflow/queue_service_pb2.py +106 -0
- flyte/_protos/workflow/queue_service_pb2.pyi +141 -0
- flyte/_protos/workflow/queue_service_pb2_grpc.py +172 -0
- flyte/_protos/workflow/run_definition_pb2.py +128 -0
- flyte/_protos/workflow/run_definition_pb2.pyi +310 -0
- flyte/_protos/workflow/run_definition_pb2_grpc.py +4 -0
- flyte/_protos/workflow/run_logs_service_pb2.py +41 -0
- flyte/_protos/workflow/run_logs_service_pb2.pyi +28 -0
- flyte/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
- flyte/_protos/workflow/run_service_pb2.py +133 -0
- flyte/_protos/workflow/run_service_pb2.pyi +175 -0
- flyte/_protos/workflow/run_service_pb2_grpc.py +412 -0
- flyte/_protos/workflow/state_service_pb2.py +58 -0
- flyte/_protos/workflow/state_service_pb2.pyi +71 -0
- flyte/_protos/workflow/state_service_pb2_grpc.py +138 -0
- flyte/_protos/workflow/task_definition_pb2.py +72 -0
- flyte/_protos/workflow/task_definition_pb2.pyi +65 -0
- flyte/_protos/workflow/task_definition_pb2_grpc.py +4 -0
- flyte/_protos/workflow/task_service_pb2.py +44 -0
- flyte/_protos/workflow/task_service_pb2.pyi +31 -0
- flyte/_protos/workflow/task_service_pb2_grpc.py +104 -0
- flyte/_resources.py +226 -0
- flyte/_retry.py +32 -0
- flyte/_reusable_environment.py +25 -0
- flyte/_run.py +411 -0
- flyte/_secret.py +61 -0
- flyte/_task.py +367 -0
- flyte/_task_environment.py +200 -0
- flyte/_timeout.py +47 -0
- flyte/_tools.py +27 -0
- flyte/_trace.py +128 -0
- flyte/_utils/__init__.py +20 -0
- flyte/_utils/asyn.py +119 -0
- flyte/_utils/coro_management.py +25 -0
- flyte/_utils/file_handling.py +72 -0
- flyte/_utils/helpers.py +108 -0
- flyte/_utils/lazy_module.py +54 -0
- flyte/_utils/uv_script_parser.py +49 -0
- flyte/_version.py +21 -0
- flyte/connectors/__init__.py +0 -0
- flyte/errors.py +143 -0
- flyte/extras/__init__.py +5 -0
- flyte/extras/_container.py +273 -0
- flyte/io/__init__.py +11 -0
- flyte/io/_dataframe.py +0 -0
- flyte/io/_dir.py +448 -0
- flyte/io/_file.py +468 -0
- flyte/io/pickle/__init__.py +0 -0
- flyte/io/pickle/transformer.py +117 -0
- flyte/io/structured_dataset/__init__.py +129 -0
- flyte/io/structured_dataset/basic_dfs.py +219 -0
- flyte/io/structured_dataset/structured_dataset.py +1061 -0
- flyte/py.typed +0 -0
- flyte/remote/__init__.py +25 -0
- flyte/remote/_client/__init__.py +0 -0
- flyte/remote/_client/_protocols.py +131 -0
- flyte/remote/_client/auth/__init__.py +12 -0
- flyte/remote/_client/auth/_authenticators/__init__.py +0 -0
- flyte/remote/_client/auth/_authenticators/base.py +397 -0
- flyte/remote/_client/auth/_authenticators/client_credentials.py +73 -0
- flyte/remote/_client/auth/_authenticators/device_code.py +118 -0
- flyte/remote/_client/auth/_authenticators/external_command.py +79 -0
- flyte/remote/_client/auth/_authenticators/factory.py +200 -0
- flyte/remote/_client/auth/_authenticators/pkce.py +516 -0
- flyte/remote/_client/auth/_channel.py +184 -0
- flyte/remote/_client/auth/_client_config.py +83 -0
- flyte/remote/_client/auth/_default_html.py +32 -0
- flyte/remote/_client/auth/_grpc_utils/__init__.py +0 -0
- flyte/remote/_client/auth/_grpc_utils/auth_interceptor.py +288 -0
- flyte/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +151 -0
- flyte/remote/_client/auth/_keyring.py +143 -0
- flyte/remote/_client/auth/_token_client.py +260 -0
- flyte/remote/_client/auth/errors.py +16 -0
- flyte/remote/_client/controlplane.py +95 -0
- flyte/remote/_console.py +18 -0
- flyte/remote/_data.py +155 -0
- flyte/remote/_logs.py +116 -0
- flyte/remote/_project.py +86 -0
- flyte/remote/_run.py +873 -0
- flyte/remote/_secret.py +132 -0
- flyte/remote/_task.py +227 -0
- flyte/report/__init__.py +3 -0
- flyte/report/_report.py +178 -0
- flyte/report/_template.html +124 -0
- flyte/storage/__init__.py +24 -0
- flyte/storage/_remote_fs.py +34 -0
- flyte/storage/_storage.py +251 -0
- flyte/storage/_utils.py +5 -0
- flyte/types/__init__.py +13 -0
- flyte/types/_interface.py +25 -0
- flyte/types/_renderer.py +162 -0
- flyte/types/_string_literals.py +120 -0
- flyte/types/_type_engine.py +2210 -0
- flyte/types/_utils.py +80 -0
- flyte-0.0.1b0.dist-info/METADATA +179 -0
- flyte-0.0.1b0.dist-info/RECORD +390 -0
- flyte-0.0.1b0.dist-info/WHEEL +5 -0
- flyte-0.0.1b0.dist-info/entry_points.txt +3 -0
- flyte-0.0.1b0.dist-info/top_level.txt +1 -0
- union/__init__.py +54 -0
- union/_api_commons.py +3 -0
- union/_bin/__init__.py +0 -0
- union/_bin/runtime.py +113 -0
- union/_build.py +25 -0
- union/_cache/__init__.py +12 -0
- union/_cache/cache.py +141 -0
- union/_cache/defaults.py +9 -0
- union/_cache/policy_function_body.py +42 -0
- union/_cli/__init__.py +0 -0
- union/_cli/_common.py +263 -0
- union/_cli/_create.py +40 -0
- union/_cli/_delete.py +23 -0
- union/_cli/_deploy.py +120 -0
- union/_cli/_get.py +162 -0
- union/_cli/_params.py +579 -0
- union/_cli/_run.py +150 -0
- union/_cli/main.py +72 -0
- union/_code_bundle/__init__.py +8 -0
- union/_code_bundle/_ignore.py +113 -0
- union/_code_bundle/_packaging.py +187 -0
- union/_code_bundle/_utils.py +342 -0
- union/_code_bundle/bundle.py +176 -0
- union/_context.py +146 -0
- union/_datastructures.py +295 -0
- union/_deploy.py +185 -0
- union/_doc.py +29 -0
- union/_docstring.py +26 -0
- union/_environment.py +43 -0
- union/_group.py +31 -0
- union/_hash.py +23 -0
- union/_image.py +760 -0
- union/_initialize.py +585 -0
- union/_interface.py +84 -0
- union/_internal/__init__.py +3 -0
- union/_internal/controllers/__init__.py +77 -0
- union/_internal/controllers/_local_controller.py +77 -0
- union/_internal/controllers/pbhash.py +39 -0
- union/_internal/controllers/remote/__init__.py +40 -0
- union/_internal/controllers/remote/_action.py +131 -0
- union/_internal/controllers/remote/_client.py +43 -0
- union/_internal/controllers/remote/_controller.py +169 -0
- union/_internal/controllers/remote/_core.py +341 -0
- union/_internal/controllers/remote/_informer.py +260 -0
- union/_internal/controllers/remote/_service_protocol.py +44 -0
- union/_internal/imagebuild/__init__.py +11 -0
- union/_internal/imagebuild/docker_builder.py +416 -0
- union/_internal/imagebuild/image_builder.py +243 -0
- union/_internal/imagebuild/remote_builder.py +0 -0
- union/_internal/resolvers/__init__.py +0 -0
- union/_internal/resolvers/_task_module.py +31 -0
- union/_internal/resolvers/common.py +24 -0
- union/_internal/resolvers/default.py +27 -0
- union/_internal/runtime/__init__.py +0 -0
- union/_internal/runtime/convert.py +163 -0
- union/_internal/runtime/entrypoints.py +121 -0
- union/_internal/runtime/io.py +136 -0
- union/_internal/runtime/resources_serde.py +134 -0
- union/_internal/runtime/task_serde.py +202 -0
- union/_internal/runtime/taskrunner.py +179 -0
- union/_internal/runtime/types_serde.py +53 -0
- union/_logging.py +124 -0
- union/_protos/__init__.py +0 -0
- union/_protos/common/authorization_pb2.py +66 -0
- union/_protos/common/authorization_pb2.pyi +106 -0
- union/_protos/common/authorization_pb2_grpc.py +4 -0
- union/_protos/common/identifier_pb2.py +71 -0
- union/_protos/common/identifier_pb2.pyi +82 -0
- union/_protos/common/identifier_pb2_grpc.py +4 -0
- union/_protos/common/identity_pb2.py +48 -0
- union/_protos/common/identity_pb2.pyi +72 -0
- union/_protos/common/identity_pb2_grpc.py +4 -0
- union/_protos/common/list_pb2.py +36 -0
- union/_protos/common/list_pb2.pyi +69 -0
- union/_protos/common/list_pb2_grpc.py +4 -0
- union/_protos/common/policy_pb2.py +37 -0
- union/_protos/common/policy_pb2.pyi +27 -0
- union/_protos/common/policy_pb2_grpc.py +4 -0
- union/_protos/common/role_pb2.py +37 -0
- union/_protos/common/role_pb2.pyi +51 -0
- union/_protos/common/role_pb2_grpc.py +4 -0
- union/_protos/common/runtime_version_pb2.py +28 -0
- union/_protos/common/runtime_version_pb2.pyi +24 -0
- union/_protos/common/runtime_version_pb2_grpc.py +4 -0
- union/_protos/logs/dataplane/payload_pb2.py +96 -0
- union/_protos/logs/dataplane/payload_pb2.pyi +168 -0
- union/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
- union/_protos/secret/definition_pb2.py +49 -0
- union/_protos/secret/definition_pb2.pyi +93 -0
- union/_protos/secret/definition_pb2_grpc.py +4 -0
- union/_protos/secret/payload_pb2.py +62 -0
- union/_protos/secret/payload_pb2.pyi +94 -0
- union/_protos/secret/payload_pb2_grpc.py +4 -0
- union/_protos/secret/secret_pb2.py +38 -0
- union/_protos/secret/secret_pb2.pyi +6 -0
- union/_protos/secret/secret_pb2_grpc.py +198 -0
- union/_protos/validate/validate/validate_pb2.py +76 -0
- union/_protos/workflow/node_execution_service_pb2.py +26 -0
- union/_protos/workflow/node_execution_service_pb2.pyi +4 -0
- union/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
- union/_protos/workflow/queue_service_pb2.py +75 -0
- union/_protos/workflow/queue_service_pb2.pyi +103 -0
- union/_protos/workflow/queue_service_pb2_grpc.py +172 -0
- union/_protos/workflow/run_definition_pb2.py +100 -0
- union/_protos/workflow/run_definition_pb2.pyi +256 -0
- union/_protos/workflow/run_definition_pb2_grpc.py +4 -0
- union/_protos/workflow/run_logs_service_pb2.py +41 -0
- union/_protos/workflow/run_logs_service_pb2.pyi +28 -0
- union/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
- union/_protos/workflow/run_service_pb2.py +133 -0
- union/_protos/workflow/run_service_pb2.pyi +173 -0
- union/_protos/workflow/run_service_pb2_grpc.py +412 -0
- union/_protos/workflow/state_service_pb2.py +58 -0
- union/_protos/workflow/state_service_pb2.pyi +69 -0
- union/_protos/workflow/state_service_pb2_grpc.py +138 -0
- union/_protos/workflow/task_definition_pb2.py +72 -0
- union/_protos/workflow/task_definition_pb2.pyi +65 -0
- union/_protos/workflow/task_definition_pb2_grpc.py +4 -0
- union/_protos/workflow/task_service_pb2.py +44 -0
- union/_protos/workflow/task_service_pb2.pyi +31 -0
- union/_protos/workflow/task_service_pb2_grpc.py +104 -0
- union/_resources.py +226 -0
- union/_retry.py +32 -0
- union/_reusable_environment.py +25 -0
- union/_run.py +374 -0
- union/_secret.py +61 -0
- union/_task.py +354 -0
- union/_task_environment.py +186 -0
- union/_timeout.py +47 -0
- union/_tools.py +27 -0
- union/_utils/__init__.py +11 -0
- union/_utils/asyn.py +119 -0
- union/_utils/file_handling.py +71 -0
- union/_utils/helpers.py +46 -0
- union/_utils/lazy_module.py +54 -0
- union/_utils/uv_script_parser.py +49 -0
- union/_version.py +21 -0
- union/connectors/__init__.py +0 -0
- union/errors.py +128 -0
- union/extras/__init__.py +5 -0
- union/extras/_container.py +263 -0
- union/io/__init__.py +11 -0
- union/io/_dataframe.py +0 -0
- union/io/_dir.py +425 -0
- union/io/_file.py +418 -0
- union/io/pickle/__init__.py +0 -0
- union/io/pickle/transformer.py +117 -0
- union/io/structured_dataset/__init__.py +122 -0
- union/io/structured_dataset/basic_dfs.py +219 -0
- union/io/structured_dataset/structured_dataset.py +1057 -0
- union/py.typed +0 -0
- union/remote/__init__.py +23 -0
- union/remote/_client/__init__.py +0 -0
- union/remote/_client/_protocols.py +129 -0
- union/remote/_client/auth/__init__.py +12 -0
- union/remote/_client/auth/_authenticators/__init__.py +0 -0
- union/remote/_client/auth/_authenticators/base.py +391 -0
- union/remote/_client/auth/_authenticators/client_credentials.py +73 -0
- union/remote/_client/auth/_authenticators/device_code.py +120 -0
- union/remote/_client/auth/_authenticators/external_command.py +77 -0
- union/remote/_client/auth/_authenticators/factory.py +200 -0
- union/remote/_client/auth/_authenticators/pkce.py +515 -0
- union/remote/_client/auth/_channel.py +184 -0
- union/remote/_client/auth/_client_config.py +83 -0
- union/remote/_client/auth/_default_html.py +32 -0
- union/remote/_client/auth/_grpc_utils/__init__.py +0 -0
- union/remote/_client/auth/_grpc_utils/auth_interceptor.py +204 -0
- union/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +144 -0
- union/remote/_client/auth/_keyring.py +154 -0
- union/remote/_client/auth/_token_client.py +258 -0
- union/remote/_client/auth/errors.py +16 -0
- union/remote/_client/controlplane.py +86 -0
- union/remote/_data.py +149 -0
- union/remote/_logs.py +74 -0
- union/remote/_project.py +86 -0
- union/remote/_run.py +820 -0
- union/remote/_secret.py +132 -0
- union/remote/_task.py +193 -0
- union/report/__init__.py +3 -0
- union/report/_report.py +178 -0
- union/report/_template.html +124 -0
- union/storage/__init__.py +24 -0
- union/storage/_remote_fs.py +34 -0
- union/storage/_storage.py +247 -0
- union/storage/_utils.py +5 -0
- union/types/__init__.py +11 -0
- union/types/_renderer.py +162 -0
- union/types/_string_literals.py +120 -0
- union/types/_type_engine.py +2131 -0
- union/types/_utils.py +80 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from flyte._protos.workflow import run_service_pb2 as workflow_dot_run__service__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RunServiceStub(object):
|
|
9
|
+
"""RunService provides an interface for managing runs.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.CreateRun = channel.unary_unary(
|
|
19
|
+
'/cloudidl.workflow.RunService/CreateRun',
|
|
20
|
+
request_serializer=workflow_dot_run__service__pb2.CreateRunRequest.SerializeToString,
|
|
21
|
+
response_deserializer=workflow_dot_run__service__pb2.CreateRunResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.AbortRun = channel.unary_unary(
|
|
24
|
+
'/cloudidl.workflow.RunService/AbortRun',
|
|
25
|
+
request_serializer=workflow_dot_run__service__pb2.AbortRunRequest.SerializeToString,
|
|
26
|
+
response_deserializer=workflow_dot_run__service__pb2.AbortRunResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.GetRunDetails = channel.unary_unary(
|
|
29
|
+
'/cloudidl.workflow.RunService/GetRunDetails',
|
|
30
|
+
request_serializer=workflow_dot_run__service__pb2.GetRunDetailsRequest.SerializeToString,
|
|
31
|
+
response_deserializer=workflow_dot_run__service__pb2.GetRunDetailsResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.WatchRunDetails = channel.unary_stream(
|
|
34
|
+
'/cloudidl.workflow.RunService/WatchRunDetails',
|
|
35
|
+
request_serializer=workflow_dot_run__service__pb2.WatchRunDetailsRequest.SerializeToString,
|
|
36
|
+
response_deserializer=workflow_dot_run__service__pb2.WatchRunDetailsResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.GetActionDetails = channel.unary_unary(
|
|
39
|
+
'/cloudidl.workflow.RunService/GetActionDetails',
|
|
40
|
+
request_serializer=workflow_dot_run__service__pb2.GetActionDetailsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=workflow_dot_run__service__pb2.GetActionDetailsResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.WatchActionDetails = channel.unary_stream(
|
|
44
|
+
'/cloudidl.workflow.RunService/WatchActionDetails',
|
|
45
|
+
request_serializer=workflow_dot_run__service__pb2.WatchActionDetailsRequest.SerializeToString,
|
|
46
|
+
response_deserializer=workflow_dot_run__service__pb2.WatchActionDetailsResponse.FromString,
|
|
47
|
+
)
|
|
48
|
+
self.GetActionData = channel.unary_unary(
|
|
49
|
+
'/cloudidl.workflow.RunService/GetActionData',
|
|
50
|
+
request_serializer=workflow_dot_run__service__pb2.GetActionDataRequest.SerializeToString,
|
|
51
|
+
response_deserializer=workflow_dot_run__service__pb2.GetActionDataResponse.FromString,
|
|
52
|
+
)
|
|
53
|
+
self.ListRuns = channel.unary_unary(
|
|
54
|
+
'/cloudidl.workflow.RunService/ListRuns',
|
|
55
|
+
request_serializer=workflow_dot_run__service__pb2.ListRunsRequest.SerializeToString,
|
|
56
|
+
response_deserializer=workflow_dot_run__service__pb2.ListRunsResponse.FromString,
|
|
57
|
+
)
|
|
58
|
+
self.WatchRuns = channel.unary_stream(
|
|
59
|
+
'/cloudidl.workflow.RunService/WatchRuns',
|
|
60
|
+
request_serializer=workflow_dot_run__service__pb2.WatchRunsRequest.SerializeToString,
|
|
61
|
+
response_deserializer=workflow_dot_run__service__pb2.WatchRunsResponse.FromString,
|
|
62
|
+
)
|
|
63
|
+
self.ListActions = channel.unary_unary(
|
|
64
|
+
'/cloudidl.workflow.RunService/ListActions',
|
|
65
|
+
request_serializer=workflow_dot_run__service__pb2.ListActionsRequest.SerializeToString,
|
|
66
|
+
response_deserializer=workflow_dot_run__service__pb2.ListActionsResponse.FromString,
|
|
67
|
+
)
|
|
68
|
+
self.WatchActions = channel.unary_stream(
|
|
69
|
+
'/cloudidl.workflow.RunService/WatchActions',
|
|
70
|
+
request_serializer=workflow_dot_run__service__pb2.WatchActionsRequest.SerializeToString,
|
|
71
|
+
response_deserializer=workflow_dot_run__service__pb2.WatchActionsResponse.FromString,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class RunServiceServicer(object):
|
|
76
|
+
"""RunService provides an interface for managing runs.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
def CreateRun(self, request, context):
|
|
80
|
+
"""Create a new run of the given task.
|
|
81
|
+
"""
|
|
82
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
83
|
+
context.set_details('Method not implemented!')
|
|
84
|
+
raise NotImplementedError('Method not implemented!')
|
|
85
|
+
|
|
86
|
+
def AbortRun(self, request, context):
|
|
87
|
+
"""Abort a run.
|
|
88
|
+
"""
|
|
89
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
90
|
+
context.set_details('Method not implemented!')
|
|
91
|
+
raise NotImplementedError('Method not implemented!')
|
|
92
|
+
|
|
93
|
+
def GetRunDetails(self, request, context):
|
|
94
|
+
"""Get detailed information about a run.
|
|
95
|
+
"""
|
|
96
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
97
|
+
context.set_details('Method not implemented!')
|
|
98
|
+
raise NotImplementedError('Method not implemented!')
|
|
99
|
+
|
|
100
|
+
def WatchRunDetails(self, request, context):
|
|
101
|
+
"""Stream detailed information updates about a run. The call will terminate when the run reaches a terminal phase.
|
|
102
|
+
"""
|
|
103
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
104
|
+
context.set_details('Method not implemented!')
|
|
105
|
+
raise NotImplementedError('Method not implemented!')
|
|
106
|
+
|
|
107
|
+
def GetActionDetails(self, request, context):
|
|
108
|
+
"""Get detailed information about an action.
|
|
109
|
+
"""
|
|
110
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
111
|
+
context.set_details('Method not implemented!')
|
|
112
|
+
raise NotImplementedError('Method not implemented!')
|
|
113
|
+
|
|
114
|
+
def WatchActionDetails(self, request, context):
|
|
115
|
+
"""Stream detailed information updates about an action. The call will terminate when the action reaches a terminal phase.
|
|
116
|
+
"""
|
|
117
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
118
|
+
context.set_details('Method not implemented!')
|
|
119
|
+
raise NotImplementedError('Method not implemented!')
|
|
120
|
+
|
|
121
|
+
def GetActionData(self, request, context):
|
|
122
|
+
"""Get input and output for an action.
|
|
123
|
+
"""
|
|
124
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
125
|
+
context.set_details('Method not implemented!')
|
|
126
|
+
raise NotImplementedError('Method not implemented!')
|
|
127
|
+
|
|
128
|
+
def ListRuns(self, request, context):
|
|
129
|
+
"""List runs based on the provided filter criteria.
|
|
130
|
+
"""
|
|
131
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
132
|
+
context.set_details('Method not implemented!')
|
|
133
|
+
raise NotImplementedError('Method not implemented!')
|
|
134
|
+
|
|
135
|
+
def WatchRuns(self, request, context):
|
|
136
|
+
"""Stream updates for runs based on the provided filter criteria. Responses may include newly discovered
|
|
137
|
+
runs or updates to existing ones from the point of invocation.
|
|
138
|
+
"""
|
|
139
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
140
|
+
context.set_details('Method not implemented!')
|
|
141
|
+
raise NotImplementedError('Method not implemented!')
|
|
142
|
+
|
|
143
|
+
def ListActions(self, request, context):
|
|
144
|
+
"""List all actions for a given run.
|
|
145
|
+
"""
|
|
146
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
147
|
+
context.set_details('Method not implemented!')
|
|
148
|
+
raise NotImplementedError('Method not implemented!')
|
|
149
|
+
|
|
150
|
+
def WatchActions(self, request, context):
|
|
151
|
+
"""Stream updates for actions given a run. Responses may include newly discovered nested runs or updates
|
|
152
|
+
to existing ones from the point of invocation.
|
|
153
|
+
"""
|
|
154
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
155
|
+
context.set_details('Method not implemented!')
|
|
156
|
+
raise NotImplementedError('Method not implemented!')
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def add_RunServiceServicer_to_server(servicer, server):
|
|
160
|
+
rpc_method_handlers = {
|
|
161
|
+
'CreateRun': grpc.unary_unary_rpc_method_handler(
|
|
162
|
+
servicer.CreateRun,
|
|
163
|
+
request_deserializer=workflow_dot_run__service__pb2.CreateRunRequest.FromString,
|
|
164
|
+
response_serializer=workflow_dot_run__service__pb2.CreateRunResponse.SerializeToString,
|
|
165
|
+
),
|
|
166
|
+
'AbortRun': grpc.unary_unary_rpc_method_handler(
|
|
167
|
+
servicer.AbortRun,
|
|
168
|
+
request_deserializer=workflow_dot_run__service__pb2.AbortRunRequest.FromString,
|
|
169
|
+
response_serializer=workflow_dot_run__service__pb2.AbortRunResponse.SerializeToString,
|
|
170
|
+
),
|
|
171
|
+
'GetRunDetails': grpc.unary_unary_rpc_method_handler(
|
|
172
|
+
servicer.GetRunDetails,
|
|
173
|
+
request_deserializer=workflow_dot_run__service__pb2.GetRunDetailsRequest.FromString,
|
|
174
|
+
response_serializer=workflow_dot_run__service__pb2.GetRunDetailsResponse.SerializeToString,
|
|
175
|
+
),
|
|
176
|
+
'WatchRunDetails': grpc.unary_stream_rpc_method_handler(
|
|
177
|
+
servicer.WatchRunDetails,
|
|
178
|
+
request_deserializer=workflow_dot_run__service__pb2.WatchRunDetailsRequest.FromString,
|
|
179
|
+
response_serializer=workflow_dot_run__service__pb2.WatchRunDetailsResponse.SerializeToString,
|
|
180
|
+
),
|
|
181
|
+
'GetActionDetails': grpc.unary_unary_rpc_method_handler(
|
|
182
|
+
servicer.GetActionDetails,
|
|
183
|
+
request_deserializer=workflow_dot_run__service__pb2.GetActionDetailsRequest.FromString,
|
|
184
|
+
response_serializer=workflow_dot_run__service__pb2.GetActionDetailsResponse.SerializeToString,
|
|
185
|
+
),
|
|
186
|
+
'WatchActionDetails': grpc.unary_stream_rpc_method_handler(
|
|
187
|
+
servicer.WatchActionDetails,
|
|
188
|
+
request_deserializer=workflow_dot_run__service__pb2.WatchActionDetailsRequest.FromString,
|
|
189
|
+
response_serializer=workflow_dot_run__service__pb2.WatchActionDetailsResponse.SerializeToString,
|
|
190
|
+
),
|
|
191
|
+
'GetActionData': grpc.unary_unary_rpc_method_handler(
|
|
192
|
+
servicer.GetActionData,
|
|
193
|
+
request_deserializer=workflow_dot_run__service__pb2.GetActionDataRequest.FromString,
|
|
194
|
+
response_serializer=workflow_dot_run__service__pb2.GetActionDataResponse.SerializeToString,
|
|
195
|
+
),
|
|
196
|
+
'ListRuns': grpc.unary_unary_rpc_method_handler(
|
|
197
|
+
servicer.ListRuns,
|
|
198
|
+
request_deserializer=workflow_dot_run__service__pb2.ListRunsRequest.FromString,
|
|
199
|
+
response_serializer=workflow_dot_run__service__pb2.ListRunsResponse.SerializeToString,
|
|
200
|
+
),
|
|
201
|
+
'WatchRuns': grpc.unary_stream_rpc_method_handler(
|
|
202
|
+
servicer.WatchRuns,
|
|
203
|
+
request_deserializer=workflow_dot_run__service__pb2.WatchRunsRequest.FromString,
|
|
204
|
+
response_serializer=workflow_dot_run__service__pb2.WatchRunsResponse.SerializeToString,
|
|
205
|
+
),
|
|
206
|
+
'ListActions': grpc.unary_unary_rpc_method_handler(
|
|
207
|
+
servicer.ListActions,
|
|
208
|
+
request_deserializer=workflow_dot_run__service__pb2.ListActionsRequest.FromString,
|
|
209
|
+
response_serializer=workflow_dot_run__service__pb2.ListActionsResponse.SerializeToString,
|
|
210
|
+
),
|
|
211
|
+
'WatchActions': grpc.unary_stream_rpc_method_handler(
|
|
212
|
+
servicer.WatchActions,
|
|
213
|
+
request_deserializer=workflow_dot_run__service__pb2.WatchActionsRequest.FromString,
|
|
214
|
+
response_serializer=workflow_dot_run__service__pb2.WatchActionsResponse.SerializeToString,
|
|
215
|
+
),
|
|
216
|
+
}
|
|
217
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
218
|
+
'cloudidl.workflow.RunService', rpc_method_handlers)
|
|
219
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
# This class is part of an EXPERIMENTAL API.
|
|
223
|
+
class RunService(object):
|
|
224
|
+
"""RunService provides an interface for managing runs.
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
@staticmethod
|
|
228
|
+
def CreateRun(request,
|
|
229
|
+
target,
|
|
230
|
+
options=(),
|
|
231
|
+
channel_credentials=None,
|
|
232
|
+
call_credentials=None,
|
|
233
|
+
insecure=False,
|
|
234
|
+
compression=None,
|
|
235
|
+
wait_for_ready=None,
|
|
236
|
+
timeout=None,
|
|
237
|
+
metadata=None):
|
|
238
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/CreateRun',
|
|
239
|
+
workflow_dot_run__service__pb2.CreateRunRequest.SerializeToString,
|
|
240
|
+
workflow_dot_run__service__pb2.CreateRunResponse.FromString,
|
|
241
|
+
options, channel_credentials,
|
|
242
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
243
|
+
|
|
244
|
+
@staticmethod
|
|
245
|
+
def AbortRun(request,
|
|
246
|
+
target,
|
|
247
|
+
options=(),
|
|
248
|
+
channel_credentials=None,
|
|
249
|
+
call_credentials=None,
|
|
250
|
+
insecure=False,
|
|
251
|
+
compression=None,
|
|
252
|
+
wait_for_ready=None,
|
|
253
|
+
timeout=None,
|
|
254
|
+
metadata=None):
|
|
255
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/AbortRun',
|
|
256
|
+
workflow_dot_run__service__pb2.AbortRunRequest.SerializeToString,
|
|
257
|
+
workflow_dot_run__service__pb2.AbortRunResponse.FromString,
|
|
258
|
+
options, channel_credentials,
|
|
259
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
260
|
+
|
|
261
|
+
@staticmethod
|
|
262
|
+
def GetRunDetails(request,
|
|
263
|
+
target,
|
|
264
|
+
options=(),
|
|
265
|
+
channel_credentials=None,
|
|
266
|
+
call_credentials=None,
|
|
267
|
+
insecure=False,
|
|
268
|
+
compression=None,
|
|
269
|
+
wait_for_ready=None,
|
|
270
|
+
timeout=None,
|
|
271
|
+
metadata=None):
|
|
272
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/GetRunDetails',
|
|
273
|
+
workflow_dot_run__service__pb2.GetRunDetailsRequest.SerializeToString,
|
|
274
|
+
workflow_dot_run__service__pb2.GetRunDetailsResponse.FromString,
|
|
275
|
+
options, channel_credentials,
|
|
276
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
277
|
+
|
|
278
|
+
@staticmethod
|
|
279
|
+
def WatchRunDetails(request,
|
|
280
|
+
target,
|
|
281
|
+
options=(),
|
|
282
|
+
channel_credentials=None,
|
|
283
|
+
call_credentials=None,
|
|
284
|
+
insecure=False,
|
|
285
|
+
compression=None,
|
|
286
|
+
wait_for_ready=None,
|
|
287
|
+
timeout=None,
|
|
288
|
+
metadata=None):
|
|
289
|
+
return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchRunDetails',
|
|
290
|
+
workflow_dot_run__service__pb2.WatchRunDetailsRequest.SerializeToString,
|
|
291
|
+
workflow_dot_run__service__pb2.WatchRunDetailsResponse.FromString,
|
|
292
|
+
options, channel_credentials,
|
|
293
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
294
|
+
|
|
295
|
+
@staticmethod
|
|
296
|
+
def GetActionDetails(request,
|
|
297
|
+
target,
|
|
298
|
+
options=(),
|
|
299
|
+
channel_credentials=None,
|
|
300
|
+
call_credentials=None,
|
|
301
|
+
insecure=False,
|
|
302
|
+
compression=None,
|
|
303
|
+
wait_for_ready=None,
|
|
304
|
+
timeout=None,
|
|
305
|
+
metadata=None):
|
|
306
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/GetActionDetails',
|
|
307
|
+
workflow_dot_run__service__pb2.GetActionDetailsRequest.SerializeToString,
|
|
308
|
+
workflow_dot_run__service__pb2.GetActionDetailsResponse.FromString,
|
|
309
|
+
options, channel_credentials,
|
|
310
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
311
|
+
|
|
312
|
+
@staticmethod
|
|
313
|
+
def WatchActionDetails(request,
|
|
314
|
+
target,
|
|
315
|
+
options=(),
|
|
316
|
+
channel_credentials=None,
|
|
317
|
+
call_credentials=None,
|
|
318
|
+
insecure=False,
|
|
319
|
+
compression=None,
|
|
320
|
+
wait_for_ready=None,
|
|
321
|
+
timeout=None,
|
|
322
|
+
metadata=None):
|
|
323
|
+
return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchActionDetails',
|
|
324
|
+
workflow_dot_run__service__pb2.WatchActionDetailsRequest.SerializeToString,
|
|
325
|
+
workflow_dot_run__service__pb2.WatchActionDetailsResponse.FromString,
|
|
326
|
+
options, channel_credentials,
|
|
327
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
328
|
+
|
|
329
|
+
@staticmethod
|
|
330
|
+
def GetActionData(request,
|
|
331
|
+
target,
|
|
332
|
+
options=(),
|
|
333
|
+
channel_credentials=None,
|
|
334
|
+
call_credentials=None,
|
|
335
|
+
insecure=False,
|
|
336
|
+
compression=None,
|
|
337
|
+
wait_for_ready=None,
|
|
338
|
+
timeout=None,
|
|
339
|
+
metadata=None):
|
|
340
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/GetActionData',
|
|
341
|
+
workflow_dot_run__service__pb2.GetActionDataRequest.SerializeToString,
|
|
342
|
+
workflow_dot_run__service__pb2.GetActionDataResponse.FromString,
|
|
343
|
+
options, channel_credentials,
|
|
344
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
345
|
+
|
|
346
|
+
@staticmethod
|
|
347
|
+
def ListRuns(request,
|
|
348
|
+
target,
|
|
349
|
+
options=(),
|
|
350
|
+
channel_credentials=None,
|
|
351
|
+
call_credentials=None,
|
|
352
|
+
insecure=False,
|
|
353
|
+
compression=None,
|
|
354
|
+
wait_for_ready=None,
|
|
355
|
+
timeout=None,
|
|
356
|
+
metadata=None):
|
|
357
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/ListRuns',
|
|
358
|
+
workflow_dot_run__service__pb2.ListRunsRequest.SerializeToString,
|
|
359
|
+
workflow_dot_run__service__pb2.ListRunsResponse.FromString,
|
|
360
|
+
options, channel_credentials,
|
|
361
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
362
|
+
|
|
363
|
+
@staticmethod
|
|
364
|
+
def WatchRuns(request,
|
|
365
|
+
target,
|
|
366
|
+
options=(),
|
|
367
|
+
channel_credentials=None,
|
|
368
|
+
call_credentials=None,
|
|
369
|
+
insecure=False,
|
|
370
|
+
compression=None,
|
|
371
|
+
wait_for_ready=None,
|
|
372
|
+
timeout=None,
|
|
373
|
+
metadata=None):
|
|
374
|
+
return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchRuns',
|
|
375
|
+
workflow_dot_run__service__pb2.WatchRunsRequest.SerializeToString,
|
|
376
|
+
workflow_dot_run__service__pb2.WatchRunsResponse.FromString,
|
|
377
|
+
options, channel_credentials,
|
|
378
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
379
|
+
|
|
380
|
+
@staticmethod
|
|
381
|
+
def ListActions(request,
|
|
382
|
+
target,
|
|
383
|
+
options=(),
|
|
384
|
+
channel_credentials=None,
|
|
385
|
+
call_credentials=None,
|
|
386
|
+
insecure=False,
|
|
387
|
+
compression=None,
|
|
388
|
+
wait_for_ready=None,
|
|
389
|
+
timeout=None,
|
|
390
|
+
metadata=None):
|
|
391
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/ListActions',
|
|
392
|
+
workflow_dot_run__service__pb2.ListActionsRequest.SerializeToString,
|
|
393
|
+
workflow_dot_run__service__pb2.ListActionsResponse.FromString,
|
|
394
|
+
options, channel_credentials,
|
|
395
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
396
|
+
|
|
397
|
+
@staticmethod
|
|
398
|
+
def WatchActions(request,
|
|
399
|
+
target,
|
|
400
|
+
options=(),
|
|
401
|
+
channel_credentials=None,
|
|
402
|
+
call_credentials=None,
|
|
403
|
+
insecure=False,
|
|
404
|
+
compression=None,
|
|
405
|
+
wait_for_ready=None,
|
|
406
|
+
timeout=None,
|
|
407
|
+
metadata=None):
|
|
408
|
+
return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchActions',
|
|
409
|
+
workflow_dot_run__service__pb2.WatchActionsRequest.SerializeToString,
|
|
410
|
+
workflow_dot_run__service__pb2.WatchActionsResponse.FromString,
|
|
411
|
+
options, channel_credentials,
|
|
412
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: workflow/state_service.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 flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2
|
|
15
|
+
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
16
|
+
from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__definition__pb2
|
|
17
|
+
from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cworkflow/state_service.proto\x12\x11\x63loudidl.workflow\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\xc3\x01\n\x0cStoreRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12\x31\n\x12parent_action_name\x18\x02 \x01(\tH\x00R\x10parentActionName\x88\x01\x01\x12\x1d\n\x05state\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x05stateB\x15\n\x13_parent_action_name\"\x0f\n\rStoreResponse\"\xb6\x01\n\x0bLoadRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12:\n\x07task_id\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierR\x06taskId\x12\x1f\n\x0binputs_hash\x18\x03 \x01(\x03R\ninputsHash\"-\n\x0cLoadResponse\x12\x1d\n\x05state\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x05state\"n\n\x0cWatchRequest\x12O\n\x10parent_action_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierH\x00R\x0eparentActionIdB\r\n\x06\x66ilter\x12\x03\xf8\x42\x01\"\xb0\x01\n\rWatchResponse\x12\x46\n\raction_update\x18\x01 \x01(\x0b\x32\x1f.cloudidl.workflow.ActionUpdateH\x00R\x0c\x61\x63tionUpdate\x12L\n\x0f\x63ontrol_message\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.ControlMessageH\x00R\x0e\x63ontrolMessageB\t\n\x07message\",\n\x0e\x43ontrolMessage\x12\x1a\n\x08sentinel\x18\x01 \x01(\x08R\x08sentinel\"\xed\x01\n\x0c\x41\x63tionUpdate\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12.\n\x05phase\x18\x02 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x38\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x88\x01\x01\x12\x1d\n\noutput_uri\x18\x04 \x01(\tR\toutputUriB\x08\n\x06_error2\xf7\x01\n\x0cStateService\x12L\n\x05Store\x12\x1f.cloudidl.workflow.StoreRequest\x1a .cloudidl.workflow.StoreResponse\"\x00\x12I\n\x04Load\x12\x1e.cloudidl.workflow.LoadRequest\x1a\x1f.cloudidl.workflow.LoadResponse\"\x00\x12N\n\x05Watch\x12\x1f.cloudidl.workflow.WatchRequest\x1a .cloudidl.workflow.WatchResponse\"\x00\x30\x01\x42\xbe\x01\n\x15\x63om.cloudidl.workflowB\x11StateServiceProtoH\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')
|
|
21
|
+
|
|
22
|
+
_globals = globals()
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.state_service_pb2', _globals)
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
DESCRIPTOR._options = None
|
|
27
|
+
DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\021StateServiceProtoH\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'
|
|
28
|
+
_STOREREQUEST.fields_by_name['action_id']._options = None
|
|
29
|
+
_STOREREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
30
|
+
_STOREREQUEST.fields_by_name['state']._options = None
|
|
31
|
+
_STOREREQUEST.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001'
|
|
32
|
+
_LOADREQUEST.fields_by_name['action_id']._options = None
|
|
33
|
+
_LOADREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
34
|
+
_LOADRESPONSE.fields_by_name['state']._options = None
|
|
35
|
+
_LOADRESPONSE.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001'
|
|
36
|
+
_WATCHREQUEST.oneofs_by_name['filter']._options = None
|
|
37
|
+
_WATCHREQUEST.oneofs_by_name['filter']._serialized_options = b'\370B\001'
|
|
38
|
+
_ACTIONUPDATE.fields_by_name['action_id']._options = None
|
|
39
|
+
_ACTIONUPDATE.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
40
|
+
_globals['_STOREREQUEST']._serialized_start=171
|
|
41
|
+
_globals['_STOREREQUEST']._serialized_end=366
|
|
42
|
+
_globals['_STORERESPONSE']._serialized_start=368
|
|
43
|
+
_globals['_STORERESPONSE']._serialized_end=383
|
|
44
|
+
_globals['_LOADREQUEST']._serialized_start=386
|
|
45
|
+
_globals['_LOADREQUEST']._serialized_end=568
|
|
46
|
+
_globals['_LOADRESPONSE']._serialized_start=570
|
|
47
|
+
_globals['_LOADRESPONSE']._serialized_end=615
|
|
48
|
+
_globals['_WATCHREQUEST']._serialized_start=617
|
|
49
|
+
_globals['_WATCHREQUEST']._serialized_end=727
|
|
50
|
+
_globals['_WATCHRESPONSE']._serialized_start=730
|
|
51
|
+
_globals['_WATCHRESPONSE']._serialized_end=906
|
|
52
|
+
_globals['_CONTROLMESSAGE']._serialized_start=908
|
|
53
|
+
_globals['_CONTROLMESSAGE']._serialized_end=952
|
|
54
|
+
_globals['_ACTIONUPDATE']._serialized_start=955
|
|
55
|
+
_globals['_ACTIONUPDATE']._serialized_end=1192
|
|
56
|
+
_globals['_STATESERVICE']._serialized_start=1195
|
|
57
|
+
_globals['_STATESERVICE']._serialized_end=1442
|
|
58
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
from flyteidl.core import execution_pb2 as _execution_pb2
|
|
2
|
+
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
3
|
+
from flyte._protos.workflow import run_definition_pb2 as _run_definition_pb2
|
|
4
|
+
from flyte._protos.workflow import task_definition_pb2 as _task_definition_pb2
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
8
|
+
|
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
+
|
|
11
|
+
class StoreRequest(_message.Message):
|
|
12
|
+
__slots__ = ["action_id", "parent_action_name", "state"]
|
|
13
|
+
ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
PARENT_ACTION_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
action_id: _run_definition_pb2.ActionIdentifier
|
|
17
|
+
parent_action_name: str
|
|
18
|
+
state: str
|
|
19
|
+
def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., parent_action_name: _Optional[str] = ..., state: _Optional[str] = ...) -> None: ...
|
|
20
|
+
|
|
21
|
+
class StoreResponse(_message.Message):
|
|
22
|
+
__slots__ = []
|
|
23
|
+
def __init__(self) -> None: ...
|
|
24
|
+
|
|
25
|
+
class LoadRequest(_message.Message):
|
|
26
|
+
__slots__ = ["action_id", "task_id", "inputs_hash"]
|
|
27
|
+
ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
INPUTS_HASH_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
action_id: _run_definition_pb2.ActionIdentifier
|
|
31
|
+
task_id: _task_definition_pb2.TaskIdentifier
|
|
32
|
+
inputs_hash: int
|
|
33
|
+
def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., inputs_hash: _Optional[int] = ...) -> None: ...
|
|
34
|
+
|
|
35
|
+
class LoadResponse(_message.Message):
|
|
36
|
+
__slots__ = ["state"]
|
|
37
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
state: str
|
|
39
|
+
def __init__(self, state: _Optional[str] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class WatchRequest(_message.Message):
|
|
42
|
+
__slots__ = ["parent_action_id"]
|
|
43
|
+
PARENT_ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
parent_action_id: _run_definition_pb2.ActionIdentifier
|
|
45
|
+
def __init__(self, parent_action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ...) -> None: ...
|
|
46
|
+
|
|
47
|
+
class WatchResponse(_message.Message):
|
|
48
|
+
__slots__ = ["action_update", "control_message"]
|
|
49
|
+
ACTION_UPDATE_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
CONTROL_MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
action_update: ActionUpdate
|
|
52
|
+
control_message: ControlMessage
|
|
53
|
+
def __init__(self, action_update: _Optional[_Union[ActionUpdate, _Mapping]] = ..., control_message: _Optional[_Union[ControlMessage, _Mapping]] = ...) -> None: ...
|
|
54
|
+
|
|
55
|
+
class ControlMessage(_message.Message):
|
|
56
|
+
__slots__ = ["sentinel"]
|
|
57
|
+
SENTINEL_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
sentinel: bool
|
|
59
|
+
def __init__(self, sentinel: bool = ...) -> None: ...
|
|
60
|
+
|
|
61
|
+
class ActionUpdate(_message.Message):
|
|
62
|
+
__slots__ = ["action_id", "phase", "error", "output_uri"]
|
|
63
|
+
ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
PHASE_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
OUTPUT_URI_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
action_id: _run_definition_pb2.ActionIdentifier
|
|
68
|
+
phase: _run_definition_pb2.Phase
|
|
69
|
+
error: _execution_pb2.ExecutionError
|
|
70
|
+
output_uri: str
|
|
71
|
+
def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., phase: _Optional[_Union[_run_definition_pb2.Phase, str]] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_uri: _Optional[str] = ...) -> None: ...
|