@flyteorg/flyteidl 1.5.19 → 1.5.21
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
|
@@ -1886,9 +1886,6 @@ export namespace flyteidl {
|
|
|
1886
1886
|
|
|
1887
1887
|
/** TaskNodeOverrides resources */
|
|
1888
1888
|
resources?: (flyteidl.core.IResources|null);
|
|
1889
|
-
|
|
1890
|
-
/** TaskNodeOverrides resourceMetadata */
|
|
1891
|
-
resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
|
|
1892
1889
|
}
|
|
1893
1890
|
|
|
1894
1891
|
/** Represents a TaskNodeOverrides. */
|
|
@@ -1903,9 +1900,6 @@ export namespace flyteidl {
|
|
|
1903
1900
|
/** TaskNodeOverrides resources. */
|
|
1904
1901
|
public resources?: (flyteidl.core.IResources|null);
|
|
1905
1902
|
|
|
1906
|
-
/** TaskNodeOverrides resourceMetadata. */
|
|
1907
|
-
public resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
|
|
1908
|
-
|
|
1909
1903
|
/**
|
|
1910
1904
|
* Creates a new TaskNodeOverrides instance using the specified properties.
|
|
1911
1905
|
* @param [properties] Properties to set
|
|
@@ -5230,128 +5224,6 @@ export namespace flyteidl {
|
|
|
5230
5224
|
}
|
|
5231
5225
|
}
|
|
5232
5226
|
|
|
5233
|
-
/** Properties of a GPUAccelerator. */
|
|
5234
|
-
interface IGPUAccelerator {
|
|
5235
|
-
|
|
5236
|
-
/** GPUAccelerator device */
|
|
5237
|
-
device?: (string|null);
|
|
5238
|
-
|
|
5239
|
-
/** GPUAccelerator unpartitioned */
|
|
5240
|
-
unpartitioned?: (boolean|null);
|
|
5241
|
-
|
|
5242
|
-
/** GPUAccelerator partitionSize */
|
|
5243
|
-
partitionSize?: (string|null);
|
|
5244
|
-
}
|
|
5245
|
-
|
|
5246
|
-
/** Represents a GPUAccelerator. */
|
|
5247
|
-
class GPUAccelerator implements IGPUAccelerator {
|
|
5248
|
-
|
|
5249
|
-
/**
|
|
5250
|
-
* Constructs a new GPUAccelerator.
|
|
5251
|
-
* @param [properties] Properties to set
|
|
5252
|
-
*/
|
|
5253
|
-
constructor(properties?: flyteidl.core.IGPUAccelerator);
|
|
5254
|
-
|
|
5255
|
-
/** GPUAccelerator device. */
|
|
5256
|
-
public device: string;
|
|
5257
|
-
|
|
5258
|
-
/** GPUAccelerator unpartitioned. */
|
|
5259
|
-
public unpartitioned: boolean;
|
|
5260
|
-
|
|
5261
|
-
/** GPUAccelerator partitionSize. */
|
|
5262
|
-
public partitionSize: string;
|
|
5263
|
-
|
|
5264
|
-
/** GPUAccelerator partitionSizeValue. */
|
|
5265
|
-
public partitionSizeValue?: ("unpartitioned"|"partitionSize");
|
|
5266
|
-
|
|
5267
|
-
/**
|
|
5268
|
-
* Creates a new GPUAccelerator instance using the specified properties.
|
|
5269
|
-
* @param [properties] Properties to set
|
|
5270
|
-
* @returns GPUAccelerator instance
|
|
5271
|
-
*/
|
|
5272
|
-
public static create(properties?: flyteidl.core.IGPUAccelerator): flyteidl.core.GPUAccelerator;
|
|
5273
|
-
|
|
5274
|
-
/**
|
|
5275
|
-
* Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages.
|
|
5276
|
-
* @param message GPUAccelerator message or plain object to encode
|
|
5277
|
-
* @param [writer] Writer to encode to
|
|
5278
|
-
* @returns Writer
|
|
5279
|
-
*/
|
|
5280
|
-
public static encode(message: flyteidl.core.IGPUAccelerator, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5281
|
-
|
|
5282
|
-
/**
|
|
5283
|
-
* Decodes a GPUAccelerator message from the specified reader or buffer.
|
|
5284
|
-
* @param reader Reader or buffer to decode from
|
|
5285
|
-
* @param [length] Message length if known beforehand
|
|
5286
|
-
* @returns GPUAccelerator
|
|
5287
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5288
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5289
|
-
*/
|
|
5290
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GPUAccelerator;
|
|
5291
|
-
|
|
5292
|
-
/**
|
|
5293
|
-
* Verifies a GPUAccelerator message.
|
|
5294
|
-
* @param message Plain object to verify
|
|
5295
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
5296
|
-
*/
|
|
5297
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
/** Properties of a ResourceMetadata. */
|
|
5301
|
-
interface IResourceMetadata {
|
|
5302
|
-
|
|
5303
|
-
/** ResourceMetadata gpuAccelerator */
|
|
5304
|
-
gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
|
|
5305
|
-
}
|
|
5306
|
-
|
|
5307
|
-
/** Represents a ResourceMetadata. */
|
|
5308
|
-
class ResourceMetadata implements IResourceMetadata {
|
|
5309
|
-
|
|
5310
|
-
/**
|
|
5311
|
-
* Constructs a new ResourceMetadata.
|
|
5312
|
-
* @param [properties] Properties to set
|
|
5313
|
-
*/
|
|
5314
|
-
constructor(properties?: flyteidl.core.IResourceMetadata);
|
|
5315
|
-
|
|
5316
|
-
/** ResourceMetadata gpuAccelerator. */
|
|
5317
|
-
public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
|
|
5318
|
-
|
|
5319
|
-
/** ResourceMetadata acceleratorValue. */
|
|
5320
|
-
public acceleratorValue?: "gpuAccelerator";
|
|
5321
|
-
|
|
5322
|
-
/**
|
|
5323
|
-
* Creates a new ResourceMetadata instance using the specified properties.
|
|
5324
|
-
* @param [properties] Properties to set
|
|
5325
|
-
* @returns ResourceMetadata instance
|
|
5326
|
-
*/
|
|
5327
|
-
public static create(properties?: flyteidl.core.IResourceMetadata): flyteidl.core.ResourceMetadata;
|
|
5328
|
-
|
|
5329
|
-
/**
|
|
5330
|
-
* Encodes the specified ResourceMetadata message. Does not implicitly {@link flyteidl.core.ResourceMetadata.verify|verify} messages.
|
|
5331
|
-
* @param message ResourceMetadata message or plain object to encode
|
|
5332
|
-
* @param [writer] Writer to encode to
|
|
5333
|
-
* @returns Writer
|
|
5334
|
-
*/
|
|
5335
|
-
public static encode(message: flyteidl.core.IResourceMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5336
|
-
|
|
5337
|
-
/**
|
|
5338
|
-
* Decodes a ResourceMetadata message from the specified reader or buffer.
|
|
5339
|
-
* @param reader Reader or buffer to decode from
|
|
5340
|
-
* @param [length] Message length if known beforehand
|
|
5341
|
-
* @returns ResourceMetadata
|
|
5342
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5343
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5344
|
-
*/
|
|
5345
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ResourceMetadata;
|
|
5346
|
-
|
|
5347
|
-
/**
|
|
5348
|
-
* Verifies a ResourceMetadata message.
|
|
5349
|
-
* @param message Plain object to verify
|
|
5350
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
5351
|
-
*/
|
|
5352
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
5353
|
-
}
|
|
5354
|
-
|
|
5355
5227
|
/** Properties of a TaskMetadata. */
|
|
5356
5228
|
interface ITaskMetadata {
|
|
5357
5229
|
|
|
@@ -5387,9 +5259,6 @@ export namespace flyteidl {
|
|
|
5387
5259
|
|
|
5388
5260
|
/** TaskMetadata podTemplateName */
|
|
5389
5261
|
podTemplateName?: (string|null);
|
|
5390
|
-
|
|
5391
|
-
/** TaskMetadata resourceMetadata */
|
|
5392
|
-
resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
|
|
5393
5262
|
}
|
|
5394
5263
|
|
|
5395
5264
|
/** Represents a TaskMetadata. */
|
|
@@ -5434,9 +5303,6 @@ export namespace flyteidl {
|
|
|
5434
5303
|
/** TaskMetadata podTemplateName. */
|
|
5435
5304
|
public podTemplateName: string;
|
|
5436
5305
|
|
|
5437
|
-
/** TaskMetadata resourceMetadata. */
|
|
5438
|
-
public resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
|
|
5439
|
-
|
|
5440
5306
|
/** TaskMetadata interruptibleValue. */
|
|
5441
5307
|
public interruptibleValue?: "interruptible";
|
|
5442
5308
|
|
|
@@ -7388,6 +7254,64 @@ export namespace flyteidl {
|
|
|
7388
7254
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
7389
7255
|
}
|
|
7390
7256
|
|
|
7257
|
+
/** Properties of an EventReason. */
|
|
7258
|
+
interface IEventReason {
|
|
7259
|
+
|
|
7260
|
+
/** EventReason reason */
|
|
7261
|
+
reason?: (string|null);
|
|
7262
|
+
|
|
7263
|
+
/** EventReason occurredAt */
|
|
7264
|
+
occurredAt?: (google.protobuf.ITimestamp|null);
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
/** Represents an EventReason. */
|
|
7268
|
+
class EventReason implements IEventReason {
|
|
7269
|
+
|
|
7270
|
+
/**
|
|
7271
|
+
* Constructs a new EventReason.
|
|
7272
|
+
* @param [properties] Properties to set
|
|
7273
|
+
*/
|
|
7274
|
+
constructor(properties?: flyteidl.event.IEventReason);
|
|
7275
|
+
|
|
7276
|
+
/** EventReason reason. */
|
|
7277
|
+
public reason: string;
|
|
7278
|
+
|
|
7279
|
+
/** EventReason occurredAt. */
|
|
7280
|
+
public occurredAt?: (google.protobuf.ITimestamp|null);
|
|
7281
|
+
|
|
7282
|
+
/**
|
|
7283
|
+
* Creates a new EventReason instance using the specified properties.
|
|
7284
|
+
* @param [properties] Properties to set
|
|
7285
|
+
* @returns EventReason instance
|
|
7286
|
+
*/
|
|
7287
|
+
public static create(properties?: flyteidl.event.IEventReason): flyteidl.event.EventReason;
|
|
7288
|
+
|
|
7289
|
+
/**
|
|
7290
|
+
* Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages.
|
|
7291
|
+
* @param message EventReason message or plain object to encode
|
|
7292
|
+
* @param [writer] Writer to encode to
|
|
7293
|
+
* @returns Writer
|
|
7294
|
+
*/
|
|
7295
|
+
public static encode(message: flyteidl.event.IEventReason, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7296
|
+
|
|
7297
|
+
/**
|
|
7298
|
+
* Decodes an EventReason message from the specified reader or buffer.
|
|
7299
|
+
* @param reader Reader or buffer to decode from
|
|
7300
|
+
* @param [length] Message length if known beforehand
|
|
7301
|
+
* @returns EventReason
|
|
7302
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7303
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7304
|
+
*/
|
|
7305
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.EventReason;
|
|
7306
|
+
|
|
7307
|
+
/**
|
|
7308
|
+
* Verifies an EventReason message.
|
|
7309
|
+
* @param message Plain object to verify
|
|
7310
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7311
|
+
*/
|
|
7312
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7313
|
+
}
|
|
7314
|
+
|
|
7391
7315
|
/** Properties of a TaskExecutionEvent. */
|
|
7392
7316
|
interface ITaskExecutionEvent {
|
|
7393
7317
|
|
|
@@ -7436,6 +7360,9 @@ export namespace flyteidl {
|
|
|
7436
7360
|
/** TaskExecutionEvent reason */
|
|
7437
7361
|
reason?: (string|null);
|
|
7438
7362
|
|
|
7363
|
+
/** TaskExecutionEvent reasons */
|
|
7364
|
+
reasons?: (flyteidl.event.IEventReason[]|null);
|
|
7365
|
+
|
|
7439
7366
|
/** TaskExecutionEvent taskType */
|
|
7440
7367
|
taskType?: (string|null);
|
|
7441
7368
|
|
|
@@ -7503,6 +7430,9 @@ export namespace flyteidl {
|
|
|
7503
7430
|
/** TaskExecutionEvent reason. */
|
|
7504
7431
|
public reason: string;
|
|
7505
7432
|
|
|
7433
|
+
/** TaskExecutionEvent reasons. */
|
|
7434
|
+
public reasons: flyteidl.event.IEventReason[];
|
|
7435
|
+
|
|
7506
7436
|
/** TaskExecutionEvent taskType. */
|
|
7507
7437
|
public taskType: string;
|
|
7508
7438
|
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -4570,7 +4570,6 @@
|
|
|
4570
4570
|
* @memberof flyteidl.core
|
|
4571
4571
|
* @interface ITaskNodeOverrides
|
|
4572
4572
|
* @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources
|
|
4573
|
-
* @property {flyteidl.core.IResourceMetadata|null} [resourceMetadata] TaskNodeOverrides resourceMetadata
|
|
4574
4573
|
*/
|
|
4575
4574
|
|
|
4576
4575
|
/**
|
|
@@ -4596,14 +4595,6 @@
|
|
|
4596
4595
|
*/
|
|
4597
4596
|
TaskNodeOverrides.prototype.resources = null;
|
|
4598
4597
|
|
|
4599
|
-
/**
|
|
4600
|
-
* TaskNodeOverrides resourceMetadata.
|
|
4601
|
-
* @member {flyteidl.core.IResourceMetadata|null|undefined} resourceMetadata
|
|
4602
|
-
* @memberof flyteidl.core.TaskNodeOverrides
|
|
4603
|
-
* @instance
|
|
4604
|
-
*/
|
|
4605
|
-
TaskNodeOverrides.prototype.resourceMetadata = null;
|
|
4606
|
-
|
|
4607
4598
|
/**
|
|
4608
4599
|
* Creates a new TaskNodeOverrides instance using the specified properties.
|
|
4609
4600
|
* @function create
|
|
@@ -4630,8 +4621,6 @@
|
|
|
4630
4621
|
writer = $Writer.create();
|
|
4631
4622
|
if (message.resources != null && message.hasOwnProperty("resources"))
|
|
4632
4623
|
$root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
4633
|
-
if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata"))
|
|
4634
|
-
$root.flyteidl.core.ResourceMetadata.encode(message.resourceMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
4635
4624
|
return writer;
|
|
4636
4625
|
};
|
|
4637
4626
|
|
|
@@ -4656,9 +4645,6 @@
|
|
|
4656
4645
|
case 1:
|
|
4657
4646
|
message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32());
|
|
4658
4647
|
break;
|
|
4659
|
-
case 2:
|
|
4660
|
-
message.resourceMetadata = $root.flyteidl.core.ResourceMetadata.decode(reader, reader.uint32());
|
|
4661
|
-
break;
|
|
4662
4648
|
default:
|
|
4663
4649
|
reader.skipType(tag & 7);
|
|
4664
4650
|
break;
|
|
@@ -4683,11 +4669,6 @@
|
|
|
4683
4669
|
if (error)
|
|
4684
4670
|
return "resources." + error;
|
|
4685
4671
|
}
|
|
4686
|
-
if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata")) {
|
|
4687
|
-
var error = $root.flyteidl.core.ResourceMetadata.verify(message.resourceMetadata);
|
|
4688
|
-
if (error)
|
|
4689
|
-
return "resourceMetadata." + error;
|
|
4690
|
-
}
|
|
4691
4672
|
return null;
|
|
4692
4673
|
};
|
|
4693
4674
|
|
|
@@ -12458,301 +12439,6 @@
|
|
|
12458
12439
|
return RuntimeMetadata;
|
|
12459
12440
|
})();
|
|
12460
12441
|
|
|
12461
|
-
core.GPUAccelerator = (function() {
|
|
12462
|
-
|
|
12463
|
-
/**
|
|
12464
|
-
* Properties of a GPUAccelerator.
|
|
12465
|
-
* @memberof flyteidl.core
|
|
12466
|
-
* @interface IGPUAccelerator
|
|
12467
|
-
* @property {string|null} [device] GPUAccelerator device
|
|
12468
|
-
* @property {boolean|null} [unpartitioned] GPUAccelerator unpartitioned
|
|
12469
|
-
* @property {string|null} [partitionSize] GPUAccelerator partitionSize
|
|
12470
|
-
*/
|
|
12471
|
-
|
|
12472
|
-
/**
|
|
12473
|
-
* Constructs a new GPUAccelerator.
|
|
12474
|
-
* @memberof flyteidl.core
|
|
12475
|
-
* @classdesc Represents a GPUAccelerator.
|
|
12476
|
-
* @implements IGPUAccelerator
|
|
12477
|
-
* @constructor
|
|
12478
|
-
* @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set
|
|
12479
|
-
*/
|
|
12480
|
-
function GPUAccelerator(properties) {
|
|
12481
|
-
if (properties)
|
|
12482
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12483
|
-
if (properties[keys[i]] != null)
|
|
12484
|
-
this[keys[i]] = properties[keys[i]];
|
|
12485
|
-
}
|
|
12486
|
-
|
|
12487
|
-
/**
|
|
12488
|
-
* GPUAccelerator device.
|
|
12489
|
-
* @member {string} device
|
|
12490
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12491
|
-
* @instance
|
|
12492
|
-
*/
|
|
12493
|
-
GPUAccelerator.prototype.device = "";
|
|
12494
|
-
|
|
12495
|
-
/**
|
|
12496
|
-
* GPUAccelerator unpartitioned.
|
|
12497
|
-
* @member {boolean} unpartitioned
|
|
12498
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12499
|
-
* @instance
|
|
12500
|
-
*/
|
|
12501
|
-
GPUAccelerator.prototype.unpartitioned = false;
|
|
12502
|
-
|
|
12503
|
-
/**
|
|
12504
|
-
* GPUAccelerator partitionSize.
|
|
12505
|
-
* @member {string} partitionSize
|
|
12506
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12507
|
-
* @instance
|
|
12508
|
-
*/
|
|
12509
|
-
GPUAccelerator.prototype.partitionSize = "";
|
|
12510
|
-
|
|
12511
|
-
// OneOf field names bound to virtual getters and setters
|
|
12512
|
-
var $oneOfFields;
|
|
12513
|
-
|
|
12514
|
-
/**
|
|
12515
|
-
* GPUAccelerator partitionSizeValue.
|
|
12516
|
-
* @member {"unpartitioned"|"partitionSize"|undefined} partitionSizeValue
|
|
12517
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12518
|
-
* @instance
|
|
12519
|
-
*/
|
|
12520
|
-
Object.defineProperty(GPUAccelerator.prototype, "partitionSizeValue", {
|
|
12521
|
-
get: $util.oneOfGetter($oneOfFields = ["unpartitioned", "partitionSize"]),
|
|
12522
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
12523
|
-
});
|
|
12524
|
-
|
|
12525
|
-
/**
|
|
12526
|
-
* Creates a new GPUAccelerator instance using the specified properties.
|
|
12527
|
-
* @function create
|
|
12528
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12529
|
-
* @static
|
|
12530
|
-
* @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set
|
|
12531
|
-
* @returns {flyteidl.core.GPUAccelerator} GPUAccelerator instance
|
|
12532
|
-
*/
|
|
12533
|
-
GPUAccelerator.create = function create(properties) {
|
|
12534
|
-
return new GPUAccelerator(properties);
|
|
12535
|
-
};
|
|
12536
|
-
|
|
12537
|
-
/**
|
|
12538
|
-
* Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages.
|
|
12539
|
-
* @function encode
|
|
12540
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12541
|
-
* @static
|
|
12542
|
-
* @param {flyteidl.core.IGPUAccelerator} message GPUAccelerator message or plain object to encode
|
|
12543
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12544
|
-
* @returns {$protobuf.Writer} Writer
|
|
12545
|
-
*/
|
|
12546
|
-
GPUAccelerator.encode = function encode(message, writer) {
|
|
12547
|
-
if (!writer)
|
|
12548
|
-
writer = $Writer.create();
|
|
12549
|
-
if (message.device != null && message.hasOwnProperty("device"))
|
|
12550
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.device);
|
|
12551
|
-
if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned"))
|
|
12552
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.unpartitioned);
|
|
12553
|
-
if (message.partitionSize != null && message.hasOwnProperty("partitionSize"))
|
|
12554
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.partitionSize);
|
|
12555
|
-
return writer;
|
|
12556
|
-
};
|
|
12557
|
-
|
|
12558
|
-
/**
|
|
12559
|
-
* Decodes a GPUAccelerator message from the specified reader or buffer.
|
|
12560
|
-
* @function decode
|
|
12561
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12562
|
-
* @static
|
|
12563
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12564
|
-
* @param {number} [length] Message length if known beforehand
|
|
12565
|
-
* @returns {flyteidl.core.GPUAccelerator} GPUAccelerator
|
|
12566
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12567
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12568
|
-
*/
|
|
12569
|
-
GPUAccelerator.decode = function decode(reader, length) {
|
|
12570
|
-
if (!(reader instanceof $Reader))
|
|
12571
|
-
reader = $Reader.create(reader);
|
|
12572
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GPUAccelerator();
|
|
12573
|
-
while (reader.pos < end) {
|
|
12574
|
-
var tag = reader.uint32();
|
|
12575
|
-
switch (tag >>> 3) {
|
|
12576
|
-
case 1:
|
|
12577
|
-
message.device = reader.string();
|
|
12578
|
-
break;
|
|
12579
|
-
case 2:
|
|
12580
|
-
message.unpartitioned = reader.bool();
|
|
12581
|
-
break;
|
|
12582
|
-
case 3:
|
|
12583
|
-
message.partitionSize = reader.string();
|
|
12584
|
-
break;
|
|
12585
|
-
default:
|
|
12586
|
-
reader.skipType(tag & 7);
|
|
12587
|
-
break;
|
|
12588
|
-
}
|
|
12589
|
-
}
|
|
12590
|
-
return message;
|
|
12591
|
-
};
|
|
12592
|
-
|
|
12593
|
-
/**
|
|
12594
|
-
* Verifies a GPUAccelerator message.
|
|
12595
|
-
* @function verify
|
|
12596
|
-
* @memberof flyteidl.core.GPUAccelerator
|
|
12597
|
-
* @static
|
|
12598
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
12599
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12600
|
-
*/
|
|
12601
|
-
GPUAccelerator.verify = function verify(message) {
|
|
12602
|
-
if (typeof message !== "object" || message === null)
|
|
12603
|
-
return "object expected";
|
|
12604
|
-
var properties = {};
|
|
12605
|
-
if (message.device != null && message.hasOwnProperty("device"))
|
|
12606
|
-
if (!$util.isString(message.device))
|
|
12607
|
-
return "device: string expected";
|
|
12608
|
-
if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) {
|
|
12609
|
-
properties.partitionSizeValue = 1;
|
|
12610
|
-
if (typeof message.unpartitioned !== "boolean")
|
|
12611
|
-
return "unpartitioned: boolean expected";
|
|
12612
|
-
}
|
|
12613
|
-
if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) {
|
|
12614
|
-
if (properties.partitionSizeValue === 1)
|
|
12615
|
-
return "partitionSizeValue: multiple values";
|
|
12616
|
-
properties.partitionSizeValue = 1;
|
|
12617
|
-
if (!$util.isString(message.partitionSize))
|
|
12618
|
-
return "partitionSize: string expected";
|
|
12619
|
-
}
|
|
12620
|
-
return null;
|
|
12621
|
-
};
|
|
12622
|
-
|
|
12623
|
-
return GPUAccelerator;
|
|
12624
|
-
})();
|
|
12625
|
-
|
|
12626
|
-
core.ResourceMetadata = (function() {
|
|
12627
|
-
|
|
12628
|
-
/**
|
|
12629
|
-
* Properties of a ResourceMetadata.
|
|
12630
|
-
* @memberof flyteidl.core
|
|
12631
|
-
* @interface IResourceMetadata
|
|
12632
|
-
* @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ResourceMetadata gpuAccelerator
|
|
12633
|
-
*/
|
|
12634
|
-
|
|
12635
|
-
/**
|
|
12636
|
-
* Constructs a new ResourceMetadata.
|
|
12637
|
-
* @memberof flyteidl.core
|
|
12638
|
-
* @classdesc Represents a ResourceMetadata.
|
|
12639
|
-
* @implements IResourceMetadata
|
|
12640
|
-
* @constructor
|
|
12641
|
-
* @param {flyteidl.core.IResourceMetadata=} [properties] Properties to set
|
|
12642
|
-
*/
|
|
12643
|
-
function ResourceMetadata(properties) {
|
|
12644
|
-
if (properties)
|
|
12645
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12646
|
-
if (properties[keys[i]] != null)
|
|
12647
|
-
this[keys[i]] = properties[keys[i]];
|
|
12648
|
-
}
|
|
12649
|
-
|
|
12650
|
-
/**
|
|
12651
|
-
* ResourceMetadata gpuAccelerator.
|
|
12652
|
-
* @member {flyteidl.core.IGPUAccelerator|null|undefined} gpuAccelerator
|
|
12653
|
-
* @memberof flyteidl.core.ResourceMetadata
|
|
12654
|
-
* @instance
|
|
12655
|
-
*/
|
|
12656
|
-
ResourceMetadata.prototype.gpuAccelerator = null;
|
|
12657
|
-
|
|
12658
|
-
// OneOf field names bound to virtual getters and setters
|
|
12659
|
-
var $oneOfFields;
|
|
12660
|
-
|
|
12661
|
-
/**
|
|
12662
|
-
* ResourceMetadata acceleratorValue.
|
|
12663
|
-
* @member {"gpuAccelerator"|undefined} acceleratorValue
|
|
12664
|
-
* @memberof flyteidl.core.ResourceMetadata
|
|
12665
|
-
* @instance
|
|
12666
|
-
*/
|
|
12667
|
-
Object.defineProperty(ResourceMetadata.prototype, "acceleratorValue", {
|
|
12668
|
-
get: $util.oneOfGetter($oneOfFields = ["gpuAccelerator"]),
|
|
12669
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
12670
|
-
});
|
|
12671
|
-
|
|
12672
|
-
/**
|
|
12673
|
-
* Creates a new ResourceMetadata instance using the specified properties.
|
|
12674
|
-
* @function create
|
|
12675
|
-
* @memberof flyteidl.core.ResourceMetadata
|
|
12676
|
-
* @static
|
|
12677
|
-
* @param {flyteidl.core.IResourceMetadata=} [properties] Properties to set
|
|
12678
|
-
* @returns {flyteidl.core.ResourceMetadata} ResourceMetadata instance
|
|
12679
|
-
*/
|
|
12680
|
-
ResourceMetadata.create = function create(properties) {
|
|
12681
|
-
return new ResourceMetadata(properties);
|
|
12682
|
-
};
|
|
12683
|
-
|
|
12684
|
-
/**
|
|
12685
|
-
* Encodes the specified ResourceMetadata message. Does not implicitly {@link flyteidl.core.ResourceMetadata.verify|verify} messages.
|
|
12686
|
-
* @function encode
|
|
12687
|
-
* @memberof flyteidl.core.ResourceMetadata
|
|
12688
|
-
* @static
|
|
12689
|
-
* @param {flyteidl.core.IResourceMetadata} message ResourceMetadata message or plain object to encode
|
|
12690
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12691
|
-
* @returns {$protobuf.Writer} Writer
|
|
12692
|
-
*/
|
|
12693
|
-
ResourceMetadata.encode = function encode(message, writer) {
|
|
12694
|
-
if (!writer)
|
|
12695
|
-
writer = $Writer.create();
|
|
12696
|
-
if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator"))
|
|
12697
|
-
$root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12698
|
-
return writer;
|
|
12699
|
-
};
|
|
12700
|
-
|
|
12701
|
-
/**
|
|
12702
|
-
* Decodes a ResourceMetadata message from the specified reader or buffer.
|
|
12703
|
-
* @function decode
|
|
12704
|
-
* @memberof flyteidl.core.ResourceMetadata
|
|
12705
|
-
* @static
|
|
12706
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12707
|
-
* @param {number} [length] Message length if known beforehand
|
|
12708
|
-
* @returns {flyteidl.core.ResourceMetadata} ResourceMetadata
|
|
12709
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12710
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12711
|
-
*/
|
|
12712
|
-
ResourceMetadata.decode = function decode(reader, length) {
|
|
12713
|
-
if (!(reader instanceof $Reader))
|
|
12714
|
-
reader = $Reader.create(reader);
|
|
12715
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ResourceMetadata();
|
|
12716
|
-
while (reader.pos < end) {
|
|
12717
|
-
var tag = reader.uint32();
|
|
12718
|
-
switch (tag >>> 3) {
|
|
12719
|
-
case 1:
|
|
12720
|
-
message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32());
|
|
12721
|
-
break;
|
|
12722
|
-
default:
|
|
12723
|
-
reader.skipType(tag & 7);
|
|
12724
|
-
break;
|
|
12725
|
-
}
|
|
12726
|
-
}
|
|
12727
|
-
return message;
|
|
12728
|
-
};
|
|
12729
|
-
|
|
12730
|
-
/**
|
|
12731
|
-
* Verifies a ResourceMetadata message.
|
|
12732
|
-
* @function verify
|
|
12733
|
-
* @memberof flyteidl.core.ResourceMetadata
|
|
12734
|
-
* @static
|
|
12735
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
12736
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12737
|
-
*/
|
|
12738
|
-
ResourceMetadata.verify = function verify(message) {
|
|
12739
|
-
if (typeof message !== "object" || message === null)
|
|
12740
|
-
return "object expected";
|
|
12741
|
-
var properties = {};
|
|
12742
|
-
if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) {
|
|
12743
|
-
properties.acceleratorValue = 1;
|
|
12744
|
-
{
|
|
12745
|
-
var error = $root.flyteidl.core.GPUAccelerator.verify(message.gpuAccelerator);
|
|
12746
|
-
if (error)
|
|
12747
|
-
return "gpuAccelerator." + error;
|
|
12748
|
-
}
|
|
12749
|
-
}
|
|
12750
|
-
return null;
|
|
12751
|
-
};
|
|
12752
|
-
|
|
12753
|
-
return ResourceMetadata;
|
|
12754
|
-
})();
|
|
12755
|
-
|
|
12756
12442
|
core.TaskMetadata = (function() {
|
|
12757
12443
|
|
|
12758
12444
|
/**
|
|
@@ -12770,7 +12456,6 @@
|
|
|
12770
12456
|
* @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck
|
|
12771
12457
|
* @property {Object.<string,string>|null} [tags] TaskMetadata tags
|
|
12772
12458
|
* @property {string|null} [podTemplateName] TaskMetadata podTemplateName
|
|
12773
|
-
* @property {flyteidl.core.IResourceMetadata|null} [resourceMetadata] TaskMetadata resourceMetadata
|
|
12774
12459
|
*/
|
|
12775
12460
|
|
|
12776
12461
|
/**
|
|
@@ -12877,14 +12562,6 @@
|
|
|
12877
12562
|
*/
|
|
12878
12563
|
TaskMetadata.prototype.podTemplateName = "";
|
|
12879
12564
|
|
|
12880
|
-
/**
|
|
12881
|
-
* TaskMetadata resourceMetadata.
|
|
12882
|
-
* @member {flyteidl.core.IResourceMetadata|null|undefined} resourceMetadata
|
|
12883
|
-
* @memberof flyteidl.core.TaskMetadata
|
|
12884
|
-
* @instance
|
|
12885
|
-
*/
|
|
12886
|
-
TaskMetadata.prototype.resourceMetadata = null;
|
|
12887
|
-
|
|
12888
12565
|
// OneOf field names bound to virtual getters and setters
|
|
12889
12566
|
var $oneOfFields;
|
|
12890
12567
|
|
|
@@ -12946,8 +12623,6 @@
|
|
|
12946
12623
|
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();
|
|
12947
12624
|
if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName"))
|
|
12948
12625
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.podTemplateName);
|
|
12949
|
-
if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata"))
|
|
12950
|
-
$root.flyteidl.core.ResourceMetadata.encode(message.resourceMetadata, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
12951
12626
|
return writer;
|
|
12952
12627
|
};
|
|
12953
12628
|
|
|
@@ -13007,9 +12682,6 @@
|
|
|
13007
12682
|
case 12:
|
|
13008
12683
|
message.podTemplateName = reader.string();
|
|
13009
12684
|
break;
|
|
13010
|
-
case 13:
|
|
13011
|
-
message.resourceMetadata = $root.flyteidl.core.ResourceMetadata.decode(reader, reader.uint32());
|
|
13012
|
-
break;
|
|
13013
12685
|
default:
|
|
13014
12686
|
reader.skipType(tag & 7);
|
|
13015
12687
|
break;
|
|
@@ -13076,11 +12748,6 @@
|
|
|
13076
12748
|
if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName"))
|
|
13077
12749
|
if (!$util.isString(message.podTemplateName))
|
|
13078
12750
|
return "podTemplateName: string expected";
|
|
13079
|
-
if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata")) {
|
|
13080
|
-
var error = $root.flyteidl.core.ResourceMetadata.verify(message.resourceMetadata);
|
|
13081
|
-
if (error)
|
|
13082
|
-
return "resourceMetadata." + error;
|
|
13083
|
-
}
|
|
13084
12751
|
return null;
|
|
13085
12752
|
};
|
|
13086
12753
|
|
|
@@ -17941,6 +17608,135 @@
|
|
|
17941
17608
|
return ParentNodeExecutionMetadata;
|
|
17942
17609
|
})();
|
|
17943
17610
|
|
|
17611
|
+
event.EventReason = (function() {
|
|
17612
|
+
|
|
17613
|
+
/**
|
|
17614
|
+
* Properties of an EventReason.
|
|
17615
|
+
* @memberof flyteidl.event
|
|
17616
|
+
* @interface IEventReason
|
|
17617
|
+
* @property {string|null} [reason] EventReason reason
|
|
17618
|
+
* @property {google.protobuf.ITimestamp|null} [occurredAt] EventReason occurredAt
|
|
17619
|
+
*/
|
|
17620
|
+
|
|
17621
|
+
/**
|
|
17622
|
+
* Constructs a new EventReason.
|
|
17623
|
+
* @memberof flyteidl.event
|
|
17624
|
+
* @classdesc Represents an EventReason.
|
|
17625
|
+
* @implements IEventReason
|
|
17626
|
+
* @constructor
|
|
17627
|
+
* @param {flyteidl.event.IEventReason=} [properties] Properties to set
|
|
17628
|
+
*/
|
|
17629
|
+
function EventReason(properties) {
|
|
17630
|
+
if (properties)
|
|
17631
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17632
|
+
if (properties[keys[i]] != null)
|
|
17633
|
+
this[keys[i]] = properties[keys[i]];
|
|
17634
|
+
}
|
|
17635
|
+
|
|
17636
|
+
/**
|
|
17637
|
+
* EventReason reason.
|
|
17638
|
+
* @member {string} reason
|
|
17639
|
+
* @memberof flyteidl.event.EventReason
|
|
17640
|
+
* @instance
|
|
17641
|
+
*/
|
|
17642
|
+
EventReason.prototype.reason = "";
|
|
17643
|
+
|
|
17644
|
+
/**
|
|
17645
|
+
* EventReason occurredAt.
|
|
17646
|
+
* @member {google.protobuf.ITimestamp|null|undefined} occurredAt
|
|
17647
|
+
* @memberof flyteidl.event.EventReason
|
|
17648
|
+
* @instance
|
|
17649
|
+
*/
|
|
17650
|
+
EventReason.prototype.occurredAt = null;
|
|
17651
|
+
|
|
17652
|
+
/**
|
|
17653
|
+
* Creates a new EventReason instance using the specified properties.
|
|
17654
|
+
* @function create
|
|
17655
|
+
* @memberof flyteidl.event.EventReason
|
|
17656
|
+
* @static
|
|
17657
|
+
* @param {flyteidl.event.IEventReason=} [properties] Properties to set
|
|
17658
|
+
* @returns {flyteidl.event.EventReason} EventReason instance
|
|
17659
|
+
*/
|
|
17660
|
+
EventReason.create = function create(properties) {
|
|
17661
|
+
return new EventReason(properties);
|
|
17662
|
+
};
|
|
17663
|
+
|
|
17664
|
+
/**
|
|
17665
|
+
* Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages.
|
|
17666
|
+
* @function encode
|
|
17667
|
+
* @memberof flyteidl.event.EventReason
|
|
17668
|
+
* @static
|
|
17669
|
+
* @param {flyteidl.event.IEventReason} message EventReason message or plain object to encode
|
|
17670
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17671
|
+
* @returns {$protobuf.Writer} Writer
|
|
17672
|
+
*/
|
|
17673
|
+
EventReason.encode = function encode(message, writer) {
|
|
17674
|
+
if (!writer)
|
|
17675
|
+
writer = $Writer.create();
|
|
17676
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
17677
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason);
|
|
17678
|
+
if (message.occurredAt != null && message.hasOwnProperty("occurredAt"))
|
|
17679
|
+
$root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
17680
|
+
return writer;
|
|
17681
|
+
};
|
|
17682
|
+
|
|
17683
|
+
/**
|
|
17684
|
+
* Decodes an EventReason message from the specified reader or buffer.
|
|
17685
|
+
* @function decode
|
|
17686
|
+
* @memberof flyteidl.event.EventReason
|
|
17687
|
+
* @static
|
|
17688
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17689
|
+
* @param {number} [length] Message length if known beforehand
|
|
17690
|
+
* @returns {flyteidl.event.EventReason} EventReason
|
|
17691
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17692
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17693
|
+
*/
|
|
17694
|
+
EventReason.decode = function decode(reader, length) {
|
|
17695
|
+
if (!(reader instanceof $Reader))
|
|
17696
|
+
reader = $Reader.create(reader);
|
|
17697
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.EventReason();
|
|
17698
|
+
while (reader.pos < end) {
|
|
17699
|
+
var tag = reader.uint32();
|
|
17700
|
+
switch (tag >>> 3) {
|
|
17701
|
+
case 1:
|
|
17702
|
+
message.reason = reader.string();
|
|
17703
|
+
break;
|
|
17704
|
+
case 2:
|
|
17705
|
+
message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
17706
|
+
break;
|
|
17707
|
+
default:
|
|
17708
|
+
reader.skipType(tag & 7);
|
|
17709
|
+
break;
|
|
17710
|
+
}
|
|
17711
|
+
}
|
|
17712
|
+
return message;
|
|
17713
|
+
};
|
|
17714
|
+
|
|
17715
|
+
/**
|
|
17716
|
+
* Verifies an EventReason message.
|
|
17717
|
+
* @function verify
|
|
17718
|
+
* @memberof flyteidl.event.EventReason
|
|
17719
|
+
* @static
|
|
17720
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17721
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17722
|
+
*/
|
|
17723
|
+
EventReason.verify = function verify(message) {
|
|
17724
|
+
if (typeof message !== "object" || message === null)
|
|
17725
|
+
return "object expected";
|
|
17726
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
17727
|
+
if (!$util.isString(message.reason))
|
|
17728
|
+
return "reason: string expected";
|
|
17729
|
+
if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) {
|
|
17730
|
+
var error = $root.google.protobuf.Timestamp.verify(message.occurredAt);
|
|
17731
|
+
if (error)
|
|
17732
|
+
return "occurredAt." + error;
|
|
17733
|
+
}
|
|
17734
|
+
return null;
|
|
17735
|
+
};
|
|
17736
|
+
|
|
17737
|
+
return EventReason;
|
|
17738
|
+
})();
|
|
17739
|
+
|
|
17944
17740
|
event.TaskExecutionEvent = (function() {
|
|
17945
17741
|
|
|
17946
17742
|
/**
|
|
@@ -17962,6 +17758,7 @@
|
|
|
17962
17758
|
* @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo
|
|
17963
17759
|
* @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion
|
|
17964
17760
|
* @property {string|null} [reason] TaskExecutionEvent reason
|
|
17761
|
+
* @property {Array.<flyteidl.event.IEventReason>|null} [reasons] TaskExecutionEvent reasons
|
|
17965
17762
|
* @property {string|null} [taskType] TaskExecutionEvent taskType
|
|
17966
17763
|
* @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionEvent metadata
|
|
17967
17764
|
* @property {number|null} [eventVersion] TaskExecutionEvent eventVersion
|
|
@@ -17978,6 +17775,7 @@
|
|
|
17978
17775
|
*/
|
|
17979
17776
|
function TaskExecutionEvent(properties) {
|
|
17980
17777
|
this.logs = [];
|
|
17778
|
+
this.reasons = [];
|
|
17981
17779
|
if (properties)
|
|
17982
17780
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17983
17781
|
if (properties[keys[i]] != null)
|
|
@@ -18104,6 +17902,14 @@
|
|
|
18104
17902
|
*/
|
|
18105
17903
|
TaskExecutionEvent.prototype.reason = "";
|
|
18106
17904
|
|
|
17905
|
+
/**
|
|
17906
|
+
* TaskExecutionEvent reasons.
|
|
17907
|
+
* @member {Array.<flyteidl.event.IEventReason>} reasons
|
|
17908
|
+
* @memberof flyteidl.event.TaskExecutionEvent
|
|
17909
|
+
* @instance
|
|
17910
|
+
*/
|
|
17911
|
+
TaskExecutionEvent.prototype.reasons = $util.emptyArray;
|
|
17912
|
+
|
|
18107
17913
|
/**
|
|
18108
17914
|
* TaskExecutionEvent taskType.
|
|
18109
17915
|
* @member {string} taskType
|
|
@@ -18224,6 +18030,9 @@
|
|
|
18224
18030
|
$root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
18225
18031
|
if (message.reportedAt != null && message.hasOwnProperty("reportedAt"))
|
|
18226
18032
|
$root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
18033
|
+
if (message.reasons != null && message.reasons.length)
|
|
18034
|
+
for (var i = 0; i < message.reasons.length; ++i)
|
|
18035
|
+
$root.flyteidl.event.EventReason.encode(message.reasons[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
18227
18036
|
return writer;
|
|
18228
18037
|
};
|
|
18229
18038
|
|
|
@@ -18292,6 +18101,11 @@
|
|
|
18292
18101
|
case 13:
|
|
18293
18102
|
message.reason = reader.string();
|
|
18294
18103
|
break;
|
|
18104
|
+
case 21:
|
|
18105
|
+
if (!(message.reasons && message.reasons.length))
|
|
18106
|
+
message.reasons = [];
|
|
18107
|
+
message.reasons.push($root.flyteidl.event.EventReason.decode(reader, reader.uint32()));
|
|
18108
|
+
break;
|
|
18295
18109
|
case 14:
|
|
18296
18110
|
message.taskType = reader.string();
|
|
18297
18111
|
break;
|
|
@@ -18419,6 +18233,15 @@
|
|
|
18419
18233
|
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
18420
18234
|
if (!$util.isString(message.reason))
|
|
18421
18235
|
return "reason: string expected";
|
|
18236
|
+
if (message.reasons != null && message.hasOwnProperty("reasons")) {
|
|
18237
|
+
if (!Array.isArray(message.reasons))
|
|
18238
|
+
return "reasons: array expected";
|
|
18239
|
+
for (var i = 0; i < message.reasons.length; ++i) {
|
|
18240
|
+
var error = $root.flyteidl.event.EventReason.verify(message.reasons[i]);
|
|
18241
|
+
if (error)
|
|
18242
|
+
return "reasons." + error;
|
|
18243
|
+
}
|
|
18244
|
+
}
|
|
18422
18245
|
if (message.taskType != null && message.hasOwnProperty("taskType"))
|
|
18423
18246
|
if (!$util.isString(message.taskType))
|
|
18424
18247
|
return "taskType: string expected";
|
package/package.json
CHANGED
|
@@ -61,22 +61,6 @@ message RuntimeMetadata {
|
|
|
61
61
|
string flavor = 3;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// Metadata associated with the GPU accelerator to allocate to a task
|
|
65
|
-
message GPUAccelerator {
|
|
66
|
-
string device = 1;
|
|
67
|
-
oneof partition_size_value {
|
|
68
|
-
bool unpartitioned = 2;
|
|
69
|
-
string partition_size = 3;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Additional metadata associated with resources to allocate to a task
|
|
74
|
-
message ResourceMetadata {
|
|
75
|
-
oneof accelerator_value {
|
|
76
|
-
GPUAccelerator gpu_accelerator = 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
64
|
// Task Metadata
|
|
81
65
|
message TaskMetadata {
|
|
82
66
|
// Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
|
|
@@ -122,9 +106,6 @@ message TaskMetadata {
|
|
|
122
106
|
// task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
|
|
123
107
|
// identically as, the default PodTemplate configured in FlytePropeller.
|
|
124
108
|
string pod_template_name = 12;
|
|
125
|
-
|
|
126
|
-
// Additional metadata associated with resources to allocate to this task
|
|
127
|
-
ResourceMetadata resource_metadata = 13;
|
|
128
109
|
}
|
|
129
110
|
|
|
130
111
|
// A Task structure that uniquely identifies a task in the system
|
|
@@ -279,7 +279,4 @@ message WorkflowTemplate {
|
|
|
279
279
|
message TaskNodeOverrides {
|
|
280
280
|
// A customizable interface to convey resources requested for a task container.
|
|
281
281
|
Resources resources = 1;
|
|
282
|
-
|
|
283
|
-
// Additional metadata associated with resources to allocate to this task
|
|
284
|
-
core.ResourceMetadata resource_metadata = 2;
|
|
285
282
|
}
|
|
@@ -154,6 +154,14 @@ message ParentNodeExecutionMetadata {
|
|
|
154
154
|
string node_id = 1;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
message EventReason {
|
|
158
|
+
// An explanation for this event
|
|
159
|
+
string reason = 1;
|
|
160
|
+
|
|
161
|
+
// The time this reason occurred
|
|
162
|
+
google.protobuf.Timestamp occurred_at = 2;
|
|
163
|
+
}
|
|
164
|
+
|
|
157
165
|
// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
|
|
158
166
|
message TaskExecutionEvent {
|
|
159
167
|
// ID of the task. In combination with the retryAttempt this will indicate
|
|
@@ -180,7 +188,6 @@ message TaskExecutionEvent {
|
|
|
180
188
|
// by the executor of the task.
|
|
181
189
|
google.protobuf.Timestamp occurred_at = 7;
|
|
182
190
|
|
|
183
|
-
|
|
184
191
|
oneof input_value {
|
|
185
192
|
// URI of the input file, it encodes all the information
|
|
186
193
|
// including Cloud source provider. ie., s3://...
|
|
@@ -211,8 +218,11 @@ message TaskExecutionEvent {
|
|
|
211
218
|
uint32 phase_version = 12;
|
|
212
219
|
|
|
213
220
|
// An optional explanation for the phase transition.
|
|
214
|
-
|
|
221
|
+
// Deprecated: Use reasons instead.
|
|
222
|
+
string reason = 13 [deprecated = true];
|
|
215
223
|
|
|
224
|
+
// An optional list of explanations for the phase transition.
|
|
225
|
+
repeated EventReason reasons = 21;
|
|
216
226
|
|
|
217
227
|
// A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
|
|
218
228
|
// this type will be identical, but not all task executions necessarily use pre-registered definitions and this
|