@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.
Files changed (87) hide show
  1. package/package.json +6 -9
  2. package/LICENSE +0 -202
  3. package/NOTICE +0 -4
  4. package/README.md +0 -14
  5. package/gen/pb-js/flyteidl.d.ts +0 -28307
  6. package/gen/pb-js/flyteidl.js +0 -66636
  7. package/protos/buf.lock +0 -18
  8. package/protos/buf.yaml +0 -12
  9. package/protos/docs/admin/admin.rst +0 -4623
  10. package/protos/docs/admin/index.rst +0 -13
  11. package/protos/docs/contributing.md +0 -68
  12. package/protos/docs/core/core.rst +0 -3952
  13. package/protos/docs/core/index.rst +0 -15
  14. package/protos/docs/datacatalog/datacatalog.rst +0 -1313
  15. package/protos/docs/datacatalog/index.rst +0 -16
  16. package/protos/docs/event/event.rst +0 -726
  17. package/protos/docs/event/index.rst +0 -27
  18. package/protos/docs/plugins/index.rst +0 -14
  19. package/protos/docs/plugins/plugins.rst +0 -780
  20. package/protos/docs/restructuredtext.tmpl +0 -129
  21. package/protos/docs/service/index.rst +0 -13
  22. package/protos/docs/service/service.rst +0 -543
  23. package/protos/docs/withoutscalar_restructuredtext.tmpl +0 -105
  24. package/protos/docs_index.rst +0 -19
  25. package/protos/flyteidl/admin/agent.proto +0 -309
  26. package/protos/flyteidl/admin/cluster_assignment.proto +0 -11
  27. package/protos/flyteidl/admin/common.proto +0 -337
  28. package/protos/flyteidl/admin/description_entity.proto +0 -95
  29. package/protos/flyteidl/admin/event.proto +0 -70
  30. package/protos/flyteidl/admin/execution.proto +0 -436
  31. package/protos/flyteidl/admin/launch_plan.proto +0 -231
  32. package/protos/flyteidl/admin/matchable_resource.proto +0 -194
  33. package/protos/flyteidl/admin/node_execution.proto +0 -248
  34. package/protos/flyteidl/admin/notification.proto +0 -27
  35. package/protos/flyteidl/admin/project.proto +0 -132
  36. package/protos/flyteidl/admin/project_attributes.proto +0 -69
  37. package/protos/flyteidl/admin/project_domain_attributes.proto +0 -80
  38. package/protos/flyteidl/admin/schedule.proto +0 -43
  39. package/protos/flyteidl/admin/signal.proto +0 -86
  40. package/protos/flyteidl/admin/task.proto +0 -71
  41. package/protos/flyteidl/admin/task_execution.proto +0 -171
  42. package/protos/flyteidl/admin/version.proto +0 -27
  43. package/protos/flyteidl/admin/workflow.proto +0 -92
  44. package/protos/flyteidl/admin/workflow_attributes.proto +0 -89
  45. package/protos/flyteidl/cacheservice/cacheservice.proto +0 -143
  46. package/protos/flyteidl/core/artifact_id.proto +0 -112
  47. package/protos/flyteidl/core/catalog.proto +0 -63
  48. package/protos/flyteidl/core/compiler.proto +0 -64
  49. package/protos/flyteidl/core/condition.proto +0 -63
  50. package/protos/flyteidl/core/dynamic_job.proto +0 -32
  51. package/protos/flyteidl/core/errors.proto +0 -42
  52. package/protos/flyteidl/core/execution.proto +0 -156
  53. package/protos/flyteidl/core/execution_envs.proto +0 -45
  54. package/protos/flyteidl/core/identifier.proto +0 -80
  55. package/protos/flyteidl/core/interface.proto +0 -64
  56. package/protos/flyteidl/core/literals.proto +0 -205
  57. package/protos/flyteidl/core/metrics.proto +0 -50
  58. package/protos/flyteidl/core/security.proto +0 -135
  59. package/protos/flyteidl/core/tasks.proto +0 -392
  60. package/protos/flyteidl/core/types.proto +0 -208
  61. package/protos/flyteidl/core/workflow.proto +0 -361
  62. package/protos/flyteidl/core/workflow_closure.proto +0 -18
  63. package/protos/flyteidl/datacatalog/datacatalog.proto +0 -420
  64. package/protos/flyteidl/event/cloudevents.proto +0 -81
  65. package/protos/flyteidl/event/event.proto +0 -347
  66. package/protos/flyteidl/plugins/array_job.proto +0 -30
  67. package/protos/flyteidl/plugins/common.proto +0 -27
  68. package/protos/flyteidl/plugins/dask.proto +0 -41
  69. package/protos/flyteidl/plugins/kubeflow/common.proto +0 -28
  70. package/protos/flyteidl/plugins/kubeflow/mpi.proto +0 -47
  71. package/protos/flyteidl/plugins/kubeflow/pytorch.proto +0 -53
  72. package/protos/flyteidl/plugins/kubeflow/tensorflow.proto +0 -46
  73. package/protos/flyteidl/plugins/mpi.proto +0 -20
  74. package/protos/flyteidl/plugins/presto.proto +0 -14
  75. package/protos/flyteidl/plugins/pytorch.proto +0 -25
  76. package/protos/flyteidl/plugins/qubole.proto +0 -26
  77. package/protos/flyteidl/plugins/ray.proto +0 -59
  78. package/protos/flyteidl/plugins/spark.proto +0 -42
  79. package/protos/flyteidl/plugins/tensorflow.proto +0 -18
  80. package/protos/flyteidl/plugins/waitable.proto +0 -15
  81. package/protos/flyteidl/service/admin.proto +0 -668
  82. package/protos/flyteidl/service/agent.proto +0 -79
  83. package/protos/flyteidl/service/auth.proto +0 -94
  84. package/protos/flyteidl/service/dataproxy.proto +0 -205
  85. package/protos/flyteidl/service/external_plugin_service.proto +0 -79
  86. package/protos/flyteidl/service/identity.proto +0 -51
  87. package/protos/flyteidl/service/signal.proto +0 -55
