@flyteorg/flyteidl 0.21.12 → 0.21.16

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.
@@ -3308,7 +3308,8 @@ export namespace flyteidl {
3308
3308
  FAILING = 5,
3309
3309
  FAILED = 6,
3310
3310
  ABORTED = 7,
3311
- TIMED_OUT = 8
3311
+ TIMED_OUT = 8,
3312
+ ABORTING = 9
3312
3313
  }
3313
3314
  }
3314
3315
 
@@ -7807,11 +7808,66 @@ export namespace flyteidl {
7807
7808
  public static verify(message: { [k: string]: any }): (string|null);
7808
7809
  }
7809
7810
 
7811
+ /** Properties of an EventErrorIncompatibleCluster. */
7812
+ interface IEventErrorIncompatibleCluster {
7813
+
7814
+ /** EventErrorIncompatibleCluster cluster */
7815
+ cluster?: (string|null);
7816
+ }
7817
+
7818
+ /** Represents an EventErrorIncompatibleCluster. */
7819
+ class EventErrorIncompatibleCluster implements IEventErrorIncompatibleCluster {
7820
+
7821
+ /**
7822
+ * Constructs a new EventErrorIncompatibleCluster.
7823
+ * @param [properties] Properties to set
7824
+ */
7825
+ constructor(properties?: flyteidl.admin.IEventErrorIncompatibleCluster);
7826
+
7827
+ /** EventErrorIncompatibleCluster cluster. */
7828
+ public cluster: string;
7829
+
7830
+ /**
7831
+ * Creates a new EventErrorIncompatibleCluster instance using the specified properties.
7832
+ * @param [properties] Properties to set
7833
+ * @returns EventErrorIncompatibleCluster instance
7834
+ */
7835
+ public static create(properties?: flyteidl.admin.IEventErrorIncompatibleCluster): flyteidl.admin.EventErrorIncompatibleCluster;
7836
+
7837
+ /**
7838
+ * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages.
7839
+ * @param message EventErrorIncompatibleCluster message or plain object to encode
7840
+ * @param [writer] Writer to encode to
7841
+ * @returns Writer
7842
+ */
7843
+ public static encode(message: flyteidl.admin.IEventErrorIncompatibleCluster, writer?: $protobuf.Writer): $protobuf.Writer;
7844
+
7845
+ /**
7846
+ * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer.
7847
+ * @param reader Reader or buffer to decode from
7848
+ * @param [length] Message length if known beforehand
7849
+ * @returns EventErrorIncompatibleCluster
7850
+ * @throws {Error} If the payload is not a reader or valid buffer
7851
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7852
+ */
7853
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorIncompatibleCluster;
7854
+
7855
+ /**
7856
+ * Verifies an EventErrorIncompatibleCluster message.
7857
+ * @param message Plain object to verify
7858
+ * @returns `null` if valid, otherwise the reason why it is not
7859
+ */
7860
+ public static verify(message: { [k: string]: any }): (string|null);
7861
+ }
7862
+
7810
7863
  /** Properties of an EventFailureReason. */
7811
7864
  interface IEventFailureReason {
7812
7865
 
7813
7866
  /** EventFailureReason alreadyInTerminalState */
7814
7867
  alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null);
7868
+
7869
+ /** EventFailureReason incompatibleCluster */
7870
+ incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null);
7815
7871
  }
7816
7872
 
7817
7873
  /** Represents an EventFailureReason. */
@@ -7826,8 +7882,11 @@ export namespace flyteidl {
7826
7882
  /** EventFailureReason alreadyInTerminalState. */
7827
7883
  public alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null);
7828
7884
 
7885
+ /** EventFailureReason incompatibleCluster. */
7886
+ public incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null);
7887
+
7829
7888
  /** EventFailureReason reason. */
7830
- public reason?: "alreadyInTerminalState";
7889
+ public reason?: ("alreadyInTerminalState"|"incompatibleCluster");
7831
7890
 
