flyte 2.0.0b21__py3-none-any.whl → 2.0.0b23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of flyte might be problematic. Click here for more details.
- flyte/__init__.py +5 -0
- flyte/_bin/runtime.py +36 -6
- flyte/_cache/cache.py +4 -2
- flyte/_cache/local_cache.py +215 -0
- flyte/_code_bundle/bundle.py +1 -0
- flyte/_debug/constants.py +0 -1
- flyte/_debug/vscode.py +6 -1
- flyte/_deploy.py +204 -55
- flyte/_environment.py +5 -0
- flyte/_excepthook.py +1 -1
- flyte/_image.py +101 -68
- flyte/_initialize.py +30 -1
- flyte/_interface.py +3 -1
- flyte/_internal/controllers/_local_controller.py +64 -24
- flyte/_internal/controllers/remote/_action.py +4 -1
- flyte/_internal/controllers/remote/_controller.py +5 -2
- flyte/_internal/controllers/remote/_core.py +6 -3
- flyte/_internal/controllers/remote/_informer.py +1 -1
- flyte/_internal/imagebuild/docker_builder.py +95 -28
- flyte/_internal/imagebuild/image_builder.py +0 -5
- flyte/_internal/imagebuild/remote_builder.py +6 -1
- flyte/_internal/runtime/io.py +13 -1
- flyte/_internal/runtime/rusty.py +17 -2
- flyte/_internal/runtime/task_serde.py +15 -11
- flyte/_internal/runtime/taskrunner.py +1 -1
- flyte/_internal/runtime/trigger_serde.py +153 -0
- flyte/_keyring/file.py +2 -2
- flyte/_logging.py +1 -1
- flyte/_protos/common/identifier_pb2.py +19 -1
- flyte/_protos/common/identifier_pb2.pyi +22 -0
- flyte/_protos/workflow/common_pb2.py +14 -3
- flyte/_protos/workflow/common_pb2.pyi +49 -0
- flyte/_protos/workflow/queue_service_pb2.py +41 -35
- flyte/_protos/workflow/queue_service_pb2.pyi +26 -12
- flyte/_protos/workflow/queue_service_pb2_grpc.py +34 -0
- flyte/_protos/workflow/run_definition_pb2.py +38 -38
- flyte/_protos/workflow/run_definition_pb2.pyi +4 -2
- flyte/_protos/workflow/run_service_pb2.py +60 -50
- flyte/_protos/workflow/run_service_pb2.pyi +24 -6
- flyte/_protos/workflow/run_service_pb2_grpc.py +34 -0
- flyte/_protos/workflow/task_definition_pb2.py +15 -11
- flyte/_protos/workflow/task_definition_pb2.pyi +19 -2
- flyte/_protos/workflow/task_service_pb2.py +18 -17
- flyte/_protos/workflow/task_service_pb2.pyi +5 -2
- flyte/_protos/workflow/trigger_definition_pb2.py +66 -0
- flyte/_protos/workflow/trigger_definition_pb2.pyi +117 -0
- flyte/_protos/workflow/trigger_definition_pb2_grpc.py +4 -0
- flyte/_protos/workflow/trigger_service_pb2.py +96 -0
- flyte/_protos/workflow/trigger_service_pb2.pyi +110 -0
- flyte/_protos/workflow/trigger_service_pb2_grpc.py +281 -0
- flyte/_run.py +42 -15
- flyte/_task.py +35 -4
- flyte/_task_environment.py +61 -16
- flyte/_trigger.py +382 -0
- flyte/_version.py +3 -3
- flyte/cli/_abort.py +3 -3
- flyte/cli/_build.py +1 -3
- flyte/cli/_common.py +17 -4
- flyte/cli/_create.py +74 -0
- flyte/cli/_delete.py +23 -1
- flyte/cli/_deploy.py +16 -10
- flyte/cli/_get.py +75 -34
- flyte/cli/_params.py +4 -2
- flyte/cli/_run.py +25 -6
- flyte/cli/_update.py +36 -0
- flyte/cli/_user.py +17 -0
- flyte/cli/main.py +9 -1
- flyte/errors.py +9 -0
- flyte/io/_dir.py +513 -115
- flyte/io/_file.py +495 -135
- flyte/models.py +32 -0
- flyte/remote/__init__.py +6 -1
- flyte/remote/_action.py +9 -8
- flyte/remote/_client/_protocols.py +36 -2
- flyte/remote/_client/controlplane.py +19 -3
- flyte/remote/_run.py +42 -2
- flyte/remote/_task.py +14 -1
- flyte/remote/_trigger.py +308 -0
- flyte/remote/_user.py +33 -0
- flyte/storage/__init__.py +6 -1
- flyte/storage/_storage.py +119 -101
- flyte/types/_pickle.py +34 -7
- flyte/types/_type_engine.py +6 -0
- {flyte-2.0.0b21.data → flyte-2.0.0b23.data}/scripts/runtime.py +36 -6
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/METADATA +3 -1
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/RECORD +91 -79
- flyte/_protos/secret/secret_pb2_grpc_grpc.py +0 -198
- {flyte-2.0.0b21.data → flyte-2.0.0b23.data}/scripts/debug.py +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/WHEEL +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/entry_points.txt +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/licenses/LICENSE +0 -0
- {flyte-2.0.0b21.dist-info → flyte-2.0.0b23.dist-info}/top_level.txt +0 -0
|
@@ -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\"\
|
|
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\"\x81\x04\n\x10\x43reateRunRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32\x1e.cloudidl.common.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\x12K\n\x0ctrigger_name\x18\x07 \x01(\x0b\x32\x1c.cloudidl.common.TriggerNameB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x0btriggerName\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\"z\n\x0f\x41\x62ortRunRequest\x12?\n\x06run_id\x18\x01 \x01(\x0b\x32\x1e.cloudidl.common.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\x12\x1b\n\x06reason\x18\x02 \x01(\tH\x00R\x06reason\x88\x01\x01\x42\t\n\x07_reason\"\x12\n\x10\x41\x62ortRunResponse\"W\n\x14GetRunDetailsRequest\x12?\n\x06run_id\x18\x01 \x01(\x0b\x32\x1e.cloudidl.common.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\"Y\n\x16WatchRunDetailsRequest\x12?\n\x06run_id\x18\x01 \x01(\x0b\x32\x1e.cloudidl.common.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\"c\n\x17GetActionDetailsRequest\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.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\"e\n\x19WatchActionDetailsRequest\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.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\"`\n\x14GetActionDataRequest\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.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\"\x9f\x02\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\tprojectId\x12K\n\x0ctrigger_name\x18\x06 \x01(\x0b\x32\x1c.cloudidl.common.TriggerNameB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x0btriggerNameB\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\"\x8d\x01\n\x12ListActionsRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12?\n\x06run_id\x18\x02 \x01(\x0b\x32\x1e.cloudidl.common.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\"\x87\x01\n\x13WatchActionsRequest\x12?\n\x06run_id\x18\x01 \x01(\x0b\x32\x1e.cloudidl.common.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\x65nrichedActions\"{\n\x19WatchClusterEventsRequest\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12!\n\x07\x61ttempt\x18\x02 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x07\x61ttempt\"d\n\x1aWatchClusterEventsResponse\x12\x46\n\x0e\x63luster_events\x18\x01 \x03(\x0b\x32\x1f.cloudidl.workflow.ClusterEventR\rclusterEvents\"v\n\x12\x41\x62ortActionRequest\x12H\n\taction_id\x18\x01 \x01(\x0b\x32!.cloudidl.common.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\"\x15\n\x13\x41\x62ortActionResponse2\xbb\n\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\x12u\n\x12WatchClusterEvents\x12,.cloudidl.workflow.WatchClusterEventsRequest\x1a-.cloudidl.workflow.WatchClusterEventsResponse\"\x00\x30\x01\x12^\n\x0b\x41\x62ortAction\x12%.cloudidl.workflow.AbortActionRequest\x1a&.cloudidl.workflow.AbortActionResponse\"\x00\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)
|
|
@@ -38,6 +38,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
38
38
|
_CREATERUNREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
39
39
|
_CREATERUNREQUEST.fields_by_name['task_spec']._options = None
|
|
40
40
|
_CREATERUNREQUEST.fields_by_name['task_spec']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
41
|
+
_CREATERUNREQUEST.fields_by_name['trigger_name']._options = None
|
|
42
|
+
_CREATERUNREQUEST.fields_by_name['trigger_name']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
41
43
|
_ABORTRUNREQUEST.fields_by_name['run_id']._options = None
|
|
42
44
|
_ABORTRUNREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
43
45
|
_GETRUNDETAILSREQUEST.fields_by_name['run_id']._options = None
|
|
@@ -56,6 +58,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
56
58
|
_LISTRUNSREQUEST.fields_by_name['org']._serialized_options = b'\372B\004r\002\020\001'
|
|
57
59
|
_LISTRUNSREQUEST.fields_by_name['project_id']._options = None
|
|
58
60
|
_LISTRUNSREQUEST.fields_by_name['project_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
61
|
+
_LISTRUNSREQUEST.fields_by_name['trigger_name']._options = None
|
|
62
|
+
_LISTRUNSREQUEST.fields_by_name['trigger_name']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
59
63
|
_WATCHRUNSREQUEST.oneofs_by_name['target']._options = None
|
|
60
64
|
_WATCHRUNSREQUEST.oneofs_by_name['target']._serialized_options = b'\370B\001'
|
|
61
65
|
_WATCHRUNSREQUEST.fields_by_name['org']._options = None
|
|
@@ -74,6 +78,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
74
78
|
_WATCHCLUSTEREVENTSREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
75
79
|
_WATCHCLUSTEREVENTSREQUEST.fields_by_name['attempt']._options = None
|
|
76
80
|
_WATCHCLUSTEREVENTSREQUEST.fields_by_name['attempt']._serialized_options = b'\372B\004*\002 \000'
|
|
81
|
+
_ABORTACTIONREQUEST.fields_by_name['action_id']._options = None
|
|
82
|
+
_ABORTACTIONREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
77
83
|
_RUNSERVICE.methods_by_name['GetRunDetails']._options = None
|
|
78
84
|
_RUNSERVICE.methods_by_name['GetRunDetails']._serialized_options = b'\220\002\001'
|
|
79
85
|
_RUNSERVICE.methods_by_name['GetActionDetails']._options = None
|
|
@@ -85,53 +91,57 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
85
91
|
_RUNSERVICE.methods_by_name['ListActions']._options = None
|
|
86
92
|
_RUNSERVICE.methods_by_name['ListActions']._serialized_options = b'\220\002\001'
|
|
87
93
|
_globals['_CREATERUNREQUEST']._serialized_start=182
|
|
88
|
-
_globals['_CREATERUNREQUEST']._serialized_end=
|
|
89
|
-
_globals['_CREATERUNRESPONSE']._serialized_start=
|
|
90
|
-
_globals['_CREATERUNRESPONSE']._serialized_end=
|
|
91
|
-
_globals['_ABORTRUNREQUEST']._serialized_start=
|
|
92
|
-
_globals['_ABORTRUNREQUEST']._serialized_end=
|
|
93
|
-
_globals['_ABORTRUNRESPONSE']._serialized_start=
|
|
94
|
-
_globals['_ABORTRUNRESPONSE']._serialized_end=
|
|
95
|
-
_globals['_GETRUNDETAILSREQUEST']._serialized_start=
|
|
96
|
-
_globals['_GETRUNDETAILSREQUEST']._serialized_end=
|
|
97
|
-
_globals['_GETRUNDETAILSRESPONSE']._serialized_start=
|
|
98
|
-
_globals['_GETRUNDETAILSRESPONSE']._serialized_end=
|
|
99
|
-
_globals['_WATCHRUNDETAILSREQUEST']._serialized_start=
|
|
100
|
-
_globals['_WATCHRUNDETAILSREQUEST']._serialized_end=
|
|
101
|
-
_globals['_WATCHRUNDETAILSRESPONSE']._serialized_start=
|
|
102
|
-
_globals['_WATCHRUNDETAILSRESPONSE']._serialized_end=
|
|
103
|
-
_globals['_GETACTIONDETAILSREQUEST']._serialized_start=
|
|
104
|
-
_globals['_GETACTIONDETAILSREQUEST']._serialized_end=
|
|
105
|
-
_globals['_GETACTIONDETAILSRESPONSE']._serialized_start=
|
|
106
|
-
_globals['_GETACTIONDETAILSRESPONSE']._serialized_end=
|
|
107
|
-
_globals['_WATCHACTIONDETAILSREQUEST']._serialized_start=
|
|
108
|
-
_globals['_WATCHACTIONDETAILSREQUEST']._serialized_end=
|
|
109
|
-
_globals['_WATCHACTIONDETAILSRESPONSE']._serialized_start=
|
|
110
|
-
_globals['_WATCHACTIONDETAILSRESPONSE']._serialized_end=
|
|
111
|
-
_globals['_GETACTIONDATAREQUEST']._serialized_start=
|
|
112
|
-
_globals['_GETACTIONDATAREQUEST']._serialized_end=
|
|
113
|
-
_globals['_GETACTIONDATARESPONSE']._serialized_start=
|
|
114
|
-
_globals['_GETACTIONDATARESPONSE']._serialized_end=
|
|
115
|
-
_globals['_LISTRUNSREQUEST']._serialized_start=
|
|
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['_WATCHCLUSTEREVENTSREQUEST']._serialized_start=
|
|
132
|
-
_globals['_WATCHCLUSTEREVENTSREQUEST']._serialized_end=
|
|
133
|
-
_globals['_WATCHCLUSTEREVENTSRESPONSE']._serialized_start=
|
|
134
|
-
_globals['_WATCHCLUSTEREVENTSRESPONSE']._serialized_end=
|
|
135
|
-
_globals['
|
|
136
|
-
_globals['
|
|
94
|
+
_globals['_CREATERUNREQUEST']._serialized_end=695
|
|
95
|
+
_globals['_CREATERUNRESPONSE']._serialized_start=697
|
|
96
|
+
_globals['_CREATERUNRESPONSE']._serialized_end=758
|
|
97
|
+
_globals['_ABORTRUNREQUEST']._serialized_start=760
|
|
98
|
+
_globals['_ABORTRUNREQUEST']._serialized_end=882
|
|
99
|
+
_globals['_ABORTRUNRESPONSE']._serialized_start=884
|
|
100
|
+
_globals['_ABORTRUNRESPONSE']._serialized_end=902
|
|
101
|
+
_globals['_GETRUNDETAILSREQUEST']._serialized_start=904
|
|
102
|
+
_globals['_GETRUNDETAILSREQUEST']._serialized_end=991
|
|
103
|
+
_globals['_GETRUNDETAILSRESPONSE']._serialized_start=993
|
|
104
|
+
_globals['_GETRUNDETAILSRESPONSE']._serialized_end=1073
|
|
105
|
+
_globals['_WATCHRUNDETAILSREQUEST']._serialized_start=1075
|
|
106
|
+
_globals['_WATCHRUNDETAILSREQUEST']._serialized_end=1164
|
|
107
|
+
_globals['_WATCHRUNDETAILSRESPONSE']._serialized_start=1166
|
|
108
|
+
_globals['_WATCHRUNDETAILSRESPONSE']._serialized_end=1248
|
|
109
|
+
_globals['_GETACTIONDETAILSREQUEST']._serialized_start=1250
|
|
110
|
+
_globals['_GETACTIONDETAILSREQUEST']._serialized_end=1349
|
|
111
|
+
_globals['_GETACTIONDETAILSRESPONSE']._serialized_start=1351
|
|
112
|
+
_globals['_GETACTIONDETAILSRESPONSE']._serialized_end=1437
|
|
113
|
+
_globals['_WATCHACTIONDETAILSREQUEST']._serialized_start=1439
|
|
114
|
+
_globals['_WATCHACTIONDETAILSREQUEST']._serialized_end=1540
|
|
115
|
+
_globals['_WATCHACTIONDETAILSRESPONSE']._serialized_start=1542
|
|
116
|
+
_globals['_WATCHACTIONDETAILSRESPONSE']._serialized_end=1630
|
|
117
|
+
_globals['_GETACTIONDATAREQUEST']._serialized_start=1632
|
|
118
|
+
_globals['_GETACTIONDATAREQUEST']._serialized_end=1728
|
|
119
|
+
_globals['_GETACTIONDATARESPONSE']._serialized_start=1731
|
|
120
|
+
_globals['_GETACTIONDATARESPONSE']._serialized_end=1859
|
|
121
|
+
_globals['_LISTRUNSREQUEST']._serialized_start=1862
|
|
122
|
+
_globals['_LISTRUNSREQUEST']._serialized_end=2149
|
|
123
|
+
_globals['_LISTRUNSRESPONSE']._serialized_start=2151
|
|
124
|
+
_globals['_LISTRUNSRESPONSE']._serialized_end=2235
|
|
125
|
+
_globals['_WATCHRUNSREQUEST']._serialized_start=2238
|
|
126
|
+
_globals['_WATCHRUNSREQUEST']._serialized_end=2530
|
|
127
|
+
_globals['_WATCHRUNSRESPONSE']._serialized_start=2532
|
|
128
|
+
_globals['_WATCHRUNSRESPONSE']._serialized_end=2595
|
|
129
|
+
_globals['_LISTACTIONSREQUEST']._serialized_start=2598
|
|
130
|
+
_globals['_LISTACTIONSREQUEST']._serialized_end=2739
|
|
131
|
+
_globals['_LISTACTIONSRESPONSE']._serialized_start=2741
|
|
132
|
+
_globals['_LISTACTIONSRESPONSE']._serialized_end=2837
|
|
133
|
+
_globals['_WATCHACTIONSREQUEST']._serialized_start=2840
|
|
134
|
+
_globals['_WATCHACTIONSREQUEST']._serialized_end=2975
|
|
135
|
+
_globals['_WATCHACTIONSRESPONSE']._serialized_start=2977
|
|
136
|
+
_globals['_WATCHACTIONSRESPONSE']._serialized_end=3077
|
|
137
|
+
_globals['_WATCHCLUSTEREVENTSREQUEST']._serialized_start=3079
|
|
138
|
+
_globals['_WATCHCLUSTEREVENTSREQUEST']._serialized_end=3202
|
|
139
|
+
_globals['_WATCHCLUSTEREVENTSRESPONSE']._serialized_start=3204
|
|
140
|
+
_globals['_WATCHCLUSTEREVENTSRESPONSE']._serialized_end=3304
|
|
141
|
+
_globals['_ABORTACTIONREQUEST']._serialized_start=3306
|
|
142
|
+
_globals['_ABORTACTIONREQUEST']._serialized_end=3424
|
|
143
|
+
_globals['_ABORTACTIONRESPONSE']._serialized_start=3426
|
|
144
|
+
_globals['_ABORTACTIONRESPONSE']._serialized_end=3447
|
|
145
|
+
_globals['_RUNSERVICE']._serialized_start=3450
|
|
146
|
+
_globals['_RUNSERVICE']._serialized_end=4789
|
|
137
147
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -11,20 +11,22 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
|
|
|
11
11
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
12
|
|
|
13
13
|
class CreateRunRequest(_message.Message):
|
|
14
|
-
__slots__ = ["run_id", "project_id", "task_id", "task_spec", "inputs", "run_spec"]
|
|
14
|
+
__slots__ = ["run_id", "project_id", "task_id", "task_spec", "trigger_name", "inputs", "run_spec"]
|
|
15
15
|
RUN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
16
16
|
PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
17
17
|
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
18
18
|
TASK_SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
TRIGGER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
19
20
|
INPUTS_FIELD_NUMBER: _ClassVar[int]
|
|
20
21
|
RUN_SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
21
22
|
run_id: _identifier_pb2.RunIdentifier
|
|
22
23
|
project_id: _identifier_pb2.ProjectIdentifier
|
|
23
24
|
task_id: _task_definition_pb2.TaskIdentifier
|
|
24
25
|
task_spec: _task_definition_pb2.TaskSpec
|
|
26
|
+
trigger_name: _identifier_pb2.TriggerName
|
|
25
27
|
inputs: _run_definition_pb2.Inputs
|
|
26
28
|
run_spec: _run_definition_pb2.RunSpec
|
|
27
|
-
def __init__(self, run_id: _Optional[_Union[_identifier_pb2.RunIdentifier, _Mapping]] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., task_spec: _Optional[_Union[_task_definition_pb2.TaskSpec, _Mapping]] = ..., inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., run_spec: _Optional[_Union[_run_definition_pb2.RunSpec, _Mapping]] = ...) -> None: ...
|
|
29
|
+
def __init__(self, run_id: _Optional[_Union[_identifier_pb2.RunIdentifier, _Mapping]] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., task_spec: _Optional[_Union[_task_definition_pb2.TaskSpec, _Mapping]] = ..., trigger_name: _Optional[_Union[_identifier_pb2.TriggerName, _Mapping]] = ..., inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., run_spec: _Optional[_Union[_run_definition_pb2.RunSpec, _Mapping]] = ...) -> None: ...
|
|
28
30
|
|
|
29
31
|
class CreateRunResponse(_message.Message):
|
|
30
32
|
__slots__ = ["run"]
|
|
@@ -33,10 +35,12 @@ class CreateRunResponse(_message.Message):
|
|
|
33
35
|
def __init__(self, run: _Optional[_Union[_run_definition_pb2.Run, _Mapping]] = ...) -> None: ...
|
|
34
36
|
|
|
35
37
|
class AbortRunRequest(_message.Message):
|
|
36
|
-
__slots__ = ["run_id"]
|
|
38
|
+
__slots__ = ["run_id", "reason"]
|
|
37
39
|
RUN_ID_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
38
41
|
run_id: _identifier_pb2.RunIdentifier
|
|
39
|
-
|
|
42
|
+
reason: str
|
|
43
|
+
def __init__(self, run_id: _Optional[_Union[_identifier_pb2.RunIdentifier, _Mapping]] = ..., reason: _Optional[str] = ...) -> None: ...
|
|
40
44
|
|
|
41
45
|
class AbortRunResponse(_message.Message):
|
|
42
46
|
__slots__ = []
|
|
@@ -105,14 +109,16 @@ class GetActionDataResponse(_message.Message):
|
|
|
105
109
|
def __init__(self, inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., outputs: _Optional[_Union[_run_definition_pb2.Outputs, _Mapping]] = ...) -> None: ...
|
|
106
110
|
|
|
107
111
|
class ListRunsRequest(_message.Message):
|
|
108
|
-
__slots__ = ["request", "org", "project_id"]
|
|
112
|
+
__slots__ = ["request", "org", "project_id", "trigger_name"]
|
|
109
113
|
REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
110
114
|
ORG_FIELD_NUMBER: _ClassVar[int]
|
|
111
115
|
PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
TRIGGER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
112
117
|
request: _list_pb2.ListRequest
|
|
113
118
|
org: str
|
|
114
119
|
project_id: _identifier_pb2.ProjectIdentifier
|
|
115
|
-
|
|
120
|
+
trigger_name: _identifier_pb2.TriggerName
|
|
121
|
+
def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., org: _Optional[str] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., trigger_name: _Optional[_Union[_identifier_pb2.TriggerName, _Mapping]] = ...) -> None: ...
|
|
116
122
|
|
|
117
123
|
class ListRunsResponse(_message.Message):
|
|
118
124
|
__slots__ = ["runs", "token"]
|
|
@@ -183,3 +189,15 @@ class WatchClusterEventsResponse(_message.Message):
|
|
|
183
189
|
CLUSTER_EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
184
190
|
cluster_events: _containers.RepeatedCompositeFieldContainer[_run_definition_pb2.ClusterEvent]
|
|
185
191
|
def __init__(self, cluster_events: _Optional[_Iterable[_Union[_run_definition_pb2.ClusterEvent, _Mapping]]] = ...) -> None: ...
|
|
192
|
+
|
|
193
|
+
class AbortActionRequest(_message.Message):
|
|
194
|
+
__slots__ = ["action_id", "reason"]
|
|
195
|
+
ACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
196
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
197
|
+
action_id: _identifier_pb2.ActionIdentifier
|
|
198
|
+
reason: str
|
|
199
|
+
def __init__(self, action_id: _Optional[_Union[_identifier_pb2.ActionIdentifier, _Mapping]] = ..., reason: _Optional[str] = ...) -> None: ...
|
|
200
|
+
|
|
201
|
+
class AbortActionResponse(_message.Message):
|
|
202
|
+
__slots__ = []
|
|
203
|
+
def __init__(self) -> None: ...
|
|
@@ -75,6 +75,11 @@ class RunServiceStub(object):
|
|
|
75
75
|
request_serializer=workflow_dot_run__service__pb2.WatchClusterEventsRequest.SerializeToString,
|
|
76
76
|
response_deserializer=workflow_dot_run__service__pb2.WatchClusterEventsResponse.FromString,
|
|
77
77
|
)
|
|
78
|
+
self.AbortAction = channel.unary_unary(
|
|
79
|
+
'/cloudidl.workflow.RunService/AbortAction',
|
|
80
|
+
request_serializer=workflow_dot_run__service__pb2.AbortActionRequest.SerializeToString,
|
|
81
|
+
response_deserializer=workflow_dot_run__service__pb2.AbortActionResponse.FromString,
|
|
82
|
+
)
|
|
78
83
|
|
|
79
84
|
|
|
80
85
|
class RunServiceServicer(object):
|
|
@@ -167,6 +172,13 @@ class RunServiceServicer(object):
|
|
|
167
172
|
context.set_details('Method not implemented!')
|
|
168
173
|
raise NotImplementedError('Method not implemented!')
|
|
169
174
|
|
|
175
|
+
def AbortAction(self, request, context):
|
|
176
|
+
"""AbortAction aborts a single action that was previously created or is currently being processed by a worker.
|
|
177
|
+
"""
|
|
178
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
179
|
+
context.set_details('Method not implemented!')
|
|
180
|
+
raise NotImplementedError('Method not implemented!')
|
|
181
|
+
|
|
170
182
|
|
|
171
183
|
def add_RunServiceServicer_to_server(servicer, server):
|
|
172
184
|
rpc_method_handlers = {
|
|
@@ -230,6 +242,11 @@ def add_RunServiceServicer_to_server(servicer, server):
|
|
|
230
242
|
request_deserializer=workflow_dot_run__service__pb2.WatchClusterEventsRequest.FromString,
|
|
231
243
|
response_serializer=workflow_dot_run__service__pb2.WatchClusterEventsResponse.SerializeToString,
|
|
232
244
|
),
|
|
245
|
+
'AbortAction': grpc.unary_unary_rpc_method_handler(
|
|
246
|
+
servicer.AbortAction,
|
|
247
|
+
request_deserializer=workflow_dot_run__service__pb2.AbortActionRequest.FromString,
|
|
248
|
+
response_serializer=workflow_dot_run__service__pb2.AbortActionResponse.SerializeToString,
|
|
249
|
+
),
|
|
233
250
|
}
|
|
234
251
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
235
252
|
'cloudidl.workflow.RunService', rpc_method_handlers)
|
|
@@ -444,3 +461,20 @@ class RunService(object):
|
|
|
444
461
|
workflow_dot_run__service__pb2.WatchClusterEventsResponse.FromString,
|
|
445
462
|
options, channel_credentials,
|
|
446
463
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
464
|
+
|
|
465
|
+
@staticmethod
|
|
466
|
+
def AbortAction(request,
|
|
467
|
+
target,
|
|
468
|
+
options=(),
|
|
469
|
+
channel_credentials=None,
|
|
470
|
+
call_credentials=None,
|
|
471
|
+
insecure=False,
|
|
472
|
+
compression=None,
|
|
473
|
+
wait_for_ready=None,
|
|
474
|
+
timeout=None,
|
|
475
|
+
metadata=None):
|
|
476
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/AbortAction',
|
|
477
|
+
workflow_dot_run__service__pb2.AbortActionRequest.SerializeToString,
|
|
478
|
+
workflow_dot_run__service__pb2.AbortActionResponse.FromString,
|
|
479
|
+
options, channel_credentials,
|
|
480
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -21,7 +21,7 @@ from flyte._protos.workflow import common_pb2 as workflow_dot_common__pb2
|
|
|
21
21
|
from flyte._protos.workflow import environment_pb2 as workflow_dot_environment__pb2
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1eworkflow/task_definition.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x15\x63ommon/identity.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\x1a\x15workflow/common.proto\x1a\x1aworkflow/environment.proto\"\x8f\x01\n\x08TaskName\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\x1e\n\x04name\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01R\x04name\"\xba\x01\n\x0eTaskIdentifier\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\x1e\n\x04name\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01R\x04name\x12#\n\x07version\x18\x05 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x07version\"\
|
|
24
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1eworkflow/task_definition.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x15\x63ommon/identity.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\x1a\x15workflow/common.proto\x1a\x1aworkflow/environment.proto\"\x8f\x01\n\x08TaskName\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\x1e\n\x04name\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01R\x04name\"\xba\x01\n\x0eTaskIdentifier\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\x1e\n\x04name\x18\x04 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01R\x04name\x12#\n\x07version\x18\x05 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x07version\"\x80\x02\n\x13TaskTriggersSummary\x12S\n\x0f\x61utomation_spec\x18\x01 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecH\x00R\x0e\x61utomationSpec\x12K\n\x05stats\x18\x02 \x01(\x0b\x32\x33.cloudidl.workflow.TaskTriggersSummary.TriggerStatsH\x00R\x05stats\x1a<\n\x0cTriggerStats\x12\x14\n\x05total\x18\x01 \x01(\rR\x05total\x12\x16\n\x06\x61\x63tive\x18\x02 \x01(\rR\x06\x61\x63tiveB\t\n\x07summary\"\xc0\x02\n\x0cTaskMetadata\x12L\n\x0b\x64\x65ployed_by\x18\x01 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\ndeployedBy\x12\x1d\n\nshort_name\x18\x02 \x01(\tR\tshortName\x12\x45\n\x0b\x64\x65ployed_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\ndeployedAt\x12)\n\x10\x65nvironment_name\x18\x04 \x01(\tR\x0f\x65nvironmentName\x12Q\n\x10triggers_summary\x18\x05 \x01(\x0b\x32&.cloudidl.workflow.TaskTriggersSummaryR\x0ftriggersSummary\"\x93\x01\n\x04Task\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\x12\x45\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.cloudidl.workflow.TaskMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08metadata\"\x8a\x02\n\x08TaskSpec\x12J\n\rtask_template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x0ctaskTemplate\x12H\n\x0e\x64\x65\x66\x61ult_inputs\x18\x02 \x03(\x0b\x32!.cloudidl.workflow.NamedParameterR\rdefaultInputs\x12&\n\nshort_name\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x18?R\tshortName\x12@\n\x0b\x65nvironment\x18\x04 \x01(\x0b\x32\x1e.cloudidl.workflow.EnvironmentR\x0b\x65nvironment\"H\n\tTraceSpec\x12;\n\tinterface\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\"\xd5\x01\n\x0bTaskDetails\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\x12\x45\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.cloudidl.workflow.TaskMetadataB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08metadata\x12\x39\n\x04spec\x18\x03 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04specB\xc0\x01\n\x15\x63om.cloudidl.workflowB\x13TaskDefinitionProtoH\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)
|
|
@@ -69,14 +69,18 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
69
69
|
_globals['_TASKNAME']._serialized_end=412
|
|
70
70
|
_globals['_TASKIDENTIFIER']._serialized_start=415
|
|
71
71
|
_globals['_TASKIDENTIFIER']._serialized_end=601
|
|
72
|
-
_globals['
|
|
73
|
-
_globals['
|
|
74
|
-
_globals['
|
|
75
|
-
_globals['
|
|
76
|
-
_globals['
|
|
77
|
-
_globals['
|
|
78
|
-
_globals['
|
|
79
|
-
_globals['
|
|
80
|
-
_globals['
|
|
81
|
-
_globals['
|
|
72
|
+
_globals['_TASKTRIGGERSSUMMARY']._serialized_start=604
|
|
73
|
+
_globals['_TASKTRIGGERSSUMMARY']._serialized_end=860
|
|
74
|
+
_globals['_TASKTRIGGERSSUMMARY_TRIGGERSTATS']._serialized_start=789
|
|
75
|
+
_globals['_TASKTRIGGERSSUMMARY_TRIGGERSTATS']._serialized_end=849
|
|
76
|
+
_globals['_TASKMETADATA']._serialized_start=863
|
|
77
|
+
_globals['_TASKMETADATA']._serialized_end=1183
|
|
78
|
+
_globals['_TASK']._serialized_start=1186
|
|
79
|
+
_globals['_TASK']._serialized_end=1333
|
|
80
|
+
_globals['_TASKSPEC']._serialized_start=1336
|
|
81
|
+
_globals['_TASKSPEC']._serialized_end=1602
|
|
82
|
+
_globals['_TRACESPEC']._serialized_start=1604
|
|
83
|
+
_globals['_TRACESPEC']._serialized_end=1676
|
|
84
|
+
_globals['_TASKDETAILS']._serialized_start=1679
|
|
85
|
+
_globals['_TASKDETAILS']._serialized_end=1892
|
|
82
86
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -39,17 +39,34 @@ class TaskIdentifier(_message.Message):
|
|
|
39
39
|
version: str
|
|
40
40
|
def __init__(self, org: _Optional[str] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., version: _Optional[str] = ...) -> None: ...
|
|
41
41
|
|
|
42
|
+
class TaskTriggersSummary(_message.Message):
|
|
43
|
+
__slots__ = ["automation_spec", "stats"]
|
|
44
|
+
class TriggerStats(_message.Message):
|
|
45
|
+
__slots__ = ["total", "active"]
|
|
46
|
+
TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
ACTIVE_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
total: int
|
|
49
|
+
active: int
|
|
50
|
+
def __init__(self, total: _Optional[int] = ..., active: _Optional[int] = ...) -> None: ...
|
|
51
|
+
AUTOMATION_SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
STATS_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
automation_spec: _common_pb2.TriggerAutomationSpec
|
|
54
|
+
stats: TaskTriggersSummary.TriggerStats
|
|
55
|
+
def __init__(self, automation_spec: _Optional[_Union[_common_pb2.TriggerAutomationSpec, _Mapping]] = ..., stats: _Optional[_Union[TaskTriggersSummary.TriggerStats, _Mapping]] = ...) -> None: ...
|
|
56
|
+
|
|
42
57
|
class TaskMetadata(_message.Message):
|
|
43
|
-
__slots__ = ["deployed_by", "short_name", "deployed_at", "environment_name"]
|
|
58
|
+
__slots__ = ["deployed_by", "short_name", "deployed_at", "environment_name", "triggers_summary"]
|
|
44
59
|
DEPLOYED_BY_FIELD_NUMBER: _ClassVar[int]
|
|
45
60
|
SHORT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
46
61
|
DEPLOYED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
47
62
|
ENVIRONMENT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
TRIGGERS_SUMMARY_FIELD_NUMBER: _ClassVar[int]
|
|
48
64
|
deployed_by: _identity_pb2.EnrichedIdentity
|
|
49
65
|
short_name: str
|
|
50
66
|
deployed_at: _timestamp_pb2.Timestamp
|
|
51
67
|
environment_name: str
|
|
52
|
-
|
|
68
|
+
triggers_summary: TaskTriggersSummary
|
|
69
|
+
def __init__(self, deployed_by: _Optional[_Union[_identity_pb2.EnrichedIdentity, _Mapping]] = ..., short_name: _Optional[str] = ..., deployed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., environment_name: _Optional[str] = ..., triggers_summary: _Optional[_Union[TaskTriggersSummary, _Mapping]] = ...) -> None: ...
|
|
53
70
|
|
|
54
71
|
class Task(_message.Message):
|
|
55
72
|
__slots__ = ["task_id", "metadata"]
|
|
@@ -15,9 +15,10 @@ from flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
|
|
|
15
15
|
from flyte._protos.common import list_pb2 as common_dot_list__pb2
|
|
16
16
|
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
17
17
|
from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
|
|
18
|
+
from flyte._protos.workflow import trigger_definition_pb2 as workflow_dot_trigger__definition__pb2
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bworkflow/task_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1eworkflow/task_definition.proto\"\
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bworkflow/task_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1eworkflow/task_definition.proto\x1a!workflow/trigger_definition.proto\"\xd0\x01\n\x11\x44\x65ployTaskRequest\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12:\n\x08triggers\x18\x03 \x03(\x0b\x32\x1e.cloudidl.workflow.TaskTriggerR\x08triggers\"\x14\n\x12\x44\x65ployTaskResponse\"]\n\x15GetTaskDetailsRequest\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\"R\n\x16GetTaskDetailsResponse\x12\x38\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1e.cloudidl.workflow.TaskDetailsR\x07\x64\x65tails\"\xdc\x02\n\x10ListTasksRequest\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\x03 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12T\n\rknown_filters\x18\x04 \x03(\x0b\x32/.cloudidl.workflow.ListTasksRequest.KnownFilterR\x0cknownFilters\x1a=\n\x0bKnownFilter\x12!\n\x0b\x64\x65ployed_by\x18\x01 \x01(\tH\x00R\ndeployedByB\x0b\n\tfilter_byB\x0f\n\x08scope_by\x12\x03\xf8\x42\x01\"X\n\x11ListTasksResponse\x12-\n\x05tasks\x18\x01 \x03(\x0b\x32\x17.cloudidl.workflow.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token2\xb3\x02\n\x0bTaskService\x12[\n\nDeployTask\x12$.cloudidl.workflow.DeployTaskRequest\x1a%.cloudidl.workflow.DeployTaskResponse\"\x00\x12j\n\x0eGetTaskDetails\x12(.cloudidl.workflow.GetTaskDetailsRequest\x1a).cloudidl.workflow.GetTaskDetailsResponse\"\x03\x90\x02\x01\x12[\n\tListTasks\x12#.cloudidl.workflow.ListTasksRequest\x1a$.cloudidl.workflow.ListTasksResponse\"\x03\x90\x02\x01\x42\xbd\x01\n\x15\x63om.cloudidl.workflowB\x10TaskServiceProtoH\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
|
|
|
22
23
|
_globals = globals()
|
|
23
24
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -41,20 +42,20 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
41
42
|
_TASKSERVICE.methods_by_name['GetTaskDetails']._serialized_options = b'\220\002\001'
|
|
42
43
|
_TASKSERVICE.methods_by_name['ListTasks']._options = None
|
|
43
44
|
_TASKSERVICE.methods_by_name['ListTasks']._serialized_options = b'\220\002\001'
|
|
44
|
-
_globals['_DEPLOYTASKREQUEST']._serialized_start=
|
|
45
|
-
_globals['_DEPLOYTASKREQUEST']._serialized_end=
|
|
46
|
-
_globals['_DEPLOYTASKRESPONSE']._serialized_start=
|
|
47
|
-
_globals['_DEPLOYTASKRESPONSE']._serialized_end=
|
|
48
|
-
_globals['_GETTASKDETAILSREQUEST']._serialized_start=
|
|
49
|
-
_globals['_GETTASKDETAILSREQUEST']._serialized_end=
|
|
50
|
-
_globals['_GETTASKDETAILSRESPONSE']._serialized_start=
|
|
51
|
-
_globals['_GETTASKDETAILSRESPONSE']._serialized_end=
|
|
52
|
-
_globals['_LISTTASKSREQUEST']._serialized_start=
|
|
53
|
-
_globals['_LISTTASKSREQUEST']._serialized_end=
|
|
54
|
-
_globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_start=
|
|
55
|
-
_globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_end=
|
|
56
|
-
_globals['_LISTTASKSRESPONSE']._serialized_start=
|
|
57
|
-
_globals['_LISTTASKSRESPONSE']._serialized_end=
|
|
58
|
-
_globals['_TASKSERVICE']._serialized_start=
|
|
59
|
-
_globals['_TASKSERVICE']._serialized_end=
|
|
45
|
+
_globals['_DEPLOYTASKREQUEST']._serialized_start=187
|
|
46
|
+
_globals['_DEPLOYTASKREQUEST']._serialized_end=395
|
|
47
|
+
_globals['_DEPLOYTASKRESPONSE']._serialized_start=397
|
|
48
|
+
_globals['_DEPLOYTASKRESPONSE']._serialized_end=417
|
|
49
|
+
_globals['_GETTASKDETAILSREQUEST']._serialized_start=419
|
|
50
|
+
_globals['_GETTASKDETAILSREQUEST']._serialized_end=512
|
|
51
|
+
_globals['_GETTASKDETAILSRESPONSE']._serialized_start=514
|
|
52
|
+
_globals['_GETTASKDETAILSRESPONSE']._serialized_end=596
|
|
53
|
+
_globals['_LISTTASKSREQUEST']._serialized_start=599
|
|
54
|
+
_globals['_LISTTASKSREQUEST']._serialized_end=947
|
|
55
|
+
_globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_start=869
|
|
56
|
+
_globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_end=930
|
|
57
|
+
_globals['_LISTTASKSRESPONSE']._serialized_start=949
|
|
58
|
+
_globals['_LISTTASKSRESPONSE']._serialized_end=1037
|
|
59
|
+
_globals['_TASKSERVICE']._serialized_start=1040
|
|
60
|
+
_globals['_TASKSERVICE']._serialized_end=1347
|
|
60
61
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -2,6 +2,7 @@ from flyte._protos.common import identifier_pb2 as _identifier_pb2
|
|
|
2
2
|
from flyte._protos.common import list_pb2 as _list_pb2
|
|
3
3
|
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
4
4
|
from flyte._protos.workflow import task_definition_pb2 as _task_definition_pb2
|
|
5
|
+
from flyte._protos.workflow import trigger_definition_pb2 as _trigger_definition_pb2
|
|
5
6
|
from google.protobuf.internal import containers as _containers
|
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
|
7
8
|
from google.protobuf import message as _message
|
|
@@ -10,12 +11,14 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
|
|
|
10
11
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
12
|
|
|
12
13
|
class DeployTaskRequest(_message.Message):
|
|
13
|
-
__slots__ = ["task_id", "spec"]
|
|
14
|
+
__slots__ = ["task_id", "spec", "triggers"]
|
|
14
15
|
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
15
16
|
SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
TRIGGERS_FIELD_NUMBER: _ClassVar[int]
|
|
16
18
|
task_id: _task_definition_pb2.TaskIdentifier
|
|
17
19
|
spec: _task_definition_pb2.TaskSpec
|
|
18
|
-
|
|
20
|
+
triggers: _containers.RepeatedCompositeFieldContainer[_trigger_definition_pb2.TaskTrigger]
|
|
21
|
+
def __init__(self, task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., spec: _Optional[_Union[_task_definition_pb2.TaskSpec, _Mapping]] = ..., triggers: _Optional[_Iterable[_Union[_trigger_definition_pb2.TaskTrigger, _Mapping]]] = ...) -> None: ...
|
|
19
22
|
|
|
20
23
|
class DeployTaskResponse(_message.Message):
|
|
21
24
|
__slots__ = []
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: workflow/trigger_definition.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.common import identifier_pb2 as common_dot_identifier__pb2
|
|
15
|
+
from flyte._protos.common import identity_pb2 as common_dot_identity__pb2
|
|
16
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
17
|
+
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
18
|
+
from flyte._protos.workflow import common_pb2 as workflow_dot_common__pb2
|
|
19
|
+
from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__definition__pb2
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!workflow/trigger_definition.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x15\x63ommon/identity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\x1a\x15workflow/common.proto\x1a\x1dworkflow/run_definition.proto\"\xab\x01\n\x0fTriggerMetadata\x12L\n\x0b\x64\x65ployed_by\x18\x01 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\ndeployedBy\x12J\n\nupdated_by\x18\x02 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\tupdatedBy\"\xc3\x01\n\x0bTriggerSpec\x12\x31\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x03 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec\x12\x16\n\x06\x61\x63tive\x18\x04 \x01(\x08R\x06\x61\x63tive\x12,\n\x0ctask_version\x18\x05 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x0btaskVersionJ\x04\x08\x01\x10\x02\"\x95\x02\n\rTriggerStatus\x12\x45\n\x0b\x64\x65ployed_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\ndeployedAt\x12\x43\n\nupdated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\tupdatedAt\x12=\n\x0ctriggered_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0btriggeredAt\x12\x39\n\ndeleted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tdeletedAt\"\xa8\x02\n\x07Trigger\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierR\x02id\x12>\n\x08metadata\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TriggerMetadataR\x08metadata\x12\x38\n\x06status\x18\x03 \x01(\x0b\x32 .cloudidl.workflow.TriggerStatusR\x06status\x12\x16\n\x06\x61\x63tive\x18\x05 \x01(\x08R\x06\x61\x63tive\x12Q\n\x0f\x61utomation_spec\x18\x06 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpecJ\x04\x08\x04\x10\x05\"\x81\x02\n\x0fTriggerRevision\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierR\x02id\x12>\n\x08metadata\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TriggerMetadataR\x08metadata\x12\x38\n\x06status\x18\x03 \x01(\x0b\x32 .cloudidl.workflow.TriggerStatusR\x06status\x12@\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32(.cloudidl.workflow.TriggerRevisionActionR\x06\x61\x63tion\"\xd9\x02\n\x0eTriggerDetails\x12<\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12>\n\x08metadata\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TriggerMetadataR\x08metadata\x12<\n\x04spec\x18\x03 \x01(\x0b\x32\x1e.cloudidl.workflow.TriggerSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12\x38\n\x06status\x18\x04 \x01(\x0b\x32 .cloudidl.workflow.TriggerStatusR\x06status\x12Q\n\x0f\x61utomation_spec\x18\x05 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpec\"\xc2\x01\n\x0bTaskTrigger\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01R\x04name\x12@\n\x04spec\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TaskTriggerSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12Q\n\x0f\x61utomation_spec\x18\x03 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpec\"\x93\x01\n\x0fTaskTriggerSpec\x12\x16\n\x06\x61\x63tive\x18\x01 \x01(\x08R\x06\x61\x63tive\x12\x31\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x03 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec*\xd6\x01\n\x15TriggerRevisionAction\x12\'\n#TRIGGER_REVISION_ACTION_UNSPECIFIED\x10\x00\x12\"\n\x1eTRIGGER_REVISION_ACTION_DEPLOY\x10\x01\x12$\n TRIGGER_REVISION_ACTION_ACTIVATE\x10\x02\x12&\n\"TRIGGER_REVISION_ACTION_DEACTIVATE\x10\x03\x12\"\n\x1eTRIGGER_REVISION_ACTION_DELETE\x10\x04\x42\xc3\x01\n\x15\x63om.cloudidl.workflowB\x16TriggerDefinitionProtoH\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')
|
|
23
|
+
|
|
24
|
+
_globals = globals()
|
|
25
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
26
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.trigger_definition_pb2', _globals)
|
|
27
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
28
|
+
DESCRIPTOR._options = None
|
|
29
|
+
DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\026TriggerDefinitionProtoH\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'
|
|
30
|
+
_TRIGGERMETADATA.fields_by_name['deployed_by']._options = None
|
|
31
|
+
_TRIGGERMETADATA.fields_by_name['deployed_by']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
32
|
+
_TRIGGERMETADATA.fields_by_name['updated_by']._options = None
|
|
33
|
+
_TRIGGERMETADATA.fields_by_name['updated_by']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
34
|
+
_TRIGGERSPEC.fields_by_name['task_version']._options = None
|
|
35
|
+
_TRIGGERSPEC.fields_by_name['task_version']._serialized_options = b'\372B\006r\004\020\001\030?'
|
|
36
|
+
_TRIGGERSTATUS.fields_by_name['deployed_at']._options = None
|
|
37
|
+
_TRIGGERSTATUS.fields_by_name['deployed_at']._serialized_options = b'\372B\005\262\001\002\010\001'
|
|
38
|
+
_TRIGGERSTATUS.fields_by_name['updated_at']._options = None
|
|
39
|
+
_TRIGGERSTATUS.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001'
|
|
40
|
+
_TRIGGERDETAILS.fields_by_name['id']._options = None
|
|
41
|
+
_TRIGGERDETAILS.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
42
|
+
_TRIGGERDETAILS.fields_by_name['spec']._options = None
|
|
43
|
+
_TRIGGERDETAILS.fields_by_name['spec']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
44
|
+
_TASKTRIGGER.fields_by_name['name']._options = None
|
|
45
|
+
_TASKTRIGGER.fields_by_name['name']._serialized_options = b'\372B\007r\005\020\001\030\377\001'
|
|
46
|
+
_TASKTRIGGER.fields_by_name['spec']._options = None
|
|
47
|
+
_TASKTRIGGER.fields_by_name['spec']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
48
|
+
_globals['_TRIGGERREVISIONACTION']._serialized_start=2123
|
|
49
|
+
_globals['_TRIGGERREVISIONACTION']._serialized_end=2337
|
|
50
|
+
_globals['_TRIGGERMETADATA']._serialized_start=217
|
|
51
|
+
_globals['_TRIGGERMETADATA']._serialized_end=388
|
|
52
|
+
_globals['_TRIGGERSPEC']._serialized_start=391
|
|
53
|
+
_globals['_TRIGGERSPEC']._serialized_end=586
|
|
54
|
+
_globals['_TRIGGERSTATUS']._serialized_start=589
|
|
55
|
+
_globals['_TRIGGERSTATUS']._serialized_end=866
|
|
56
|
+
_globals['_TRIGGER']._serialized_start=869
|
|
57
|
+
_globals['_TRIGGER']._serialized_end=1165
|
|
58
|
+
_globals['_TRIGGERREVISION']._serialized_start=1168
|
|
59
|
+
_globals['_TRIGGERREVISION']._serialized_end=1425
|
|
60
|
+
_globals['_TRIGGERDETAILS']._serialized_start=1428
|
|
61
|
+
_globals['_TRIGGERDETAILS']._serialized_end=1773
|
|
62
|
+
_globals['_TASKTRIGGER']._serialized_start=1776
|
|
63
|
+
_globals['_TASKTRIGGER']._serialized_end=1970
|
|
64
|
+
_globals['_TASKTRIGGERSPEC']._serialized_start=1973
|
|
65
|
+
_globals['_TASKTRIGGERSPEC']._serialized_end=2120
|
|
66
|
+
# @@protoc_insertion_point(module_scope)
|