@@ -1,27 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.admin;
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin";
5
-
6
- // Response for the GetVersion API
7
- message GetVersionResponse {
8
- // The control plane version information. FlyteAdmin and related components
9
- // form the control plane of Flyte
10
- Version control_plane_version = 1;
11
- }
12
-
13
- // Provides Version information for a component
14
- message Version {
15
- // Specifies the GIT sha of the build
16
- string Build = 1;
17
-
18
- // Version for the build, should follow a semver
19
- string Version = 2;
20
-
21
- // Build timestamp
22
- string BuildTime = 3;
23
- }
24
-
25
- // Empty request for GetVersion
26
- message GetVersionRequest {
27
- }
@@ -1,92 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.admin;
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin";
5
-
6
- import "flyteidl/core/compiler.proto";
7
- import "flyteidl/core/identifier.proto";
8
- import "flyteidl/core/workflow.proto";
9
- import "flyteidl/admin/description_entity.proto";
10
- import "google/protobuf/timestamp.proto";
11
-
12
- // Represents a request structure to create a revision of a workflow.
13
- // See :ref:`ref_flyteidl.admin.Workflow` for more details
14
- message WorkflowCreateRequest {
15
- // id represents the unique identifier of the workflow.
16
- // +required
17
- core.Identifier id = 1;
18
-
19
- // Represents the specification for workflow.
20
- // +required
21
- WorkflowSpec spec = 2;
22
- }
23
-
24
- message WorkflowCreateResponse {
25
- // Purposefully empty, may be populated in the future.
26
- }
27
-
28
- // Represents the workflow structure stored in the Admin
29
- // A workflow is created by ordering tasks and associating outputs to inputs
30
- // in order to produce a directed-acyclic execution graph.
31
- message Workflow {
32
- // id represents the unique identifier of the workflow.
33
- core.Identifier id = 1;
34
-
35
- // closure encapsulates all the fields that maps to a compiled version of the workflow.
36
- WorkflowClosure closure = 2;
37
-
38
- // One-liner overview of the entity.
39
- string short_description = 3;
40
- }
41
-
42
- // Represents a list of workflows returned from the admin.
43
- // See :ref:`ref_flyteidl.admin.Workflow` for more details
44
- message WorkflowList {
45
- // A list of workflows returned based on the request.
46
- repeated Workflow workflows = 1;
47
-
48
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
49
- // in a query. If there are no more results, this value will be empty.
50
- string token = 2;
51
- }
52
-
53
- // Represents a structure that encapsulates the specification of the workflow.
54
- message WorkflowSpec {
55
- // Template of the task that encapsulates all the metadata of the workflow.
56
- core.WorkflowTemplate template = 1;
57
-
58
- // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
59
- // propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
60
- // to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered.
61
- repeated core.WorkflowTemplate sub_workflows = 2;
62
-
63
- // Represents the specification for description entity.
64
- DescriptionEntity description = 3;
65
- }
66
-
67
- // A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
68
- message WorkflowClosure {
69
- // Represents the compiled representation of the workflow from the specification provided.
70
- core.CompiledWorkflowClosure compiled_workflow = 1;
71
-
72
- // Time at which the workflow was created.
73
- google.protobuf.Timestamp created_at = 2;
74
- }
75
-
76
- // The workflow id is already used and the structure is different
77
- message WorkflowErrorExistsDifferentStructure {
78
- core.Identifier id = 1;
79
- }
80
-
81
- // The workflow id is already used with an identical sctructure
82
- message WorkflowErrorExistsIdenticalStructure {
83
- core.Identifier id = 1;
84
- }
85
-
86
- // When a CreateWorkflowRequest fails due to matching id
87
- message CreateWorkflowFailureReason {
88
- oneof reason {
89
- WorkflowErrorExistsDifferentStructure exists_different_structure = 1;
90
- WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2;
91
- }
92
- }
@@ -1,89 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.admin;
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin";
5
-
6
- import "flyteidl/admin/matchable_resource.proto";
7
-
8
- // Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.
9
- // For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
10
- message WorkflowAttributes {
11
- // Unique project id for which this set of attributes will be applied.
12
- string project = 1;
13
-
14
- // Unique domain id for which this set of attributes will be applied.
15
- string domain = 2;
16
-
17
- // Workflow name for which this set of attributes will be applied.
18
- string workflow = 3;
19
-
20
- MatchingAttributes matching_attributes = 4;
21
-
22
- // Optional, org key applied to the attributes.
23
- string org = 5;
24
- }
25
-
26
- // Sets custom attributes for a project, domain and workflow combination.
27
- // For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
28
- message WorkflowAttributesUpdateRequest {
29
- WorkflowAttributes attributes = 1;
30
- }
31
-
32
- // Purposefully empty, may be populated in the future.
33
- message WorkflowAttributesUpdateResponse {
34
- }
35
-
36
- // Request to get an individual workflow attribute override.
37
- // For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
38
- message WorkflowAttributesGetRequest {
39
- // Unique project id which this set of attributes references.
40
- // +required
41
- string project = 1;
42
-
43
- // Unique domain id which this set of attributes references.
44
- // +required
45
- string domain = 2;
46
-
47
- // Workflow name which this set of attributes references.
48
- // +required
49
- string workflow = 3;
50
-
51
- // Which type of matchable attributes to return.
52
- // +required
53
- MatchableResource resource_type = 4;
54
-
55
- // Optional, org key applied to the attributes.
56
- string org = 5;
57
- }
58
-
59
- // Response to get an individual workflow attribute override.
60
- message WorkflowAttributesGetResponse {
61
- WorkflowAttributes attributes = 1;
62
- }
63
-
64
- // Request to delete a set matchable workflow attribute override.
65
- // For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
66
- message WorkflowAttributesDeleteRequest {
67
- // Unique project id which this set of attributes references.
68
- // +required
69
- string project = 1;
70
-
71
- // Unique domain id which this set of attributes references.
72
- // +required
73
- string domain = 2;
74
-
75
- // Workflow name which this set of attributes references.
76
- // +required
77
- string workflow = 3;
78
-
79
- // Which type of matchable attributes to delete.
80
- // +required
81
- MatchableResource resource_type = 4;
82
-
83
- // Optional, org key applied to the attributes.
84
- string org = 5;
85
- }
86
-
87
- // Purposefully empty, may be populated in the future.
88
- message WorkflowAttributesDeleteResponse {
89
- }
@@ -1,143 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.cacheservice;
4
-
5
- import "flyteidl/core/literals.proto";
6
- import "flyteidl/core/types.proto";
7
- import "flyteidl/core/identifier.proto";
8
- import "flyteidl/core/interface.proto";
9
- import "google/protobuf/duration.proto";
10
- import "google/protobuf/timestamp.proto";
11
-
12
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/cacheservice";
13
-
14
- /*
15
- * CacheService defines operations for cache management including retrieval, storage, and deletion of cached task/workflow outputs.
16
- */
17
- service CacheService {
18
- // Retrieves cached data by key.
19
- rpc Get (GetCacheRequest) returns (GetCacheResponse);
20
-
21
- // Stores or updates cached data by key.
22
- rpc Put (PutCacheRequest) returns (PutCacheResponse);
23
-
24
- // Deletes cached data by key.
25
- rpc Delete (DeleteCacheRequest) returns (DeleteCacheResponse);
26
-
27
- // Get or extend a reservation for a cache key
28
- rpc GetOrExtendReservation (GetOrExtendReservationRequest) returns (GetOrExtendReservationResponse);
29
-
30
- // Release the reservation for a cache key
31
- rpc ReleaseReservation (ReleaseReservationRequest) returns (ReleaseReservationResponse);
32
- }
33
-
34
- /*
35
- * Additional metadata as key-value pairs
36
- */
37
- message KeyMapMetadata {
38
- map<string, string> values = 1; // Additional metadata as key-value pairs
39
- }
40
-
41
- /*
42
- * Metadata for cached outputs, including the source identifier and timestamps.
43
- */
44
- message Metadata {
45
- core.Identifier source_identifier = 1; // Source task or workflow identifier
46
- KeyMapMetadata key_map = 2; // Additional metadata as key-value pairs
47
- google.protobuf.Timestamp created_at = 3; // Creation timestamp
48
- google.protobuf.Timestamp last_updated_at = 4; // Last update timestamp
49
- }
50
-
51
- /*
52
- * Represents cached output, either as literals or an URI, with associated metadata.
53
- */
54
- message CachedOutput {
55
- oneof output {
56
- flyteidl.core.LiteralMap output_literals = 1; // Output literals
57
- string output_uri = 2; // URI to output data
58
- }
59
- Metadata metadata = 3; // Associated metadata
60
- }
61
-
62
- /*
63
- * Request to retrieve cached data by key.
64
- */
65
- message GetCacheRequest {
66
- string key = 1; // Cache key
67
- }
68
-
69
- /*
70
- * Response with cached data for a given key.
71
- */
72
- message GetCacheResponse {
73
- CachedOutput output = 1; // Cached output
74
- }
75
-
76
- /*
77
- * Request to store/update cached data by key.
78
- */
79
- message PutCacheRequest {
80
- string key = 1; // Cache key
81
- CachedOutput output = 2; // Output to cache
82
- bool overwrite = 3; // Overwrite flag
83
- }
84
-
85
- /*
86
- * Response message of cache store/update operation.
87
- */
88
- message PutCacheResponse {
89
- // Empty, success indicated by no errors
90
- }
91
-
92
- /*
93
- * Request to delete cached data by key.
94
- */
95
- message DeleteCacheRequest {
96
- string key = 1; // Cache key
97
- }
98
-
99
- /*
100
- * Response message of cache deletion operation.
101
- */
102
- message DeleteCacheResponse {
103
- // Empty, success indicated by no errors
104
- }
105
-
106
- // A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
107
- message Reservation {
108
- string key = 1; // The unique ID for the reservation - same as the cache key
109
- string owner_id = 2; // The unique ID of the owner for the reservation
110
- google.protobuf.Duration heartbeat_interval = 3; // Requested reservation extension heartbeat interval
111
- google.protobuf.Timestamp expires_at = 4; // Expiration timestamp of this reservation
112
- }
113
-
114
- /*
115
- * Request to get or extend a reservation for a cache key
116
- */
117
- message GetOrExtendReservationRequest {
118
- string key = 1; // The unique ID for the reservation - same as the cache key
119
- string owner_id = 2; // The unique ID of the owner for the reservation
120
- google.protobuf.Duration heartbeat_interval = 3; // Requested reservation extension heartbeat interval
121
- }
122
-
123
- /*
124
- * Request to get or extend a reservation for a cache key
125
- */
126
- message GetOrExtendReservationResponse {
127
- Reservation reservation = 1; // The reservation that was created or extended
128
- }
129
-
130
- /*
131
- * Request to release the reservation for a cache key
132
- */
133
- message ReleaseReservationRequest {
134
- string key = 1; // The unique ID for the reservation - same as the cache key
135
- string owner_id = 2; // The unique ID of the owner for the reservation
136
- }
137
-
138
- /*
139
- * Response message of release reservation operation.
140
- */
141
- message ReleaseReservationResponse {
142
- // Empty, success indicated by no errors
143
- }
@@ -1,112 +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 "flyteidl/core/identifier.proto";
9
-
10
-
11
- message ArtifactKey {
12
- // Project and domain and suffix needs to be unique across a given artifact store.
13
- string project = 1;
14
- string domain = 2;
15
- string name = 3;
16
- string org = 4;
17
- }
18
-
19
- // Only valid for triggers
20
- message ArtifactBindingData {
21
- reserved 1 to 4;
22
- // These two fields are only relevant in the partition value case
23
- oneof partition_data {
24
- string partition_key = 5;
25
- bool bind_to_time_partition = 6;
26
- }
27
-
28
- // This is only relevant in the time partition case
29
- TimeTransform time_transform = 7;
30
- }
31
-
32
- enum Granularity {
33
- UNSET = 0;
34
- MINUTE = 1;
35
- HOUR = 2;
36
- DAY = 3; // default
37
- MONTH = 4;
38
- }
39
-
40
- enum Operator {
41
- MINUS = 0;
42
- PLUS = 1;
43
- }
44
-
45
- message TimeTransform {
46
- string transform = 1;
47
- Operator op = 2;
48
- }
49
-
50
- message InputBindingData {
51
- string var = 1;
52
- }
53
-
54
- message RuntimeBinding {}
55
-
56
- message LabelValue {
57
- oneof value {
58
- // The string static value is for use in the Partitions object
59
- string static_value = 1;
60
-
61
- // The time value is for use in the TimePartition case
62
- google.protobuf.Timestamp time_value = 2;
63
- ArtifactBindingData triggered_binding = 3;
64
- InputBindingData input_binding = 4;
65
- RuntimeBinding runtime_binding = 5;
66
- }
67
- }
68
-
69
- message Partitions {
70
- map<string, LabelValue> value = 1;
71
- }
72
-
73
- message TimePartition {
74
- LabelValue value = 1;
75
- Granularity granularity = 2;
76
- }
77
-
78
- message ArtifactID {
79
- ArtifactKey artifact_key = 1;
80
-
81
- string version = 2;
82
-
83
- // Think of a partition as a tag on an Artifact, except it's a key-value pair.
84
- // Different partitions naturally have different versions (execution ids).
85
- Partitions partitions = 3;
86
-
87
- // There is no such thing as an empty time partition - if it's not set, then there is no time partition.
88
- TimePartition time_partition = 4;
89
- }
90
-
91
- message ArtifactTag {
92
- ArtifactKey artifact_key = 1;
93
-
94
- LabelValue value = 2;
95
- }
96
-
97
- // Uniqueness constraints for Artifacts
98
- // - project, domain, name, version, partitions
99
- // Option 2 (tags are standalone, point to an individual artifact id):
100
- // - project, domain, name, alias (points to one partition if partitioned)
101
- // - project, domain, name, partition key, partition value
102
- message ArtifactQuery {
103
- oneof identifier {
104
- ArtifactID artifact_id = 1;
105
- ArtifactTag artifact_tag = 2;
106
- string uri = 3;
107
-
108
- // This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
109
- // artifacts, or a partition value derived from a triggering artifact.
110
- ArtifactBindingData binding = 4;
111
- }
112
- }
@@ -1,63 +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
-
9
- // Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future
10
- enum CatalogCacheStatus {
11
- // Used to indicate that caching was disabled
12
- CACHE_DISABLED = 0;
13
- // Used to indicate that the cache lookup resulted in no matches
14
- CACHE_MISS = 1;
15
- // used to indicate that the associated artifact was a result of a previous execution
16
- CACHE_HIT = 2;
17
- // used to indicate that the resultant artifact was added to the cache
18
- CACHE_POPULATED = 3;
19
- // Used to indicate that cache lookup failed because of an error
20
- CACHE_LOOKUP_FAILURE = 4;
21
- // Used to indicate that cache lookup failed because of an error
22
- CACHE_PUT_FAILURE = 5;
23
- // Used to indicate the cache lookup was skipped
24
- CACHE_SKIPPED = 6;
25
- // Used to indicate that the cache was evicted
26
- CACHE_EVICTED = 7;
27
- };
28
-
29
- message CatalogArtifactTag {
30
- // Artifact ID is generated name
31
- string artifact_id = 1;
32
- // Flyte computes the tag automatically, as the hash of the values
33
- string name = 2;
34
- };
35
-
36
- // Catalog artifact information with specific metadata
37
- message CatalogMetadata {
38
- // Dataset ID in the catalog
39
- Identifier dataset_id = 1;
40
- // Artifact tag in the catalog
41
- CatalogArtifactTag artifact_tag = 2;
42
- // Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context
43
- oneof source_execution {
44
- // Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
45
- TaskExecutionIdentifier source_task_execution = 3;
46
- }
47
- };
48
-
49
- message CatalogReservation {
50
- // Indicates the status of a catalog reservation operation.
51
- enum Status {
52
- // Used to indicate that reservations are disabled
53
- RESERVATION_DISABLED = 0;
54
- // Used to indicate that a reservation was successfully acquired or extended
55
- RESERVATION_ACQUIRED = 1;
56
- // Used to indicate that an active reservation currently exists
57
- RESERVATION_EXISTS = 2;
58
- // Used to indicate that the reservation has been successfully released
59
- RESERVATION_RELEASED = 3;
60
- // Used to indicate that a reservation operation resulted in failure
61
- RESERVATION_FAILURE = 4;
62
- }
63
- }
@@ -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/identifier.proto";
8
- import "flyteidl/core/interface.proto";
9
- import "flyteidl/core/workflow.proto";
10
- import "flyteidl/core/tasks.proto";
11
-
12
- // Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
13
- // step uses this created ConnectionSet
14
- message ConnectionSet {
15
- message IdList {
16
- repeated string ids = 1;
17
- }
18
-
19
- // A list of all the node ids that are downstream from a given node id
20
- map<string, IdList> downstream = 7;
21
-
22
- // A list of all the node ids, that are upstream of this node id
23
- map<string, IdList> upstream = 8;
24
- }
25
-
26
- // Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
27
- message CompiledWorkflow {
28
- // Completely contained Workflow Template
29
- WorkflowTemplate template = 1;
30
- // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
31
- ConnectionSet connections = 2;
32
- }
33
-
34
- // Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer
35
- message CompiledLaunchPlan {
36
- // Completely contained LaunchPlan Template
37
- LaunchPlanTemplate template = 1;
38
- }
39
-
40
- // Output of the Compilation step. This object represent one Task. We store more metadata at this layer
41
- message CompiledTask {
42
- // Completely contained TaskTemplate
43
- TaskTemplate template = 1;
44
- }
45
-
46
- // A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
47
- // and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
48
- // will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
49
- // compiled subworkflows.
50
- message CompiledWorkflowClosure {
51
- //+required
52
- CompiledWorkflow primary = 1;
53
- // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
54
- // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
55
- // as an inlined workflow
56
- //+optional
57
- repeated CompiledWorkflow sub_workflows = 2;
58
- // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
59
- //+required (at least 1)
60
- repeated CompiledTask tasks = 3;
61
- // A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan
62
- // with a given id, i.e., every launch plan has a unique id.
63
- repeated CompiledLaunchPlan launch_plans = 4;
64
- }
@@ -1,63 +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/literals.proto";
8
-
9
- // Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
10
- // Each expression results in a boolean result.
11
- message ComparisonExpression {
12
- // Binary Operator for each expression
13
- enum Operator {
14
- EQ = 0;
15
- NEQ = 1;
16
- // Greater Than
17
- GT = 2;
18
- GTE = 3;
19
- // Less Than
20
- LT = 4;
21
- LTE = 5;
22
- }
23
-
24
- Operator operator = 1;
25
- Operand left_value = 2;
26
- Operand right_value = 3;
27
- }
28
-
29
- // Defines an operand to a comparison expression.
30
- message Operand {
31
- oneof val {
32
- // Can be a constant
33
- core.Primitive primitive = 1 [deprecated = true];
34
- // Or one of this node's input variables
35
- string var = 2;
36
- // Replace the primitive field
37
- core.Scalar scalar = 3;
38
- }
39
- }
40
-
41
- // Defines a boolean expression tree. It can be a simple or a conjunction expression.
42
- // Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
43
- message BooleanExpression {
44
- oneof expr {
45
- ConjunctionExpression conjunction = 1;
46
- ComparisonExpression comparison = 2;
47
- }
48
- }
49
-
50
- // Defines a conjunction expression of two boolean expressions.
51
- message ConjunctionExpression {
52
- // Nested conditions. They can be conjoined using AND / OR
53
- // Order of evaluation is not important as the operators are Commutative
54
- enum LogicalOperator {
55
- // Conjunction
56
- AND = 0;
57
- OR = 1;
58
- }
59
-
60
- LogicalOperator operator = 1;
61
- BooleanExpression left_expression = 2;
62
- BooleanExpression right_expression = 3;
63
- }
@@ -1,32 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "flyteidl/core/tasks.proto";
4
- import "flyteidl/core/workflow.proto";
5
- import "flyteidl/core/literals.proto";
6
-
7
- package flyteidl.core;
8
-
9
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core";
10
-
11
- // Describes a set of tasks to execute and how the final outputs are produced.
12
- message DynamicJobSpec {
13
- // A collection of nodes to execute.
14
- repeated Node nodes = 1;
15
-
16
- // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
17
- // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
18
- // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
19
- // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
20
- // specified, is the count of nodes repeated field.
21
- int64 min_successes = 2;
22
-
23
- // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
24
- // in bindings should have the generated id for the subtask.
25
- repeated Binding outputs = 3;
26
-
27
- // [Optional] A complete list of task specs referenced in nodes.
28
- repeated TaskTemplate tasks = 4;
29
-
30
- // [Optional] A complete list of task specs referenced in nodes.
31
- repeated WorkflowTemplate subworkflows = 5;
32
- }