@flyteorg/flyteidl 1.16.0 → 2.0.0-test1
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.
- package/package.json +6 -9
- package/LICENSE +0 -202
- package/NOTICE +0 -4
- package/README.md +0 -14
- package/gen/pb-js/flyteidl.d.ts +0 -28307
- package/gen/pb-js/flyteidl.js +0 -66636
- package/protos/buf.lock +0 -18
- package/protos/buf.yaml +0 -12
- package/protos/docs/admin/admin.rst +0 -4623
- package/protos/docs/admin/index.rst +0 -13
- package/protos/docs/contributing.md +0 -68
- package/protos/docs/core/core.rst +0 -3952
- package/protos/docs/core/index.rst +0 -15
- package/protos/docs/datacatalog/datacatalog.rst +0 -1313
- package/protos/docs/datacatalog/index.rst +0 -16
- package/protos/docs/event/event.rst +0 -726
- package/protos/docs/event/index.rst +0 -27
- package/protos/docs/plugins/index.rst +0 -14
- package/protos/docs/plugins/plugins.rst +0 -780
- package/protos/docs/restructuredtext.tmpl +0 -129
- package/protos/docs/service/index.rst +0 -13
- package/protos/docs/service/service.rst +0 -543
- package/protos/docs/withoutscalar_restructuredtext.tmpl +0 -105
- package/protos/docs_index.rst +0 -19
- package/protos/flyteidl/admin/agent.proto +0 -309
- package/protos/flyteidl/admin/cluster_assignment.proto +0 -11
- package/protos/flyteidl/admin/common.proto +0 -337
- package/protos/flyteidl/admin/description_entity.proto +0 -95
- package/protos/flyteidl/admin/event.proto +0 -70
- package/protos/flyteidl/admin/execution.proto +0 -436
- package/protos/flyteidl/admin/launch_plan.proto +0 -231
- package/protos/flyteidl/admin/matchable_resource.proto +0 -194
- package/protos/flyteidl/admin/node_execution.proto +0 -248
- package/protos/flyteidl/admin/notification.proto +0 -27
- package/protos/flyteidl/admin/project.proto +0 -132
- package/protos/flyteidl/admin/project_attributes.proto +0 -69
- package/protos/flyteidl/admin/project_domain_attributes.proto +0 -80
- package/protos/flyteidl/admin/schedule.proto +0 -43
- package/protos/flyteidl/admin/signal.proto +0 -86
- package/protos/flyteidl/admin/task.proto +0 -71
- package/protos/flyteidl/admin/task_execution.proto +0 -171
- package/protos/flyteidl/admin/version.proto +0 -27
- package/protos/flyteidl/admin/workflow.proto +0 -92
- package/protos/flyteidl/admin/workflow_attributes.proto +0 -89
- package/protos/flyteidl/cacheservice/cacheservice.proto +0 -143
- package/protos/flyteidl/core/artifact_id.proto +0 -112
- package/protos/flyteidl/core/catalog.proto +0 -63
- package/protos/flyteidl/core/compiler.proto +0 -64
- package/protos/flyteidl/core/condition.proto +0 -63
- package/protos/flyteidl/core/dynamic_job.proto +0 -32
- package/protos/flyteidl/core/errors.proto +0 -42
- package/protos/flyteidl/core/execution.proto +0 -156
- package/protos/flyteidl/core/execution_envs.proto +0 -45
- package/protos/flyteidl/core/identifier.proto +0 -80
- package/protos/flyteidl/core/interface.proto +0 -64
- package/protos/flyteidl/core/literals.proto +0 -205
- package/protos/flyteidl/core/metrics.proto +0 -50
- package/protos/flyteidl/core/security.proto +0 -135
- package/protos/flyteidl/core/tasks.proto +0 -392
- package/protos/flyteidl/core/types.proto +0 -208
- package/protos/flyteidl/core/workflow.proto +0 -361
- package/protos/flyteidl/core/workflow_closure.proto +0 -18
- package/protos/flyteidl/datacatalog/datacatalog.proto +0 -420
- package/protos/flyteidl/event/cloudevents.proto +0 -81
- package/protos/flyteidl/event/event.proto +0 -347
- package/protos/flyteidl/plugins/array_job.proto +0 -30
- package/protos/flyteidl/plugins/common.proto +0 -27
- package/protos/flyteidl/plugins/dask.proto +0 -41
- package/protos/flyteidl/plugins/kubeflow/common.proto +0 -28
- package/protos/flyteidl/plugins/kubeflow/mpi.proto +0 -47
- package/protos/flyteidl/plugins/kubeflow/pytorch.proto +0 -53
- package/protos/flyteidl/plugins/kubeflow/tensorflow.proto +0 -46
- package/protos/flyteidl/plugins/mpi.proto +0 -20
- package/protos/flyteidl/plugins/presto.proto +0 -14
- package/protos/flyteidl/plugins/pytorch.proto +0 -25
- package/protos/flyteidl/plugins/qubole.proto +0 -26
- package/protos/flyteidl/plugins/ray.proto +0 -59
- package/protos/flyteidl/plugins/spark.proto +0 -42
- package/protos/flyteidl/plugins/tensorflow.proto +0 -18
- package/protos/flyteidl/plugins/waitable.proto +0 -15
- package/protos/flyteidl/service/admin.proto +0 -668
- package/protos/flyteidl/service/agent.proto +0 -79
- package/protos/flyteidl/service/auth.proto +0 -94
- package/protos/flyteidl/service/dataproxy.proto +0 -205
- package/protos/flyteidl/service/external_plugin_service.proto +0 -79
- package/protos/flyteidl/service/identity.proto +0 -51
- package/protos/flyteidl/service/signal.proto +0 -55
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
import "flyteidl/core/execution.proto";
|
|
8
|
-
import "google/protobuf/timestamp.proto";
|
|
9
|
-
|
|
10
|
-
// Error message to propagate detailed errors from container executions to the execution
|
|
11
|
-
// engine.
|
|
12
|
-
message ContainerError {
|
|
13
|
-
// A simplified code for errors, so that we can provide a glossary of all possible errors.
|
|
14
|
-
string code = 1;
|
|
15
|
-
// A detailed error message.
|
|
16
|
-
string message = 2;
|
|
17
|
-
|
|
18
|
-
// Defines a generic error type that dictates the behavior of the retry strategy.
|
|
19
|
-
enum Kind {
|
|
20
|
-
NON_RECOVERABLE = 0;
|
|
21
|
-
RECOVERABLE = 1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
|
|
25
|
-
Kind kind = 3;
|
|
26
|
-
|
|
27
|
-
// Defines the origin of the error (system, user, unknown).
|
|
28
|
-
ExecutionError.ErrorKind origin = 4;
|
|
29
|
-
|
|
30
|
-
// Timestamp of the error
|
|
31
|
-
google.protobuf.Timestamp timestamp = 5;
|
|
32
|
-
|
|
33
|
-
// Worker that generated the error
|
|
34
|
-
string worker = 6;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Defines the errors.pb file format the container can produce to communicate
|
|
38
|
-
// failure reasons to the execution engine.
|
|
39
|
-
message ErrorDocument {
|
|
40
|
-
// The error raised during execution.
|
|
41
|
-
ContainerError error = 1;
|
|
42
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
import "google/protobuf/duration.proto";
|
|
8
|
-
import "google/protobuf/timestamp.proto";
|
|
9
|
-
|
|
10
|
-
// Indicates various phases of Workflow Execution
|
|
11
|
-
message WorkflowExecution {
|
|
12
|
-
enum Phase {
|
|
13
|
-
UNDEFINED = 0;
|
|
14
|
-
QUEUED = 1;
|
|
15
|
-
RUNNING = 2;
|
|
16
|
-
SUCCEEDING = 3;
|
|
17
|
-
SUCCEEDED = 4;
|
|
18
|
-
FAILING = 5;
|
|
19
|
-
FAILED = 6;
|
|
20
|
-
ABORTED = 7;
|
|
21
|
-
TIMED_OUT = 8;
|
|
22
|
-
ABORTING = 9;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
|
|
27
|
-
message NodeExecution {
|
|
28
|
-
enum Phase {
|
|
29
|
-
UNDEFINED = 0;
|
|
30
|
-
QUEUED = 1;
|
|
31
|
-
RUNNING = 2;
|
|
32
|
-
SUCCEEDED = 3;
|
|
33
|
-
FAILING = 4;
|
|
34
|
-
FAILED = 5;
|
|
35
|
-
ABORTED = 6;
|
|
36
|
-
SKIPPED = 7;
|
|
37
|
-
TIMED_OUT = 8;
|
|
38
|
-
DYNAMIC_RUNNING = 9;
|
|
39
|
-
RECOVERED = 10;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
|
|
44
|
-
// but this is the cumulative list that customers may want to know about for their task.
|
|
45
|
-
message TaskExecution{
|
|
46
|
-
enum Phase {
|
|
47
|
-
UNDEFINED = 0;
|
|
48
|
-
QUEUED = 1;
|
|
49
|
-
RUNNING = 2;
|
|
50
|
-
SUCCEEDED = 3;
|
|
51
|
-
ABORTED = 4;
|
|
52
|
-
FAILED = 5;
|
|
53
|
-
// To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
|
|
54
|
-
INITIALIZING = 6;
|
|
55
|
-
// To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
|
|
56
|
-
WAITING_FOR_RESOURCES = 7;
|
|
57
|
-
RETRYABLE_FAILED = 8;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// Represents the error message from the execution.
|
|
63
|
-
message ExecutionError {
|
|
64
|
-
// Error code indicates a grouping of a type of error.
|
|
65
|
-
// More Info: <Link>
|
|
66
|
-
string code = 1;
|
|
67
|
-
// Detailed description of the error - including stack trace.
|
|
68
|
-
string message = 2;
|
|
69
|
-
// Full error contents accessible via a URI
|
|
70
|
-
string error_uri = 3;
|
|
71
|
-
// Error type: System or User
|
|
72
|
-
enum ErrorKind {
|
|
73
|
-
UNKNOWN = 0;
|
|
74
|
-
USER = 1;
|
|
75
|
-
SYSTEM = 2;
|
|
76
|
-
}
|
|
77
|
-
ErrorKind kind = 4;
|
|
78
|
-
// Timestamp of the error
|
|
79
|
-
google.protobuf.Timestamp timestamp = 5;
|
|
80
|
-
// Worker that generated the error
|
|
81
|
-
string worker = 6;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Log information for the task that is specific to a log sink
|
|
85
|
-
// When our log story is flushed out, we may have more metadata here like log link expiry
|
|
86
|
-
message TaskLog {
|
|
87
|
-
|
|
88
|
-
enum MessageFormat {
|
|
89
|
-
UNKNOWN = 0;
|
|
90
|
-
CSV = 1;
|
|
91
|
-
JSON = 2;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
string uri = 1;
|
|
95
|
-
string name = 2;
|
|
96
|
-
MessageFormat message_format = 3;
|
|
97
|
-
google.protobuf.Duration ttl = 4;
|
|
98
|
-
bool ShowWhilePending = 5;
|
|
99
|
-
bool HideOnceFinished = 6;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Contains metadata required to identify logs produces by a set of pods
|
|
103
|
-
message LogContext {
|
|
104
|
-
repeated PodLogContext pods = 1;
|
|
105
|
-
string primary_pod_name = 2;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Contains metadata required to identify logs produces by a single pod
|
|
109
|
-
message PodLogContext {
|
|
110
|
-
string namespace = 1;
|
|
111
|
-
|
|
112
|
-
string pod_name = 2;
|
|
113
|
-
|
|
114
|
-
repeated ContainerContext containers = 3;
|
|
115
|
-
|
|
116
|
-
string primary_container_name = 4;
|
|
117
|
-
|
|
118
|
-
repeated ContainerContext init_containers = 5;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Contains metadata required to identify logs produces by a single container
|
|
122
|
-
message ContainerContext {
|
|
123
|
-
string container_name = 1;
|
|
124
|
-
|
|
125
|
-
// Contains metadata required to identify logs produces by a single light-weight process that was run inside a container
|
|
126
|
-
message ProcessContext {
|
|
127
|
-
google.protobuf.Timestamp container_start_time = 1;
|
|
128
|
-
google.protobuf.Timestamp container_end_time = 2;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
ProcessContext process = 2;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Represents customized execution run-time attributes.
|
|
135
|
-
message QualityOfServiceSpec {
|
|
136
|
-
// Indicates how much queueing delay an execution can tolerate.
|
|
137
|
-
google.protobuf.Duration queueing_budget = 1;
|
|
138
|
-
|
|
139
|
-
// Add future, user-configurable options here
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Indicates the priority of an execution.
|
|
143
|
-
message QualityOfService {
|
|
144
|
-
enum Tier {
|
|
145
|
-
// Default: no quality of service specified.
|
|
146
|
-
UNDEFINED = 0;
|
|
147
|
-
HIGH = 1;
|
|
148
|
-
MEDIUM = 2;
|
|
149
|
-
LOW = 3;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
oneof designation {
|
|
153
|
-
Tier tier = 1;
|
|
154
|
-
QualityOfServiceSpec spec = 2;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
import "google/protobuf/struct.proto";
|
|
8
|
-
|
|
9
|
-
// ExecutionEnvAssignment is a message that is used to assign an execution environment to a set of
|
|
10
|
-
// nodes.
|
|
11
|
-
message ExecutionEnvAssignment {
|
|
12
|
-
// node_ids is a list of node ids that are being assigned the execution environment.
|
|
13
|
-
repeated string node_ids = 1;
|
|
14
|
-
|
|
15
|
-
// task_type is the type of task that is being assigned. This is used to override which Flyte
|
|
16
|
-
// plugin will be used during execution.
|
|
17
|
-
string task_type = 2;
|
|
18
|
-
|
|
19
|
-
// execution_env is the environment that is being assigned to the nodes.
|
|
20
|
-
ExecutionEnv execution_env = 3;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// ExecutionEnv is a message that is used to specify the execution environment.
|
|
24
|
-
message ExecutionEnv {
|
|
25
|
-
// name is a human-readable identifier for the execution environment. This is combined with the
|
|
26
|
-
// project, domain, and version to uniquely identify an execution environment.
|
|
27
|
-
string name = 1;
|
|
28
|
-
|
|
29
|
-
// type is the type of the execution environment.
|
|
30
|
-
string type = 2;
|
|
31
|
-
|
|
32
|
-
// environment is a oneof field that can be used to specify the environment in different ways.
|
|
33
|
-
oneof environment {
|
|
34
|
-
// extant is a reference to an existing environment.
|
|
35
|
-
google.protobuf.Struct extant = 3;
|
|
36
|
-
|
|
37
|
-
// spec is a specification of the environment.
|
|
38
|
-
google.protobuf.Struct spec = 4;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// version is the version of the execution environment. This may be used differently by each
|
|
42
|
-
// individual environment type (ex. auto-generated or manually provided), but is intended to
|
|
43
|
-
// allow variance in environment specifications with the same ID.
|
|
44
|
-
string version = 5;
|
|
45
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
// Indicates a resource type within Flyte.
|
|
8
|
-
enum ResourceType {
|
|
9
|
-
UNSPECIFIED = 0;
|
|
10
|
-
TASK = 1;
|
|
11
|
-
WORKFLOW = 2;
|
|
12
|
-
LAUNCH_PLAN = 3;
|
|
13
|
-
// A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.
|
|
14
|
-
// Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects
|
|
15
|
-
// in a similar manner to other Flyte objects
|
|
16
|
-
DATASET = 4;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Encapsulation of fields that uniquely identifies a Flyte resource.
|
|
20
|
-
message Identifier {
|
|
21
|
-
// Identifies the specific type of resource that this identifier corresponds to.
|
|
22
|
-
core.ResourceType resource_type = 1;
|
|
23
|
-
|
|
24
|
-
// Name of the project the resource belongs to.
|
|
25
|
-
string project = 2;
|
|
26
|
-
|
|
27
|
-
// Name of the domain the resource belongs to.
|
|
28
|
-
// A domain can be considered as a subset within a specific project.
|
|
29
|
-
string domain = 3;
|
|
30
|
-
|
|
31
|
-
// User provided value for the resource.
|
|
32
|
-
string name = 4;
|
|
33
|
-
|
|
34
|
-
// Specific version of the resource.
|
|
35
|
-
string version = 5;
|
|
36
|
-
|
|
37
|
-
// Optional, org key applied to the resource.
|
|
38
|
-
string org = 6;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Encapsulation of fields that uniquely identifies a Flyte workflow execution
|
|
42
|
-
message WorkflowExecutionIdentifier {
|
|
43
|
-
// Name of the project the resource belongs to.
|
|
44
|
-
string project = 1;
|
|
45
|
-
|
|
46
|
-
// Name of the domain the resource belongs to.
|
|
47
|
-
// A domain can be considered as a subset within a specific project.
|
|
48
|
-
string domain = 2;
|
|
49
|
-
|
|
50
|
-
// User or system provided value for the resource.
|
|
51
|
-
string name = 4;
|
|
52
|
-
|
|
53
|
-
// Optional, org key applied to the resource.
|
|
54
|
-
string org = 5;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Encapsulation of fields that identify a Flyte node execution entity.
|
|
58
|
-
message NodeExecutionIdentifier {
|
|
59
|
-
string node_id = 1;
|
|
60
|
-
|
|
61
|
-
WorkflowExecutionIdentifier execution_id = 2;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Encapsulation of fields that identify a Flyte task execution entity.
|
|
65
|
-
message TaskExecutionIdentifier {
|
|
66
|
-
core.Identifier task_id = 1;
|
|
67
|
-
|
|
68
|
-
core.NodeExecutionIdentifier node_execution_id = 2;
|
|
69
|
-
|
|
70
|
-
uint32 retry_attempt = 3;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Encapsulation of fields the uniquely identify a signal.
|
|
74
|
-
message SignalIdentifier {
|
|
75
|
-
// Unique identifier for a signal.
|
|
76
|
-
string signal_id = 1;
|
|
77
|
-
|
|
78
|
-
// Identifies the Flyte workflow execution this signal belongs to.
|
|
79
|
-
WorkflowExecutionIdentifier execution_id = 2;
|
|
80
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
import "flyteidl/core/types.proto";
|
|
8
|
-
import "flyteidl/core/literals.proto";
|
|
9
|
-
import "flyteidl/core/artifact_id.proto";
|
|
10
|
-
|
|
11
|
-
// Defines a strongly typed variable.
|
|
12
|
-
message Variable {
|
|
13
|
-
// Variable literal type.
|
|
14
|
-
LiteralType type = 1;
|
|
15
|
-
|
|
16
|
-
//+optional string describing input variable
|
|
17
|
-
string description = 2;
|
|
18
|
-
|
|
19
|
-
//+optional This object allows the user to specify how Artifacts are created.
|
|
20
|
-
// name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
|
|
21
|
-
core.ArtifactID artifact_partial_id = 3;
|
|
22
|
-
|
|
23
|
-
core.ArtifactTag artifact_tag = 4;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// A map of Variables
|
|
27
|
-
message VariableMap {
|
|
28
|
-
// Defines a map of variable names to variables.
|
|
29
|
-
map<string, Variable> variables = 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Defines strongly typed inputs and outputs.
|
|
33
|
-
message TypedInterface {
|
|
34
|
-
VariableMap inputs = 1;
|
|
35
|
-
VariableMap outputs = 2;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// A parameter is used as input to a launch plan and has
|
|
39
|
-
// the special ability to have a default value or mark itself as required.
|
|
40
|
-
message Parameter {
|
|
41
|
-
//+required Variable. Defines the type of the variable backing this parameter.
|
|
42
|
-
Variable var = 1;
|
|
43
|
-
|
|
44
|
-
//+optional
|
|
45
|
-
oneof behavior {
|
|
46
|
-
// Defines a default value that has to match the variable type defined.
|
|
47
|
-
Literal default = 2;
|
|
48
|
-
|
|
49
|
-
//+optional, is this value required to be filled.
|
|
50
|
-
bool required = 3;
|
|
51
|
-
|
|
52
|
-
// This is an execution time search basically that should result in exactly one Artifact with a Type that
|
|
53
|
-
// matches the type of the variable.
|
|
54
|
-
core.ArtifactQuery artifact_query = 4;
|
|
55
|
-
|
|
56
|
-
core.ArtifactID artifact_id = 5;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// A map of Parameters.
|
|
61
|
-
message ParameterMap {
|
|
62
|
-
// Defines a map of parameter names to parameters.
|
|
63
|
-
map<string, Parameter> parameters = 1;
|
|
64
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
import "google/protobuf/timestamp.proto";
|
|
8
|
-
import "google/protobuf/duration.proto";
|
|
9
|
-
import "google/protobuf/struct.proto";
|
|
10
|
-
import "flyteidl/core/types.proto";
|
|
11
|
-
|
|
12
|
-
// Primitive Types
|
|
13
|
-
message Primitive {
|
|
14
|
-
// Defines one of simple primitive types. These types will get translated into different programming languages as
|
|
15
|
-
// described in https://developers.google.com/protocol-buffers/docs/proto#scalar.
|
|
16
|
-
oneof value {
|
|
17
|
-
int64 integer = 1;
|
|
18
|
-
double float_value = 2;
|
|
19
|
-
string string_value = 3;
|
|
20
|
-
bool boolean = 4;
|
|
21
|
-
google.protobuf.Timestamp datetime = 5;
|
|
22
|
-
google.protobuf.Duration duration = 6;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
|
|
27
|
-
// undefined since it can be assigned to a scalar of any LiteralType.
|
|
28
|
-
message Void {
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
|
|
32
|
-
// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
|
|
33
|
-
message Blob {
|
|
34
|
-
BlobMetadata metadata = 1;
|
|
35
|
-
string uri = 3;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message BlobMetadata {
|
|
39
|
-
BlobType type = 1;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
|
|
43
|
-
// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
|
|
44
|
-
message Binary {
|
|
45
|
-
bytes value = 1; // Serialized data (MessagePack) for supported types like Dataclass, Pydantic BaseModel, and untyped dict.
|
|
46
|
-
string tag = 2; // The serialization format identifier (e.g., MessagePack). Consumers must define unique tags and validate them before deserialization.
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
|
|
50
|
-
message Schema {
|
|
51
|
-
string uri = 1;
|
|
52
|
-
SchemaType type = 3;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// The runtime representation of a tagged union value. See `UnionType` for more details.
|
|
56
|
-
message Union {
|
|
57
|
-
Literal value = 1;
|
|
58
|
-
LiteralType type = 2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message StructuredDatasetMetadata {
|
|
62
|
-
// Bundle the type information along with the literal.
|
|
63
|
-
// This is here because StructuredDatasets can often be more defined at run time than at compile time.
|
|
64
|
-
// That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
|
|
65
|
-
// without any column information, but at run time, you might have that column information.
|
|
66
|
-
// flytekit python will copy this type information into the literal, from the type information, if not provided by
|
|
67
|
-
// the various plugins (encoders).
|
|
68
|
-
// Since this field is run time generated, it's not used for any type checking.
|
|
69
|
-
StructuredDatasetType structured_dataset_type = 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message StructuredDataset {
|
|
73
|
-
// String location uniquely identifying where the data is.
|
|
74
|
-
// Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
|
|
75
|
-
string uri = 1;
|
|
76
|
-
|
|
77
|
-
StructuredDatasetMetadata metadata = 2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message Scalar {
|
|
81
|
-
oneof value {
|
|
82
|
-
Primitive primitive = 1;
|
|
83
|
-
Blob blob = 2;
|
|
84
|
-
Binary binary = 3;
|
|
85
|
-
Schema schema = 4;
|
|
86
|
-
Void none_type = 5;
|
|
87
|
-
Error error = 6;
|
|
88
|
-
google.protobuf.Struct generic = 7;
|
|
89
|
-
StructuredDataset structured_dataset = 8;
|
|
90
|
-
Union union = 9;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
|
|
95
|
-
message Literal {
|
|
96
|
-
reserved 6, 7;
|
|
97
|
-
oneof value {
|
|
98
|
-
// A simple value.
|
|
99
|
-
Scalar scalar = 1;
|
|
100
|
-
|
|
101
|
-
// A collection of literals to allow nesting.
|
|
102
|
-
LiteralCollection collection = 2;
|
|
103
|
-
|
|
104
|
-
// A map of strings to literals.
|
|
105
|
-
LiteralMap map = 3;
|
|
106
|
-
|
|
107
|
-
// Offloaded literal metadata
|
|
108
|
-
// When you deserialize the offloaded metadata, it would be of Literal and its type would be defined by LiteralType stored in offloaded_metadata.
|
|
109
|
-
LiteralOffloadedMetadata offloaded_metadata = 8;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// A hash representing this literal.
|
|
113
|
-
// This is used for caching purposes. For more details refer to RFC 1893
|
|
114
|
-
// (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
|
|
115
|
-
string hash = 4;
|
|
116
|
-
|
|
117
|
-
// Additional metadata for literals.
|
|
118
|
-
map<string, string> metadata = 5;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// A message that contains the metadata of the offloaded data.
|
|
122
|
-
message LiteralOffloadedMetadata {
|
|
123
|
-
// The location of the offloaded core.Literal.
|
|
124
|
-
string uri = 1;
|
|
125
|
-
|
|
126
|
-
// The size of the offloaded data.
|
|
127
|
-
uint64 size_bytes = 2;
|
|
128
|
-
|
|
129
|
-
// The inferred literal type of the offloaded data.
|
|
130
|
-
LiteralType inferred_type = 3;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
|
|
134
|
-
message LiteralCollection {
|
|
135
|
-
repeated Literal literals = 1;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
|
|
139
|
-
message LiteralMap {
|
|
140
|
-
map<string, Literal> literals = 1;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// A collection of BindingData items.
|
|
144
|
-
message BindingDataCollection {
|
|
145
|
-
repeated BindingData bindings = 1;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// A map of BindingData items.
|
|
149
|
-
message BindingDataMap {
|
|
150
|
-
map<string, BindingData> bindings = 1;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
message UnionInfo {
|
|
154
|
-
LiteralType targetType = 1;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Specifies either a simple value or a reference to another output.
|
|
158
|
-
message BindingData {
|
|
159
|
-
oneof value {
|
|
160
|
-
// A simple scalar value.
|
|
161
|
-
Scalar scalar = 1;
|
|
162
|
-
|
|
163
|
-
// A collection of binding data. This allows nesting of binding data to any number
|
|
164
|
-
// of levels.
|
|
165
|
-
BindingDataCollection collection = 2;
|
|
166
|
-
|
|
167
|
-
// References an output promised by another node.
|
|
168
|
-
OutputReference promise = 3;
|
|
169
|
-
|
|
170
|
-
// A map of bindings. The key is always a string.
|
|
171
|
-
BindingDataMap map = 4;
|
|
172
|
-
|
|
173
|
-
// Offloaded literal metadata
|
|
174
|
-
// When you deserialize the offloaded metadata, it would be of Literal and its type would be defined by LiteralType stored in offloaded_metadata.
|
|
175
|
-
// Used for nodes that don't have promises from upstream nodes such as ArrayNode subNodes.
|
|
176
|
-
LiteralOffloadedMetadata offloaded_metadata = 6;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
UnionInfo union = 5;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// An input/output binding of a variable to either static value or a node output.
|
|
183
|
-
message Binding {
|
|
184
|
-
// Variable name must match an input/output variable of the node.
|
|
185
|
-
string var = 1;
|
|
186
|
-
|
|
187
|
-
// Data to use to bind this variable.
|
|
188
|
-
BindingData binding = 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// A generic key value pair.
|
|
192
|
-
message KeyValuePair {
|
|
193
|
-
//required.
|
|
194
|
-
string key = 1;
|
|
195
|
-
|
|
196
|
-
//+optional.
|
|
197
|
-
string value = 2;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// Retry strategy associated with an executable unit.
|
|
201
|
-
message RetryStrategy {
|
|
202
|
-
// Number of retries. Retries will be consumed when the job fails with a recoverable error.
|
|
203
|
-
// The number of retries must be less than or equals to 10.
|
|
204
|
-
uint32 retries = 5;
|
|
205
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package flyteidl.core;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
|
|
6
|
-
|
|
7
|
-
import "flyteidl/core/identifier.proto";
|
|
8
|
-
import "google/protobuf/timestamp.proto";
|
|
9
|
-
import "google/protobuf/struct.proto";
|
|
10
|
-
|
|
11
|
-
// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation
|
|
12
|
-
// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more
|
|
13
|
-
// precise definitions.
|
|
14
|
-
message Span {
|
|
15
|
-
// start_time defines the instance this span began.
|
|
16
|
-
google.protobuf.Timestamp start_time = 1;
|
|
17
|
-
|
|
18
|
-
// end_time defines the instance this span completed.
|
|
19
|
-
google.protobuf.Timestamp end_time = 2;
|
|
20
|
-
|
|
21
|
-
oneof id {
|
|
22
|
-
// workflow_id is the id of the workflow execution this Span represents.
|
|
23
|
-
flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3;
|
|
24
|
-
|
|
25
|
-
// node_id is the id of the node execution this Span represents.
|
|
26
|
-
flyteidl.core.NodeExecutionIdentifier node_id = 4;
|
|
27
|
-
|
|
28
|
-
// task_id is the id of the task execution this Span represents.
|
|
29
|
-
flyteidl.core.TaskExecutionIdentifier task_id = 5;
|
|
30
|
-
|
|
31
|
-
// operation_id is the id of a unique operation that this Span represents.
|
|
32
|
-
string operation_id = 6;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// spans defines a collection of Spans that breakdown this execution.
|
|
36
|
-
repeated Span spans = 7;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task.
|
|
40
|
-
message ExecutionMetricResult {
|
|
41
|
-
// The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
|
|
42
|
-
string metric = 1;
|
|
43
|
-
|
|
44
|
-
// The result data in prometheus range query result format
|
|
45
|
-
// https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
|
|
46
|
-
// This may include multiple time series, differentiated by their metric labels.
|
|
47
|
-
// Start time is greater of (execution attempt start, 48h ago)
|
|
48
|
-
// End time is lesser of (execution attempt end, now)
|
|
49
|
-
google.protobuf.Struct data = 2;
|
|
50
|
-
}
|