@flyteorg/flyteidl 1.13.8 → 1.14.0
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/README.md +2 -67
- package/gen/pb-js/flyteidl.d.ts +85 -0
- package/gen/pb-js/flyteidl.js +207 -0
- package/package.json +1 -1
- package/protos/docs/contributing.md +68 -0
- package/protos/{index.rst → docs_index.rst} +1 -0
- package/protos/flyteidl/admin/agent.proto +21 -0
- package/protos/flyteidl/admin/common.proto +1 -0
- package/protos/flyteidl/admin/execution.proto +2 -0
- package/protos/flyteidl/core/workflow.proto +3 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Flyteidl
|
|
2
2
|
|
|
3
|
-
This is one of the core
|
|
3
|
+
This is one of the core components of Flyte. It contains the Specification of the Flyte Language using protobuf messages, the Backend API specification in gRPC, and Swagger REST. The repo contains the generated clients and protocol message structures in multiple languages. Along with the generated code, the repository also contains the Golang clients for Flyte's backend APIs (the services grouped under FlyteAdmin).
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[](https://slack.flyte.org)
|
|
@@ -11,69 +11,4 @@ This is one of the core repositories of Flyte. It contains the Specification of
|
|
|
11
11
|
|
|
12
12
|
## Contributing to Flyteidl
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
1. Run ``make download_tooling`` to install generator dependencies.
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
make download_tooling
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
2. Ensure Docker is installed locally.
|
|
23
|
-
3. Run ``make generate`` to generate all the code, mock client, and docs for FlyteAdmin Service.
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
make generate
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
4. To add new dependencies for documentation generation, modify ``doc-requirements.in`` and run
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
make doc-requirements.txt
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Docs structure
|
|
36
|
-
|
|
37
|
-
The index.rst files for protos are arranged in parallel under the ``docs`` folder.
|
|
38
|
-
All the proto definitions are within ``protos/flyteidl`` and their corresponding docs are in ``protos/docs``.
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
docs
|
|
42
|
-
├── admin
|
|
43
|
-
│ ├── admin.rst
|
|
44
|
-
│ └── index.rst
|
|
45
|
-
├── core
|
|
46
|
-
│ ├── core.rst
|
|
47
|
-
│ └── index.rst
|
|
48
|
-
├── datacatalog
|
|
49
|
-
│ ├── datacatalog.rst
|
|
50
|
-
│ └── index.rst
|
|
51
|
-
├── event
|
|
52
|
-
│ ├── event.rst
|
|
53
|
-
│ └── index.rst
|
|
54
|
-
├── plugins
|
|
55
|
-
│ ├── index.rst
|
|
56
|
-
│ └── plugins.rst
|
|
57
|
-
├── service
|
|
58
|
-
│ ├── index.rst
|
|
59
|
-
│ └── service.rst
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Each module in protos has a module in docs with the same name.
|
|
63
|
-
For example: ``protos/flyteidl/core`` has a module ``protos/docs/core`` under the ``docs`` folder which has the corresponding index and documentation files.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## Generating Documentation
|
|
67
|
-
|
|
68
|
-
* If a new module is to be introduced, follow the structure for core files in `generate_protos.sh` file which helps generate the core documentation from its proto files.
|
|
69
|
-
```
|
|
70
|
-
core_proto_files=`ls protos/flyteidl/core/*.proto |xargs`
|
|
71
|
-
# Remove any currently generated file
|
|
72
|
-
ls -d protos/docs/core/* | grep -v index.rst | xargs rm
|
|
73
|
-
protoc --doc_out=protos/docs/core --doc_opt=restructuredtext,core.rst -I=protos `echo $core_proto_files`
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
* ``make generate`` generates the modified rst files.
|
|
77
|
-
|
|
78
|
-
* ``make html`` generates the Sphinx documentation from the docs folder that uses the modified rst files.
|
|
79
|
-
|
|
14
|
+
See the [contributing docs](protos/docs/contributing.md) for more information.
|
package/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -4586,6 +4586,9 @@ export namespace flyteidl {
|
|
|
4586
4586
|
|
|
4587
4587
|
/** ArrayNode executionMode */
|
|
4588
4588
|
executionMode?: (flyteidl.core.ArrayNode.ExecutionMode|null);
|
|
4589
|
+
|
|
4590
|
+
/** ArrayNode isOriginalSubNodeInterface */
|
|
4591
|
+
isOriginalSubNodeInterface?: (google.protobuf.IBoolValue|null);
|
|
4589
4592
|
}
|
|
4590
4593
|
|
|
4591
4594
|
/** Represents an ArrayNode. */
|
|
@@ -4612,6 +4615,9 @@ export namespace flyteidl {
|
|
|
4612
4615
|
/** ArrayNode executionMode. */
|
|
4613
4616
|
public executionMode: flyteidl.core.ArrayNode.ExecutionMode;
|
|
4614
4617
|
|
|
4618
|
+
/** ArrayNode isOriginalSubNodeInterface. */
|
|
4619
|
+
public isOriginalSubNodeInterface?: (google.protobuf.IBoolValue|null);
|
|
4620
|
+
|
|
4615
4621
|
/** ArrayNode parallelismOption. */
|
|
4616
4622
|
public parallelismOption?: "parallelism";
|
|
4617
4623
|
|
|
@@ -10028,6 +10034,9 @@ export namespace flyteidl {
|
|
|
10028
10034
|
|
|
10029
10035
|
/** Resource customInfo */
|
|
10030
10036
|
customInfo?: (google.protobuf.IStruct|null);
|
|
10037
|
+
|
|
10038
|
+
/** Resource agentError */
|
|
10039
|
+
agentError?: (flyteidl.admin.IAgentError|null);
|
|
10031
10040
|
}
|
|
10032
10041
|
|
|
10033
10042
|
/** Represents a Resource. */
|
|
@@ -10057,6 +10066,9 @@ export namespace flyteidl {
|
|
|
10057
10066
|
/** Resource customInfo. */
|
|
10058
10067
|
public customInfo?: (google.protobuf.IStruct|null);
|
|
10059
10068
|
|
|
10069
|
+
/** Resource agentError. */
|
|
10070
|
+
public agentError?: (flyteidl.admin.IAgentError|null);
|
|
10071
|
+
|
|
10060
10072
|
/**
|
|
10061
10073
|
* Creates a new Resource instance using the specified properties.
|
|
10062
10074
|
* @param [properties] Properties to set
|
|
@@ -10911,6 +10923,79 @@ export namespace flyteidl {
|
|
|
10911
10923
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
10912
10924
|
}
|
|
10913
10925
|
|
|
10926
|
+
/** Properties of an AgentError. */
|
|
10927
|
+
interface IAgentError {
|
|
10928
|
+
|
|
10929
|
+
/** AgentError code */
|
|
10930
|
+
code?: (string|null);
|
|
10931
|
+
|
|
10932
|
+
/** AgentError kind */
|
|
10933
|
+
kind?: (flyteidl.admin.AgentError.Kind|null);
|
|
10934
|
+
|
|
10935
|
+
/** AgentError origin */
|
|
10936
|
+
origin?: (flyteidl.core.ExecutionError.ErrorKind|null);
|
|
10937
|
+
}
|
|
10938
|
+
|
|
10939
|
+
/** Represents an AgentError. */
|
|
10940
|
+
class AgentError implements IAgentError {
|
|
10941
|
+
|
|
10942
|
+
/**
|
|
10943
|
+
* Constructs a new AgentError.
|
|
10944
|
+
* @param [properties] Properties to set
|
|
10945
|
+
*/
|
|
10946
|
+
constructor(properties?: flyteidl.admin.IAgentError);
|
|
10947
|
+
|
|
10948
|
+
/** AgentError code. */
|
|
10949
|
+
public code: string;
|
|
10950
|
+
|
|
10951
|
+
/** AgentError kind. */
|
|
10952
|
+
public kind: flyteidl.admin.AgentError.Kind;
|
|
10953
|
+
|
|
10954
|
+
/** AgentError origin. */
|
|
10955
|
+
public origin: flyteidl.core.ExecutionError.ErrorKind;
|
|
10956
|
+
|
|
10957
|
+
/**
|
|
10958
|
+
* Creates a new AgentError instance using the specified properties.
|
|
10959
|
+
* @param [properties] Properties to set
|
|
10960
|
+
* @returns AgentError instance
|
|
10961
|
+
*/
|
|
10962
|
+
public static create(properties?: flyteidl.admin.IAgentError): flyteidl.admin.AgentError;
|
|
10963
|
+
|
|
10964
|
+
/**
|
|
10965
|
+
* Encodes the specified AgentError message. Does not implicitly {@link flyteidl.admin.AgentError.verify|verify} messages.
|
|
10966
|
+
* @param message AgentError message or plain object to encode
|
|
10967
|
+
* @param [writer] Writer to encode to
|
|
10968
|
+
* @returns Writer
|
|
10969
|
+
*/
|
|
10970
|
+
public static encode(message: flyteidl.admin.IAgentError, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10971
|
+
|
|
10972
|
+
/**
|
|
10973
|
+
* Decodes an AgentError message from the specified reader or buffer.
|
|
10974
|
+
* @param reader Reader or buffer to decode from
|
|
10975
|
+
* @param [length] Message length if known beforehand
|
|
10976
|
+
* @returns AgentError
|
|
10977
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10978
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10979
|
+
*/
|
|
10980
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AgentError;
|
|
10981
|
+
|
|
10982
|
+
/**
|
|
10983
|
+
* Verifies an AgentError message.
|
|
10984
|
+
* @param message Plain object to verify
|
|
10985
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10986
|
+
*/
|
|
10987
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10988
|
+
}
|
|
10989
|
+
|
|
10990
|
+
namespace AgentError {
|
|
10991
|
+
|
|
10992
|
+
/** Kind enum. */
|
|
10993
|
+
enum Kind {
|
|
10994
|
+
NON_RECOVERABLE = 0,
|
|
10995
|
+
RECOVERABLE = 1
|
|
10996
|
+
}
|
|
10997
|
+
}
|
|
10998
|
+
|
|
10914
10999
|
/** Properties of a ClusterAssignment. */
|
|
10915
11000
|
interface IClusterAssignment {
|
|
10916
11001
|
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -10982,6 +10982,7 @@
|
|
|
10982
10982
|
* @property {number|null} [minSuccesses] ArrayNode minSuccesses
|
|
10983
10983
|
* @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio
|
|
10984
10984
|
* @property {flyteidl.core.ArrayNode.ExecutionMode|null} [executionMode] ArrayNode executionMode
|
|
10985
|
+
* @property {google.protobuf.IBoolValue|null} [isOriginalSubNodeInterface] ArrayNode isOriginalSubNodeInterface
|
|
10985
10986
|
*/
|
|
10986
10987
|
|
|
10987
10988
|
/**
|
|
@@ -11039,6 +11040,14 @@
|
|
|
11039
11040
|
*/
|
|
11040
11041
|
ArrayNode.prototype.executionMode = 0;
|
|
11041
11042
|
|
|
11043
|
+
/**
|
|
11044
|
+
* ArrayNode isOriginalSubNodeInterface.
|
|
11045
|
+
* @member {google.protobuf.IBoolValue|null|undefined} isOriginalSubNodeInterface
|
|
11046
|
+
* @memberof flyteidl.core.ArrayNode
|
|
11047
|
+
* @instance
|
|
11048
|
+
*/
|
|
11049
|
+
ArrayNode.prototype.isOriginalSubNodeInterface = null;
|
|
11050
|
+
|
|
11042
11051
|
// OneOf field names bound to virtual getters and setters
|
|
11043
11052
|
var $oneOfFields;
|
|
11044
11053
|
|
|
@@ -11098,6 +11107,8 @@
|
|
|
11098
11107
|
writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio);
|
|
11099
11108
|
if (message.executionMode != null && message.hasOwnProperty("executionMode"))
|
|
11100
11109
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.executionMode);
|
|
11110
|
+
if (message.isOriginalSubNodeInterface != null && message.hasOwnProperty("isOriginalSubNodeInterface"))
|
|
11111
|
+
$root.google.protobuf.BoolValue.encode(message.isOriginalSubNodeInterface, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
11101
11112
|
return writer;
|
|
11102
11113
|
};
|
|
11103
11114
|
|
|
@@ -11134,6 +11145,9 @@
|
|
|
11134
11145
|
case 5:
|
|
11135
11146
|
message.executionMode = reader.int32();
|
|
11136
11147
|
break;
|
|
11148
|
+
case 6:
|
|
11149
|
+
message.isOriginalSubNodeInterface = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
|
|
11150
|
+
break;
|
|
11137
11151
|
default:
|
|
11138
11152
|
reader.skipType(tag & 7);
|
|
11139
11153
|
break;
|
|
@@ -11184,6 +11198,11 @@
|
|
|
11184
11198
|
case 1:
|
|
11185
11199
|
break;
|
|
11186
11200
|
}
|
|
11201
|
+
if (message.isOriginalSubNodeInterface != null && message.hasOwnProperty("isOriginalSubNodeInterface")) {
|
|
11202
|
+
var error = $root.google.protobuf.BoolValue.verify(message.isOriginalSubNodeInterface);
|
|
11203
|
+
if (error)
|
|
11204
|
+
return "isOriginalSubNodeInterface." + error;
|
|
11205
|
+
}
|
|
11187
11206
|
return null;
|
|
11188
11207
|
};
|
|
11189
11208
|
|
|
@@ -24579,6 +24598,7 @@
|
|
|
24579
24598
|
* @property {Array.<flyteidl.core.ITaskLog>|null} [logLinks] Resource logLinks
|
|
24580
24599
|
* @property {flyteidl.core.TaskExecution.Phase|null} [phase] Resource phase
|
|
24581
24600
|
* @property {google.protobuf.IStruct|null} [customInfo] Resource customInfo
|
|
24601
|
+
* @property {flyteidl.admin.IAgentError|null} [agentError] Resource agentError
|
|
24582
24602
|
*/
|
|
24583
24603
|
|
|
24584
24604
|
/**
|
|
@@ -24645,6 +24665,14 @@
|
|
|
24645
24665
|
*/
|
|
24646
24666
|
Resource.prototype.customInfo = null;
|
|
24647
24667
|
|
|
24668
|
+
/**
|
|
24669
|
+
* Resource agentError.
|
|
24670
|
+
* @member {flyteidl.admin.IAgentError|null|undefined} agentError
|
|
24671
|
+
* @memberof flyteidl.admin.Resource
|
|
24672
|
+
* @instance
|
|
24673
|
+
*/
|
|
24674
|
+
Resource.prototype.agentError = null;
|
|
24675
|
+
|
|
24648
24676
|
/**
|
|
24649
24677
|
* Creates a new Resource instance using the specified properties.
|
|
24650
24678
|
* @function create
|
|
@@ -24682,6 +24710,8 @@
|
|
|
24682
24710
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.phase);
|
|
24683
24711
|
if (message.customInfo != null && message.hasOwnProperty("customInfo"))
|
|
24684
24712
|
$root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
24713
|
+
if (message.agentError != null && message.hasOwnProperty("agentError"))
|
|
24714
|
+
$root.flyteidl.admin.AgentError.encode(message.agentError, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
24685
24715
|
return writer;
|
|
24686
24716
|
};
|
|
24687
24717
|
|
|
@@ -24723,6 +24753,9 @@
|
|
|
24723
24753
|
case 6:
|
|
24724
24754
|
message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32());
|
|
24725
24755
|
break;
|
|
24756
|
+
case 7:
|
|
24757
|
+
message.agentError = $root.flyteidl.admin.AgentError.decode(reader, reader.uint32());
|
|
24758
|
+
break;
|
|
24726
24759
|
default:
|
|
24727
24760
|
reader.skipType(tag & 7);
|
|
24728
24761
|
break;
|
|
@@ -24789,6 +24822,11 @@
|
|
|
24789
24822
|
if (error)
|
|
24790
24823
|
return "customInfo." + error;
|
|
24791
24824
|
}
|
|
24825
|
+
if (message.agentError != null && message.hasOwnProperty("agentError")) {
|
|
24826
|
+
var error = $root.flyteidl.admin.AgentError.verify(message.agentError);
|
|
24827
|
+
if (error)
|
|
24828
|
+
return "agentError." + error;
|
|
24829
|
+
}
|
|
24792
24830
|
return null;
|
|
24793
24831
|
};
|
|
24794
24832
|
|
|
@@ -26685,6 +26723,175 @@
|
|
|
26685
26723
|
return GetTaskLogsResponse;
|
|
26686
26724
|
})();
|
|
26687
26725
|
|
|
26726
|
+
admin.AgentError = (function() {
|
|
26727
|
+
|
|
26728
|
+
/**
|
|
26729
|
+
* Properties of an AgentError.
|
|
26730
|
+
* @memberof flyteidl.admin
|
|
26731
|
+
* @interface IAgentError
|
|
26732
|
+
* @property {string|null} [code] AgentError code
|
|
26733
|
+
* @property {flyteidl.admin.AgentError.Kind|null} [kind] AgentError kind
|
|
26734
|
+
* @property {flyteidl.core.ExecutionError.ErrorKind|null} [origin] AgentError origin
|
|
26735
|
+
*/
|
|
26736
|
+
|
|
26737
|
+
/**
|
|
26738
|
+
* Constructs a new AgentError.
|
|
26739
|
+
* @memberof flyteidl.admin
|
|
26740
|
+
* @classdesc Represents an AgentError.
|
|
26741
|
+
* @implements IAgentError
|
|
26742
|
+
* @constructor
|
|
26743
|
+
* @param {flyteidl.admin.IAgentError=} [properties] Properties to set
|
|
26744
|
+
*/
|
|
26745
|
+
function AgentError(properties) {
|
|
26746
|
+
if (properties)
|
|
26747
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26748
|
+
if (properties[keys[i]] != null)
|
|
26749
|
+
this[keys[i]] = properties[keys[i]];
|
|
26750
|
+
}
|
|
26751
|
+
|
|
26752
|
+
/**
|
|
26753
|
+
* AgentError code.
|
|
26754
|
+
* @member {string} code
|
|
26755
|
+
* @memberof flyteidl.admin.AgentError
|
|
26756
|
+
* @instance
|
|
26757
|
+
*/
|
|
26758
|
+
AgentError.prototype.code = "";
|
|
26759
|
+
|
|
26760
|
+
/**
|
|
26761
|
+
* AgentError kind.
|
|
26762
|
+
* @member {flyteidl.admin.AgentError.Kind} kind
|
|
26763
|
+
* @memberof flyteidl.admin.AgentError
|
|
26764
|
+
* @instance
|
|
26765
|
+
*/
|
|
26766
|
+
AgentError.prototype.kind = 0;
|
|
26767
|
+
|
|
26768
|
+
/**
|
|
26769
|
+
* AgentError origin.
|
|
26770
|
+
* @member {flyteidl.core.ExecutionError.ErrorKind} origin
|
|
26771
|
+
* @memberof flyteidl.admin.AgentError
|
|
26772
|
+
* @instance
|
|
26773
|
+
*/
|
|
26774
|
+
AgentError.prototype.origin = 0;
|
|
26775
|
+
|
|
26776
|
+
/**
|
|
26777
|
+
* Creates a new AgentError instance using the specified properties.
|
|
26778
|
+
* @function create
|
|
26779
|
+
* @memberof flyteidl.admin.AgentError
|
|
26780
|
+
* @static
|
|
26781
|
+
* @param {flyteidl.admin.IAgentError=} [properties] Properties to set
|
|
26782
|
+
* @returns {flyteidl.admin.AgentError} AgentError instance
|
|
26783
|
+
*/
|
|
26784
|
+
AgentError.create = function create(properties) {
|
|
26785
|
+
return new AgentError(properties);
|
|
26786
|
+
};
|
|
26787
|
+
|
|
26788
|
+
/**
|
|
26789
|
+
* Encodes the specified AgentError message. Does not implicitly {@link flyteidl.admin.AgentError.verify|verify} messages.
|
|
26790
|
+
* @function encode
|
|
26791
|
+
* @memberof flyteidl.admin.AgentError
|
|
26792
|
+
* @static
|
|
26793
|
+
* @param {flyteidl.admin.IAgentError} message AgentError message or plain object to encode
|
|
26794
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26795
|
+
* @returns {$protobuf.Writer} Writer
|
|
26796
|
+
*/
|
|
26797
|
+
AgentError.encode = function encode(message, writer) {
|
|
26798
|
+
if (!writer)
|
|
26799
|
+
writer = $Writer.create();
|
|
26800
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
26801
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.code);
|
|
26802
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
26803
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind);
|
|
26804
|
+
if (message.origin != null && message.hasOwnProperty("origin"))
|
|
26805
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.origin);
|
|
26806
|
+
return writer;
|
|
26807
|
+
};
|
|
26808
|
+
|
|
26809
|
+
/**
|
|
26810
|
+
* Decodes an AgentError message from the specified reader or buffer.
|
|
26811
|
+
* @function decode
|
|
26812
|
+
* @memberof flyteidl.admin.AgentError
|
|
26813
|
+
* @static
|
|
26814
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26815
|
+
* @param {number} [length] Message length if known beforehand
|
|
26816
|
+
* @returns {flyteidl.admin.AgentError} AgentError
|
|
26817
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26818
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26819
|
+
*/
|
|
26820
|
+
AgentError.decode = function decode(reader, length) {
|
|
26821
|
+
if (!(reader instanceof $Reader))
|
|
26822
|
+
reader = $Reader.create(reader);
|
|
26823
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AgentError();
|
|
26824
|
+
while (reader.pos < end) {
|
|
26825
|
+
var tag = reader.uint32();
|
|
26826
|
+
switch (tag >>> 3) {
|
|
26827
|
+
case 1:
|
|
26828
|
+
message.code = reader.string();
|
|
26829
|
+
break;
|
|
26830
|
+
case 3:
|
|
26831
|
+
message.kind = reader.int32();
|
|
26832
|
+
break;
|
|
26833
|
+
case 4:
|
|
26834
|
+
message.origin = reader.int32();
|
|
26835
|
+
break;
|
|
26836
|
+
default:
|
|
26837
|
+
reader.skipType(tag & 7);
|
|
26838
|
+
break;
|
|
26839
|
+
}
|
|
26840
|
+
}
|
|
26841
|
+
return message;
|
|
26842
|
+
};
|
|
26843
|
+
|
|
26844
|
+
/**
|
|
26845
|
+
* Verifies an AgentError message.
|
|
26846
|
+
* @function verify
|
|
26847
|
+
* @memberof flyteidl.admin.AgentError
|
|
26848
|
+
* @static
|
|
26849
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26850
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26851
|
+
*/
|
|
26852
|
+
AgentError.verify = function verify(message) {
|
|
26853
|
+
if (typeof message !== "object" || message === null)
|
|
26854
|
+
return "object expected";
|
|
26855
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
26856
|
+
if (!$util.isString(message.code))
|
|
26857
|
+
return "code: string expected";
|
|
26858
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
26859
|
+
switch (message.kind) {
|
|
26860
|
+
default:
|
|
26861
|
+
return "kind: enum value expected";
|
|
26862
|
+
case 0:
|
|
26863
|
+
case 1:
|
|
26864
|
+
break;
|
|
26865
|
+
}
|
|
26866
|
+
if (message.origin != null && message.hasOwnProperty("origin"))
|
|
26867
|
+
switch (message.origin) {
|
|
26868
|
+
default:
|
|
26869
|
+
return "origin: enum value expected";
|
|
26870
|
+
case 0:
|
|
26871
|
+
case 1:
|
|
26872
|
+
case 2:
|
|
26873
|
+
break;
|
|
26874
|
+
}
|
|
26875
|
+
return null;
|
|
26876
|
+
};
|
|
26877
|
+
|
|
26878
|
+
/**
|
|
26879
|
+
* Kind enum.
|
|
26880
|
+
* @name flyteidl.admin.AgentError.Kind
|
|
26881
|
+
* @enum {string}
|
|
26882
|
+
* @property {number} NON_RECOVERABLE=0 NON_RECOVERABLE value
|
|
26883
|
+
* @property {number} RECOVERABLE=1 RECOVERABLE value
|
|
26884
|
+
*/
|
|
26885
|
+
AgentError.Kind = (function() {
|
|
26886
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
26887
|
+
values[valuesById[0] = "NON_RECOVERABLE"] = 0;
|
|
26888
|
+
values[valuesById[1] = "RECOVERABLE"] = 1;
|
|
26889
|
+
return values;
|
|
26890
|
+
})();
|
|
26891
|
+
|
|
26892
|
+
return AgentError;
|
|
26893
|
+
})();
|
|
26894
|
+
|
|
26688
26895
|
admin.ClusterAssignment = (function() {
|
|
26689
26896
|
|
|
26690
26897
|
/**
|
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
## Contributing to FlyteIDL
|
|
2
|
+
|
|
3
|
+
## Install Tooling
|
|
4
|
+
|
|
5
|
+
1. Run ``make download_tooling`` to install generator dependencies.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
make download_tooling
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
2. Ensure Docker is installed locally.
|
|
12
|
+
3. Run ``make generate`` to generate all the code, mock client, and docs for FlyteAdmin Service.
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
make generate
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
4. To add new dependencies for documentation generation, modify ``doc-requirements.in`` and run
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
make doc-requirements.txt
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Docs structure
|
|
25
|
+
|
|
26
|
+
The index.rst files for protos are arranged in parallel under the ``docs`` folder.
|
|
27
|
+
All the proto definitions are within ``protos/flyteidl`` and their corresponding docs are in ``protos/docs``.
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
docs
|
|
31
|
+
├── admin
|
|
32
|
+
│ ├── admin.rst
|
|
33
|
+
│ └── index.rst
|
|
34
|
+
├── core
|
|
35
|
+
│ ├── core.rst
|
|
36
|
+
│ └── index.rst
|
|
37
|
+
├── datacatalog
|
|
38
|
+
│ ├── datacatalog.rst
|
|
39
|
+
│ └── index.rst
|
|
40
|
+
├── event
|
|
41
|
+
│ ├── event.rst
|
|
42
|
+
│ └── index.rst
|
|
43
|
+
├── plugins
|
|
44
|
+
│ ├── index.rst
|
|
45
|
+
│ └── plugins.rst
|
|
46
|
+
├── service
|
|
47
|
+
│ ├── index.rst
|
|
48
|
+
│ └── service.rst
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Each module in protos has a module in docs with the same name.
|
|
52
|
+
For example: ``protos/flyteidl/core`` has a module ``protos/docs/core`` under the ``docs`` folder which has the corresponding index and documentation files.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Generating Documentation
|
|
56
|
+
|
|
57
|
+
* If a new module is to be introduced, follow the structure for core files in `generate_protos.sh` file which helps generate the core documentation from its proto files.
|
|
58
|
+
```
|
|
59
|
+
core_proto_files=`ls protos/flyteidl/core/*.proto |xargs`
|
|
60
|
+
# Remove any currently generated file
|
|
61
|
+
ls -d protos/docs/core/* | grep -v index.rst | xargs rm
|
|
62
|
+
protoc --doc_out=protos/docs/core --doc_opt=restructuredtext,core.rst -I=protos `echo $core_proto_files`
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
* ``make generate`` generates the modified rst files.
|
|
66
|
+
|
|
67
|
+
* ``make html`` generates the Sphinx documentation from the docs folder that uses the modified rst files.
|
|
68
|
+
|
|
@@ -138,6 +138,8 @@ message Resource {
|
|
|
138
138
|
core.TaskExecution.Phase phase = 5;
|
|
139
139
|
// Custom data specific to the agent.
|
|
140
140
|
google.protobuf.Struct custom_info = 6;
|
|
141
|
+
// The error raised during execution
|
|
142
|
+
AgentError agent_error = 7;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
// A message used to delete a task.
|
|
@@ -256,3 +258,22 @@ message GetTaskLogsResponse {
|
|
|
256
258
|
GetTaskLogsResponseBody body = 2;
|
|
257
259
|
}
|
|
258
260
|
}
|
|
261
|
+
|
|
262
|
+
// Error message to propagate detailed errors from agent executions to the execution
|
|
263
|
+
// engine.
|
|
264
|
+
message AgentError {
|
|
265
|
+
// A simplified code for errors, so that we can provide a glossary of all possible errors.
|
|
266
|
+
string code = 1;
|
|
267
|
+
|
|
268
|
+
// Defines a generic error type that dictates the behavior of the retry strategy.
|
|
269
|
+
enum Kind {
|
|
270
|
+
NON_RECOVERABLE = 0;
|
|
271
|
+
RECOVERABLE = 1;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
|
|
275
|
+
Kind kind = 3;
|
|
276
|
+
|
|
277
|
+
// Defines the origin of the error (system, user, unknown).
|
|
278
|
+
core.ExecutionError.ErrorKind origin = 4;
|
|
279
|
+
}
|
|
@@ -29,6 +29,7 @@ message NamedEntityIdentifier {
|
|
|
29
29
|
|
|
30
30
|
// The status of the named entity is used to control its visibility in the UI.
|
|
31
31
|
enum NamedEntityState {
|
|
32
|
+
reserved 3, 4;
|
|
32
33
|
// By default, all named entities are considered active and under development.
|
|
33
34
|
NAMED_ENTITY_ACTIVE = 0;
|
|
34
35
|
|
|
@@ -206,6 +206,8 @@ message SystemMetadata {
|
|
|
206
206
|
message ExecutionMetadata {
|
|
207
207
|
// The method by which this execution was launched.
|
|
208
208
|
enum ExecutionMode {
|
|
209
|
+
reserved 7;
|
|
210
|
+
|
|
209
211
|
// The default execution mode, MANUAL implies that an execution was launched by an individual.
|
|
210
212
|
MANUAL = 0;
|
|
211
213
|
|
|
@@ -147,6 +147,9 @@ message ArrayNode {
|
|
|
147
147
|
|
|
148
148
|
// execution_mode determines the execution path for ArrayNode.
|
|
149
149
|
ExecutionMode execution_mode = 5;
|
|
150
|
+
|
|
151
|
+
// Indicates whether the sub node's original interface was altered
|
|
152
|
+
google.protobuf.BoolValue is_original_sub_node_interface = 6;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
// Defines extra information about the Node.
|