7832
7891
  /**
7833
7892
  * Creates a new EventFailureReason instance using the specified properties.
@@ -7927,6 +7927,7 @@ export const flyteidl = $root.flyteidl = (() => {
7927
7927
  * @property {number} FAILED=6 FAILED value
7928
7928
  * @property {number} ABORTED=7 ABORTED value
7929
7929
  * @property {number} TIMED_OUT=8 TIMED_OUT value
7930
+ * @property {number} ABORTING=9 ABORTING value
7930
7931
  */
7931
7932
  WorkflowExecution.Phase = (function() {
7932
7933
  const valuesById = {}, values = Object.create(valuesById);
@@ -7939,6 +7940,7 @@ export const flyteidl = $root.flyteidl = (() => {
7939
7940
  values[valuesById[6] = "FAILED"] = 6;
7940
7941
  values[valuesById[7] = "ABORTED"] = 7;
7941
7942
  values[valuesById[8] = "TIMED_OUT"] = 8;
7943
+ values[valuesById[9] = "ABORTING"] = 9;
7942
7944
  return values;
7943
7945
  })();
7944
7946
 
@@ -13532,6 +13534,7 @@ export const flyteidl = $root.flyteidl = (() => {
13532
13534
  case 6:
13533
13535
  case 7:
13534
13536
  case 8:
13537
+ case 9:
13535
13538
  break;
13536
13539
  }
13537
13540
  if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) {
@@ -18042,6 +18045,7 @@ export const flyteidl = $root.flyteidl = (() => {
18042
18045
  case 6:
18043
18046
  case 7:
18044
18047
  case 8:
18048
+ case 9:
18045
18049
  break;
18046
18050
  }
18047
18051
  }
@@ -18797,6 +18801,116 @@ export const flyteidl = $root.flyteidl = (() => {
18797
18801
  return EventErrorAlreadyInTerminalState;
18798
18802
  })();
18799
18803
 
18804
+ admin.EventErrorIncompatibleCluster = (function() {
18805
+
18806
+ /**
18807
+ * Properties of an EventErrorIncompatibleCluster.
18808
+ * @memberof flyteidl.admin
18809
+ * @interface IEventErrorIncompatibleCluster
18810
+ * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster
18811
+ */
18812
+
18813
+ /**
18814
+ * Constructs a new EventErrorIncompatibleCluster.
18815
+ * @memberof flyteidl.admin
18816
+ * @classdesc Represents an EventErrorIncompatibleCluster.
18817
+ * @implements IEventErrorIncompatibleCluster
18818
+ * @constructor
18819
+ * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set
18820
+ */
18821
+ function EventErrorIncompatibleCluster(properties) {
18822
+ if (properties)
18823
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18824
+ if (properties[keys[i]] != null)
18825
+ this[keys[i]] = properties[keys[i]];
18826
+ }
18827
+
18828
+ /**
18829
+ * EventErrorIncompatibleCluster cluster.
18830
+ * @member {string} cluster
18831
+ * @memberof flyteidl.admin.EventErrorIncompatibleCluster
18832
+ * @instance
18833
+ */
18834
+ EventErrorIncompatibleCluster.prototype.cluster = "";
18835
+
18836
+ /**
18837
+ * Creates a new EventErrorIncompatibleCluster instance using the specified properties.
18838
+ * @function create
18839
+ * @memberof flyteidl.admin.EventErrorIncompatibleCluster
18840
+ * @static
18841
+ * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set
18842
+ * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance
18843
+ */
18844
+ EventErrorIncompatibleCluster.create = function create(properties) {
18845
+ return new EventErrorIncompatibleCluster(properties);
18846
+ };
18847
+
18848
+ /**
18849
+ * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages.
18850
+ * @function encode
18851
+ * @memberof flyteidl.admin.EventErrorIncompatibleCluster
18852
+ * @static
18853
+ * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode
18854
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18855
+ * @returns {$protobuf.Writer} Writer
18856
+ */
18857
+ EventErrorIncompatibleCluster.encode = function encode(message, writer) {
18858
+ if (!writer)
18859
+ writer = $Writer.create();
18860
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
18861
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster);
18862
+ return writer;
18863
+ };
18864
+
18865
+ /**
18866
+ * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer.
18867
+ * @function decode
18868
+ * @memberof flyteidl.admin.EventErrorIncompatibleCluster
18869
+ * @static
18870
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18871
+ * @param {number} [length] Message length if known beforehand
18872
+ * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster
18873
+ * @throws {Error} If the payload is not a reader or valid buffer
18874
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18875
+ */
18876
+ EventErrorIncompatibleCluster.decode = function decode(reader, length) {
18877
+ if (!(reader instanceof $Reader))
18878
+ reader = $Reader.create(reader);
18879
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorIncompatibleCluster();
18880
+ while (reader.pos < end) {
18881
+ let tag = reader.uint32();
18882
+ switch (tag >>> 3) {
18883
+ case 1:
18884
+ message.cluster = reader.string();
18885
+ break;
18886
+ default:
18887
+ reader.skipType(tag & 7);
18888
+ break;
18889
+ }
18890
+ }
18891
+ return message;
18892
+ };
18893
+
18894
+ /**
18895
+ * Verifies an EventErrorIncompatibleCluster message.
18896
+ * @function verify
18897
+ * @memberof flyteidl.admin.EventErrorIncompatibleCluster
18898
+ * @static
18899
+ * @param {Object.<string,*>} message Plain object to verify
18900
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18901
+ */
18902
+ EventErrorIncompatibleCluster.verify = function verify(message) {
18903
+ if (typeof message !== "object" || message === null)
18904
+ return "object expected";
18905
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
18906
+ if (!$util.isString(message.cluster))
18907
+ return "cluster: string expected";
18908
+ return null;
18909
+ };
18910
+
18911
+ return EventErrorIncompatibleCluster;
18912
+ })();
18913
+
18800
18914
  admin.EventFailureReason = (function() {
18801
18915
 
18802
18916
  /**
@@ -18804,6 +18918,7 @@ export const flyteidl = $root.flyteidl = (() => {
18804
18918
  * @memberof flyteidl.admin
18805
18919
  * @interface IEventFailureReason
18806
18920
  * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState
18921
+ * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster
18807
18922
  */
18808
18923
 
18809
18924
  /**
@@ -18829,17 +18944,25 @@ export const flyteidl = $root.flyteidl = (() => {
18829
18944
  */
18830
18945
  EventFailureReason.prototype.alreadyInTerminalState = null;
18831
18946
 
18947
+ /**
18948
+ * EventFailureReason incompatibleCluster.
18949
+ * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster
18950
+ * @memberof flyteidl.admin.EventFailureReason
18951
+ * @instance
18952
+ */
18953
+ EventFailureReason.prototype.incompatibleCluster = null;
18954
+
18832
18955
  // OneOf field names bound to virtual getters and setters
18833
18956
  let $oneOfFields;
18834
18957
 
18835
18958
  /**
18836
18959
  * EventFailureReason reason.
18837
- * @member {"alreadyInTerminalState"|undefined} reason
18960
+ * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason
18838
18961
  * @memberof flyteidl.admin.EventFailureReason
18839
18962
  * @instance
18840
18963
  */
18841
18964
  Object.defineProperty(EventFailureReason.prototype, "reason", {
18842
- get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState"]),
18965
+ get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]),
18843
18966
  set: $util.oneOfSetter($oneOfFields)
18844
18967
  });
18845
18968
 
@@ -18869,6 +18992,8 @@ export const flyteidl = $root.flyteidl = (() => {
18869
18992
  writer = $Writer.create();
18870
18993
  if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState"))
18871
18994
  $root.flyteidl.admin.EventErrorAlreadyInTerminalState.encode(message.alreadyInTerminalState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
18995
+ if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster"))
18996
+ $root.flyteidl.admin.EventErrorIncompatibleCluster.encode(message.incompatibleCluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18872
18997
  return writer;
18873
18998
  };
18874
18999
 
@@ -18893,6 +19018,9 @@ export const flyteidl = $root.flyteidl = (() => {
18893
19018
  case 1:
18894
19019
  message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32());
18895
19020
  break;
19021
+ case 2:
19022
+ message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32());
19023
+ break;
18896
19024
  default:
18897
19025
  reader.skipType(tag & 7);
18898
19026
  break;
@@ -18921,6 +19049,16 @@ export const flyteidl = $root.flyteidl = (() => {
18921
19049
  return "alreadyInTerminalState." + error;
18922
19050
  }
18923
19051
  }
19052
+ if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) {
19053
+ if (properties.reason === 1)
19054
+ return "reason: multiple values";
19055
+ properties.reason = 1;
19056
+ {
19057
+ let error = $root.flyteidl.admin.EventErrorIncompatibleCluster.verify(message.incompatibleCluster);
19058
+ if (error)
19059
+ return "incompatibleCluster." + error;
19060
+ }
19061
+ }
18924
19062
  return null;
18925
19063
  };
18926
19064
 
@@ -21192,6 +21330,7 @@ export const flyteidl = $root.flyteidl = (() => {
21192
21330
  case 6:
21193
21331
  case 7:
21194
21332
  case 8:
21333
+ case 9:
21195
21334
  break;
21196
21335
  }
21197
21336
  if (message.startedAt != null && message.hasOwnProperty("startedAt")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "0.21.12",
3
+ "version": "0.21.16",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -634,6 +634,28 @@ for further state transitions).
634
634
 
635
635
 
636
636
 
637
+ .. _ref_flyteidl.admin.EventErrorIncompatibleCluster:
638
+
639
+ EventErrorIncompatibleCluster
640
+ ------------------------------------------------------------------
641
+
642
+ Indicates an event was rejected because it came from a different cluster than
643
+ is on record as running the execution.
644
+
645
+
646
+
647
+ .. csv-table:: EventErrorIncompatibleCluster type fields
648
+ :header: "Field", "Type", "Label", "Description"
649
+ :widths: auto
650
+
651
+ "cluster", ":ref:`ref_string`", "", "The cluster which has been recorded as processing the execution. +required"
652
+
653
+
654
+
655
+
656
+
657
+
658
+
637
659
  .. _ref_flyteidl.admin.EventFailureReason:
638
660
 
639
661
  EventFailureReason
@@ -648,6 +670,7 @@ Indicates why a sent event was not used to update execution.
648
670
  :widths: auto
649
671
 
650
672
  "already_in_terminal_state", ":ref:`ref_flyteidl.admin.EventErrorAlreadyInTerminalState`", "", ""
673
+ "incompatible_cluster", ":ref:`ref_flyteidl.admin.EventErrorIncompatibleCluster`", "", ""
651
674
 
652
675
 
653
676
 
@@ -832,6 +832,7 @@ WorkflowExecution.Phase
832
832
  "FAILED", "6", ""
833
833
  "ABORTED", "7", ""
834
834
  "TIMED_OUT", "8", ""
835
+ "ABORTING", "9", ""
835
836
 
836
837
 
837
838
 
@@ -13,11 +13,20 @@ message EventErrorAlreadyInTerminalState {
13
13
  string current_phase = 1;
14
14
  }
15
15
 
16
+ // Indicates an event was rejected because it came from a different cluster than
17
+ // is on record as running the execution.
18
+ message EventErrorIncompatibleCluster {
19
+ // The cluster which has been recorded as processing the execution.
20
+ // +required
21
+ string cluster = 1;
22
+ }
23
+
16
24
  // Indicates why a sent event was not used to update execution.
17
25
  message EventFailureReason {
18
26
  // +required
19
27
  oneof reason {
20
28
  EventErrorAlreadyInTerminalState already_in_terminal_state = 1;
29
+ EventErrorIncompatibleCluster incompatible_cluster = 2;
21
30
  }
22
31
  }
23
32
 
@@ -18,6 +18,7 @@ message WorkflowExecution {
18
18
  FAILED = 6;
19
19
  ABORTED = 7;
20
20
  TIMED_OUT = 8;
21
+ ABORTING = 9;
21
22
  }
22
23
  }
23
24