@flyteorg/flyteidl 1.2.7 → 1.2.8
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/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -1597,6 +1597,9 @@ export namespace flyteidl {
|
|
|
1597
1597
|
|
|
1598
1598
|
/** WorkflowMetadata onFailure */
|
|
1599
1599
|
onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null);
|
|
1600
|
+
|
|
1601
|
+
/** WorkflowMetadata tags */
|
|
1602
|
+
tags?: ({ [k: string]: string }|null);
|
|
1600
1603
|
}
|
|
1601
1604
|
|
|
1602
1605
|
/** Represents a WorkflowMetadata. */
|
|
@@ -1614,6 +1617,9 @@ export namespace flyteidl {
|
|
|
1614
1617
|
/** WorkflowMetadata onFailure. */
|
|
1615
1618
|
public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy;
|
|
1616
1619
|
|
|
1620
|
+
/** WorkflowMetadata tags. */
|
|
1621
|
+
public tags: { [k: string]: string };
|
|
1622
|
+
|
|
1617
1623
|
/**
|
|
1618
1624
|
* Creates a new WorkflowMetadata instance using the specified properties.
|
|
1619
1625
|
* @param [properties] Properties to set
|
|
@@ -5095,6 +5101,9 @@ export namespace flyteidl {
|
|
|
5095
5101
|
|
|
5096
5102
|
/** TaskMetadata generatesDeck */
|
|
5097
5103
|
generatesDeck?: (boolean|null);
|
|
5104
|
+
|
|
5105
|
+
/** TaskMetadata tags */
|
|
5106
|
+
tags?: ({ [k: string]: string }|null);
|
|
5098
5107
|
}
|
|
5099
5108
|
|
|
5100
5109
|
/** Represents a TaskMetadata. */
|
|
@@ -5133,6 +5142,9 @@ export namespace flyteidl {
|
|
|
5133
5142
|
/** TaskMetadata generatesDeck. */
|
|
5134
5143
|
public generatesDeck: boolean;
|
|
5135
5144
|
|
|
5145
|
+
/** TaskMetadata tags. */
|
|
5146
|
+
public tags: { [k: string]: string };
|
|
5147
|
+
|
|
5136
5148
|
/** TaskMetadata interruptibleValue. */
|
|
5137
5149
|
public interruptibleValue?: "interruptible";
|
|
5138
5150
|
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -3834,6 +3834,7 @@
|
|
|
3834
3834
|
* @interface IWorkflowMetadata
|
|
3835
3835
|
* @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService
|
|
3836
3836
|
* @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure
|
|
3837
|
+
* @property {Object.<string,string>|null} [tags] WorkflowMetadata tags
|
|
3837
3838
|
*/
|
|
3838
3839
|
|
|
3839
3840
|
/**
|
|
@@ -3845,6 +3846,7 @@
|
|
|
3845
3846
|
* @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set
|
|
3846
3847
|
*/
|
|
3847
3848
|
function WorkflowMetadata(properties) {
|
|
3849
|
+
this.tags = {};
|
|
3848
3850
|
if (properties)
|
|
3849
3851
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3850
3852
|
if (properties[keys[i]] != null)
|
|
@@ -3867,6 +3869,14 @@
|
|
|
3867
3869
|
*/
|
|
3868
3870
|
WorkflowMetadata.prototype.onFailure = 0;
|
|
3869
3871
|
|
|
3872
|
+
/**
|
|
3873
|
+
* WorkflowMetadata tags.
|
|
3874
|
+
* @member {Object.<string,string>} tags
|
|
3875
|
+
* @memberof flyteidl.core.WorkflowMetadata
|
|
3876
|
+
* @instance
|
|
3877
|
+
*/
|
|
3878
|
+
WorkflowMetadata.prototype.tags = $util.emptyObject;
|
|
3879
|
+
|
|
3870
3880
|
/**
|
|
3871
3881
|
* Creates a new WorkflowMetadata instance using the specified properties.
|
|
3872
3882
|
* @function create
|
|
@@ -3895,6 +3905,9 @@
|
|
|
3895
3905
|
$root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3896
3906
|
if (message.onFailure != null && message.hasOwnProperty("onFailure"))
|
|
3897
3907
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure);
|
|
3908
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
3909
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i)
|
|
3910
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim();
|
|
3898
3911
|
return writer;
|
|
3899
3912
|
};
|
|
3900
3913
|
|
|
@@ -3912,7 +3925,7 @@
|
|
|
3912
3925
|
WorkflowMetadata.decode = function decode(reader, length) {
|
|
3913
3926
|
if (!(reader instanceof $Reader))
|
|
3914
3927
|
reader = $Reader.create(reader);
|
|
3915
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata();
|
|
3928
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key;
|
|
3916
3929
|
while (reader.pos < end) {
|
|
3917
3930
|
var tag = reader.uint32();
|
|
3918
3931
|
switch (tag >>> 3) {
|
|
@@ -3922,6 +3935,14 @@
|
|
|
3922
3935
|
case 2:
|
|
3923
3936
|
message.onFailure = reader.int32();
|
|
3924
3937
|
break;
|
|
3938
|
+
case 3:
|
|
3939
|
+
reader.skip().pos++;
|
|
3940
|
+
if (message.tags === $util.emptyObject)
|
|
3941
|
+
message.tags = {};
|
|
3942
|
+
key = reader.string();
|
|
3943
|
+
reader.pos++;
|
|
3944
|
+
message.tags[key] = reader.string();
|
|
3945
|
+
break;
|
|
3925
3946
|
default:
|
|
3926
3947
|
reader.skipType(tag & 7);
|
|
3927
3948
|
break;
|
|
@@ -3954,6 +3975,14 @@
|
|
|
3954
3975
|
case 1:
|
|
3955
3976
|
break;
|
|
3956
3977
|
}
|
|
3978
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
3979
|
+
if (!$util.isObject(message.tags))
|
|
3980
|
+
return "tags: object expected";
|
|
3981
|
+
var key = Object.keys(message.tags);
|
|
3982
|
+
for (var i = 0; i < key.length; ++i)
|
|
3983
|
+
if (!$util.isString(message.tags[key[i]]))
|
|
3984
|
+
return "tags: string{k:string} expected";
|
|
3985
|
+
}
|
|
3957
3986
|
return null;
|
|
3958
3987
|
};
|
|
3959
3988
|
|
|
@@ -12018,6 +12047,7 @@
|
|
|
12018
12047
|
* @property {boolean|null} [interruptible] TaskMetadata interruptible
|
|
12019
12048
|
* @property {boolean|null} [cacheSerializable] TaskMetadata cacheSerializable
|
|
12020
12049
|
* @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck
|
|
12050
|
+
* @property {Object.<string,string>|null} [tags] TaskMetadata tags
|
|
12021
12051
|
*/
|
|
12022
12052
|
|
|
12023
12053
|
/**
|
|
@@ -12029,6 +12059,7 @@
|
|
|
12029
12059
|
* @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set
|
|
12030
12060
|
*/
|
|
12031
12061
|
function TaskMetadata(properties) {
|
|
12062
|
+
this.tags = {};
|
|
12032
12063
|
if (properties)
|
|
12033
12064
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12034
12065
|
if (properties[keys[i]] != null)
|
|
@@ -12107,6 +12138,14 @@
|
|
|
12107
12138
|
*/
|
|
12108
12139
|
TaskMetadata.prototype.generatesDeck = false;
|
|
12109
12140
|
|
|
12141
|
+
/**
|
|
12142
|
+
* TaskMetadata tags.
|
|
12143
|
+
* @member {Object.<string,string>} tags
|
|
12144
|
+
* @memberof flyteidl.core.TaskMetadata
|
|
12145
|
+
* @instance
|
|
12146
|
+
*/
|
|
12147
|
+
TaskMetadata.prototype.tags = $util.emptyObject;
|
|
12148
|
+
|
|
12110
12149
|
// OneOf field names bound to virtual getters and setters
|
|
12111
12150
|
var $oneOfFields;
|
|
12112
12151
|
|
|
@@ -12163,6 +12202,9 @@
|
|
|
12163
12202
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable);
|
|
12164
12203
|
if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck"))
|
|
12165
12204
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.generatesDeck);
|
|
12205
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
12206
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i)
|
|
12207
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim();
|
|
12166
12208
|
return writer;
|
|
12167
12209
|
};
|
|
12168
12210
|
|
|
@@ -12180,7 +12222,7 @@
|
|
|
12180
12222
|
TaskMetadata.decode = function decode(reader, length) {
|
|
12181
12223
|
if (!(reader instanceof $Reader))
|
|
12182
12224
|
reader = $Reader.create(reader);
|
|
12183
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata();
|
|
12225
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata(), key;
|
|
12184
12226
|
while (reader.pos < end) {
|
|
12185
12227
|
var tag = reader.uint32();
|
|
12186
12228
|
switch (tag >>> 3) {
|
|
@@ -12211,6 +12253,14 @@
|
|
|
12211
12253
|
case 10:
|
|
12212
12254
|
message.generatesDeck = reader.bool();
|
|
12213
12255
|
break;
|
|
12256
|
+
case 11:
|
|
12257
|
+
reader.skip().pos++;
|
|
12258
|
+
if (message.tags === $util.emptyObject)
|
|
12259
|
+
message.tags = {};
|
|
12260
|
+
key = reader.string();
|
|
12261
|
+
reader.pos++;
|
|
12262
|
+
message.tags[key] = reader.string();
|
|
12263
|
+
break;
|
|
12214
12264
|
default:
|
|
12215
12265
|
reader.skipType(tag & 7);
|
|
12216
12266
|
break;
|
|
@@ -12266,6 +12316,14 @@
|
|
|
12266
12316
|
if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck"))
|
|
12267
12317
|
if (typeof message.generatesDeck !== "boolean")
|
|
12268
12318
|
return "generatesDeck: boolean expected";
|
|
12319
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
12320
|
+
if (!$util.isObject(message.tags))
|
|
12321
|
+
return "tags: object expected";
|
|
12322
|
+
var key = Object.keys(message.tags);
|
|
12323
|
+
for (var i = 0; i < key.length; ++i)
|
|
12324
|
+
if (!$util.isString(message.tags[key[i]]))
|
|
12325
|
+
return "tags: string{k:string} expected";
|
|
12326
|
+
}
|
|
12269
12327
|
return null;
|
|
12270
12328
|
};
|
|
12271
12329
|
|
package/package.json
CHANGED
|
@@ -2237,6 +2237,29 @@ Task Metadata
|
|
|
2237
2237
|
"interruptible", ":ref:`ref_bool`", "", ""
|
|
2238
2238
|
"cache_serializable", ":ref:`ref_bool`", "", "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work"
|
|
2239
2239
|
"generates_deck", ":ref:`ref_bool`", "", "Indicates whether the task will generate a Deck URI when it finishes executing."
|
|
2240
|
+
"tags", ":ref:`ref_flyteidl.core.TaskMetadata.TagsEntry`", "repeated", "Arbitrary tags that allow users and the platform to store small but arbitrary labels"
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
.. _ref_flyteidl.core.TaskMetadata.TagsEntry:
|
|
2249
|
+
|
|
2250
|
+
TaskMetadata.TagsEntry
|
|
2251
|
+
------------------------------------------------------------------
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
.. csv-table:: TaskMetadata.TagsEntry type fields
|
|
2258
|
+
:header: "Field", "Type", "Label", "Description"
|
|
2259
|
+
:widths: auto
|
|
2260
|
+
|
|
2261
|
+
"key", ":ref:`ref_string`", "", ""
|
|
2262
|
+
"value", ":ref:`ref_string`", "", ""
|
|
2240
2263
|
|
|
2241
2264
|
|
|
2242
2265
|
|
|
@@ -3119,6 +3142,29 @@ percolate down to child entities (like tasks) launched by the workflow.
|
|
|
3119
3142
|
|
|
3120
3143
|
"quality_of_service", ":ref:`ref_flyteidl.core.QualityOfService`", "", "Indicates the runtime priority of workflow executions."
|
|
3121
3144
|
"on_failure", ":ref:`ref_flyteidl.core.WorkflowMetadata.OnFailurePolicy`", "", "Defines how the system should behave when a failure is detected in the workflow execution."
|
|
3145
|
+
"tags", ":ref:`ref_flyteidl.core.WorkflowMetadata.TagsEntry`", "repeated", "Arbitrary tags that allow users and the platform to store small but arbitrary labels"
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
.. _ref_flyteidl.core.WorkflowMetadata.TagsEntry:
|
|
3154
|
+
|
|
3155
|
+
WorkflowMetadata.TagsEntry
|
|
3156
|
+
------------------------------------------------------------------
|
|
3157
|
+
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
.. csv-table:: WorkflowMetadata.TagsEntry type fields
|
|
3163
|
+
:header: "Field", "Type", "Label", "Description"
|
|
3164
|
+
:widths: auto
|
|
3165
|
+
|
|
3166
|
+
"key", ":ref:`ref_string`", "", ""
|
|
3167
|
+
"value", ":ref:`ref_string`", "", ""
|
|
3122
3168
|
|
|
3123
3169
|
|
|
3124
3170
|
|
|
@@ -98,6 +98,9 @@ message TaskMetadata {
|
|
|
98
98
|
|
|
99
99
|
// Indicates whether the task will generate a Deck URI when it finishes executing.
|
|
100
100
|
bool generates_deck = 10;
|
|
101
|
+
|
|
102
|
+
// Arbitrary tags that allow users and the platform to store small but arbitrary labels
|
|
103
|
+
map<string, string> tags = 11;
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
// A Task structure that uniquely identifies a task in the system
|
|
@@ -196,6 +196,9 @@ message WorkflowMetadata {
|
|
|
196
196
|
|
|
197
197
|
// Defines how the system should behave when a failure is detected in the workflow execution.
|
|
198
198
|
OnFailurePolicy on_failure = 2;
|
|
199
|
+
|
|
200
|
+
// Arbitrary tags that allow users and the platform to store small but arbitrary labels
|
|
201
|
+
map<string, string> tags = 3;
|
|
199
202
|
}
|
|
200
203
|
|
|
201
204
|
// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to
|