-
Notifications
You must be signed in to change notification settings - Fork 882
Expand file tree
/
Copy pathexecution.pb.go
More file actions
1865 lines (1645 loc) · 67.5 KB
/
Copy pathexecution.pb.go
File metadata and controls
1865 lines (1645 loc) · 67.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc (unknown)
// source: flyteidl2/core/execution.proto
package core
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type WorkflowExecution_Phase int32
const (
WorkflowExecution_UNDEFINED WorkflowExecution_Phase = 0
WorkflowExecution_QUEUED WorkflowExecution_Phase = 1
WorkflowExecution_RUNNING WorkflowExecution_Phase = 2
WorkflowExecution_SUCCEEDING WorkflowExecution_Phase = 3
WorkflowExecution_SUCCEEDED WorkflowExecution_Phase = 4
WorkflowExecution_FAILING WorkflowExecution_Phase = 5
WorkflowExecution_FAILED WorkflowExecution_Phase = 6
WorkflowExecution_ABORTED WorkflowExecution_Phase = 7
WorkflowExecution_TIMED_OUT WorkflowExecution_Phase = 8
WorkflowExecution_ABORTING WorkflowExecution_Phase = 9
)
// Enum value maps for WorkflowExecution_Phase.
var (
WorkflowExecution_Phase_name = map[int32]string{
0: "UNDEFINED",
1: "QUEUED",
2: "RUNNING",
3: "SUCCEEDING",
4: "SUCCEEDED",
5: "FAILING",
6: "FAILED",
7: "ABORTED",
8: "TIMED_OUT",
9: "ABORTING",
}
WorkflowExecution_Phase_value = map[string]int32{
"UNDEFINED": 0,
"QUEUED": 1,
"RUNNING": 2,
"SUCCEEDING": 3,
"SUCCEEDED": 4,
"FAILING": 5,
"FAILED": 6,
"ABORTED": 7,
"TIMED_OUT": 8,
"ABORTING": 9,
}
)
func (x WorkflowExecution_Phase) Enum() *WorkflowExecution_Phase {
p := new(WorkflowExecution_Phase)
*p = x
return p
}
func (x WorkflowExecution_Phase) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkflowExecution_Phase) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[0].Descriptor()
}
func (WorkflowExecution_Phase) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[0]
}
func (x WorkflowExecution_Phase) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkflowExecution_Phase.Descriptor instead.
func (WorkflowExecution_Phase) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{0, 0}
}
type NodeExecution_Phase int32
const (
NodeExecution_UNDEFINED NodeExecution_Phase = 0
NodeExecution_QUEUED NodeExecution_Phase = 1
NodeExecution_RUNNING NodeExecution_Phase = 2
NodeExecution_SUCCEEDED NodeExecution_Phase = 3
NodeExecution_FAILING NodeExecution_Phase = 4
NodeExecution_FAILED NodeExecution_Phase = 5
NodeExecution_ABORTED NodeExecution_Phase = 6
NodeExecution_SKIPPED NodeExecution_Phase = 7
NodeExecution_TIMED_OUT NodeExecution_Phase = 8
NodeExecution_DYNAMIC_RUNNING NodeExecution_Phase = 9
NodeExecution_RECOVERED NodeExecution_Phase = 10
)
// Enum value maps for NodeExecution_Phase.
var (
NodeExecution_Phase_name = map[int32]string{
0: "UNDEFINED",
1: "QUEUED",
2: "RUNNING",
3: "SUCCEEDED",
4: "FAILING",
5: "FAILED",
6: "ABORTED",
7: "SKIPPED",
8: "TIMED_OUT",
9: "DYNAMIC_RUNNING",
10: "RECOVERED",
}
NodeExecution_Phase_value = map[string]int32{
"UNDEFINED": 0,
"QUEUED": 1,
"RUNNING": 2,
"SUCCEEDED": 3,
"FAILING": 4,
"FAILED": 5,
"ABORTED": 6,
"SKIPPED": 7,
"TIMED_OUT": 8,
"DYNAMIC_RUNNING": 9,
"RECOVERED": 10,
}
)
func (x NodeExecution_Phase) Enum() *NodeExecution_Phase {
p := new(NodeExecution_Phase)
*p = x
return p
}
func (x NodeExecution_Phase) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NodeExecution_Phase) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[1].Descriptor()
}
func (NodeExecution_Phase) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[1]
}
func (x NodeExecution_Phase) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NodeExecution_Phase.Descriptor instead.
func (NodeExecution_Phase) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{1, 0}
}
type TaskExecution_Phase int32
const (
TaskExecution_UNDEFINED TaskExecution_Phase = 0
TaskExecution_QUEUED TaskExecution_Phase = 1
TaskExecution_RUNNING TaskExecution_Phase = 2
TaskExecution_SUCCEEDED TaskExecution_Phase = 3
TaskExecution_ABORTED TaskExecution_Phase = 4
TaskExecution_FAILED TaskExecution_Phase = 5
// To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
TaskExecution_INITIALIZING TaskExecution_Phase = 6
// To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
TaskExecution_WAITING_FOR_RESOURCES TaskExecution_Phase = 7
TaskExecution_RETRYABLE_FAILED TaskExecution_Phase = 8
)
// Enum value maps for TaskExecution_Phase.
var (
TaskExecution_Phase_name = map[int32]string{
0: "UNDEFINED",
1: "QUEUED",
2: "RUNNING",
3: "SUCCEEDED",
4: "ABORTED",
5: "FAILED",
6: "INITIALIZING",
7: "WAITING_FOR_RESOURCES",
8: "RETRYABLE_FAILED",
}
TaskExecution_Phase_value = map[string]int32{
"UNDEFINED": 0,
"QUEUED": 1,
"RUNNING": 2,
"SUCCEEDED": 3,
"ABORTED": 4,
"FAILED": 5,
"INITIALIZING": 6,
"WAITING_FOR_RESOURCES": 7,
"RETRYABLE_FAILED": 8,
}
)
func (x TaskExecution_Phase) Enum() *TaskExecution_Phase {
p := new(TaskExecution_Phase)
*p = x
return p
}
func (x TaskExecution_Phase) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskExecution_Phase) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[2].Descriptor()
}
func (TaskExecution_Phase) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[2]
}
func (x TaskExecution_Phase) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskExecution_Phase.Descriptor instead.
func (TaskExecution_Phase) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{2, 0}
}
// Error type: System or User
type ExecutionError_ErrorKind int32
const (
ExecutionError_UNKNOWN ExecutionError_ErrorKind = 0
ExecutionError_USER ExecutionError_ErrorKind = 1
ExecutionError_SYSTEM ExecutionError_ErrorKind = 2
)
// Enum value maps for ExecutionError_ErrorKind.
var (
ExecutionError_ErrorKind_name = map[int32]string{
0: "UNKNOWN",
1: "USER",
2: "SYSTEM",
}
ExecutionError_ErrorKind_value = map[string]int32{
"UNKNOWN": 0,
"USER": 1,
"SYSTEM": 2,
}
)
func (x ExecutionError_ErrorKind) Enum() *ExecutionError_ErrorKind {
p := new(ExecutionError_ErrorKind)
*p = x
return p
}
func (x ExecutionError_ErrorKind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecutionError_ErrorKind) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[3].Descriptor()
}
func (ExecutionError_ErrorKind) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[3]
}
func (x ExecutionError_ErrorKind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecutionError_ErrorKind.Descriptor instead.
func (ExecutionError_ErrorKind) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{3, 0}
}
// Defines a generic error type that dictates the behavior of the retry strategy.
type ContainerError_Kind int32
const (
ContainerError_NON_RECOVERABLE ContainerError_Kind = 0
ContainerError_RECOVERABLE ContainerError_Kind = 1
)
// Enum value maps for ContainerError_Kind.
var (
ContainerError_Kind_name = map[int32]string{
0: "NON_RECOVERABLE",
1: "RECOVERABLE",
}
ContainerError_Kind_value = map[string]int32{
"NON_RECOVERABLE": 0,
"RECOVERABLE": 1,
}
)
func (x ContainerError_Kind) Enum() *ContainerError_Kind {
p := new(ContainerError_Kind)
*p = x
return p
}
func (x ContainerError_Kind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ContainerError_Kind) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[4].Descriptor()
}
func (ContainerError_Kind) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[4]
}
func (x ContainerError_Kind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ContainerError_Kind.Descriptor instead.
func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{4, 0}
}
type TaskLog_MessageFormat int32
const (
TaskLog_UNKNOWN TaskLog_MessageFormat = 0
TaskLog_CSV TaskLog_MessageFormat = 1
TaskLog_JSON TaskLog_MessageFormat = 2
)
// Enum value maps for TaskLog_MessageFormat.
var (
TaskLog_MessageFormat_name = map[int32]string{
0: "UNKNOWN",
1: "CSV",
2: "JSON",
}
TaskLog_MessageFormat_value = map[string]int32{
"UNKNOWN": 0,
"CSV": 1,
"JSON": 2,
}
)
func (x TaskLog_MessageFormat) Enum() *TaskLog_MessageFormat {
p := new(TaskLog_MessageFormat)
*p = x
return p
}
func (x TaskLog_MessageFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskLog_MessageFormat) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[5].Descriptor()
}
func (TaskLog_MessageFormat) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[5]
}
func (x TaskLog_MessageFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskLog_MessageFormat.Descriptor instead.
func (TaskLog_MessageFormat) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{6, 0}
}
type TaskLog_LinkType int32
const (
// The link for task log. For example, the aws cloudwatch logs, gcp stackdriver logs, etc.
TaskLog_EXTERNAL TaskLog_LinkType = 0
// The link for spark UI, ray dashboard, etc.
TaskLog_DASHBOARD TaskLog_LinkType = 1
// The link for vscode or other IDEs.
TaskLog_IDE TaskLog_LinkType = 2
)
// Enum value maps for TaskLog_LinkType.
var (
TaskLog_LinkType_name = map[int32]string{
0: "EXTERNAL",
1: "DASHBOARD",
2: "IDE",
}
TaskLog_LinkType_value = map[string]int32{
"EXTERNAL": 0,
"DASHBOARD": 1,
"IDE": 2,
}
)
func (x TaskLog_LinkType) Enum() *TaskLog_LinkType {
p := new(TaskLog_LinkType)
*p = x
return p
}
func (x TaskLog_LinkType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskLog_LinkType) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[6].Descriptor()
}
func (TaskLog_LinkType) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[6]
}
func (x TaskLog_LinkType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskLog_LinkType.Descriptor instead.
func (TaskLog_LinkType) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{6, 1}
}
type QualityOfService_Tier int32
const (
// Default: no quality of service specified.
QualityOfService_UNDEFINED QualityOfService_Tier = 0
QualityOfService_HIGH QualityOfService_Tier = 1
QualityOfService_MEDIUM QualityOfService_Tier = 2
QualityOfService_LOW QualityOfService_Tier = 3
)
// Enum value maps for QualityOfService_Tier.
var (
QualityOfService_Tier_name = map[int32]string{
0: "UNDEFINED",
1: "HIGH",
2: "MEDIUM",
3: "LOW",
}
QualityOfService_Tier_value = map[string]int32{
"UNDEFINED": 0,
"HIGH": 1,
"MEDIUM": 2,
"LOW": 3,
}
)
func (x QualityOfService_Tier) Enum() *QualityOfService_Tier {
p := new(QualityOfService_Tier)
*p = x
return p
}
func (x QualityOfService_Tier) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QualityOfService_Tier) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_core_execution_proto_enumTypes[7].Descriptor()
}
func (QualityOfService_Tier) Type() protoreflect.EnumType {
return &file_flyteidl2_core_execution_proto_enumTypes[7]
}
func (x QualityOfService_Tier) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QualityOfService_Tier.Descriptor instead.
func (QualityOfService_Tier) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{12, 0}
}
// Indicates various phases of Workflow Execution
type WorkflowExecution struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *WorkflowExecution) Reset() {
*x = WorkflowExecution{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WorkflowExecution) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkflowExecution) ProtoMessage() {}
func (x *WorkflowExecution) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead.
func (*WorkflowExecution) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{0}
}
// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
type NodeExecution struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *NodeExecution) Reset() {
*x = NodeExecution{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeExecution) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeExecution) ProtoMessage() {}
func (x *NodeExecution) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeExecution.ProtoReflect.Descriptor instead.
func (*NodeExecution) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{1}
}
// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
// but this is the cumulative list that customers may want to know about for their task.
type TaskExecution struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *TaskExecution) Reset() {
*x = TaskExecution{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TaskExecution) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskExecution) ProtoMessage() {}
func (x *TaskExecution) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TaskExecution.ProtoReflect.Descriptor instead.
func (*TaskExecution) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{2}
}
// Represents the error message from the execution.
type ExecutionError struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Error code indicates a grouping of a type of error.
// More Info: <Link>
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Detailed description of the error - including stack trace.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Full error contents accessible via a URI
ErrorUri string `protobuf:"bytes,3,opt,name=error_uri,json=errorUri,proto3" json:"error_uri,omitempty"`
Kind ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=kind,proto3,enum=flyteidl2.core.ExecutionError_ErrorKind" json:"kind,omitempty"`
// Timestamp of the error
Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Worker that generated the error
Worker string `protobuf:"bytes,6,opt,name=worker,proto3" json:"worker,omitempty"`
// Whether this failure consumed a user retry. Mirrors the value the
// container reported via ContainerError.kind. Default is NON_RECOVERABLE
// (proto3 zero), matching the ContainerError.Kind default — producers
// (lease worker, leasor) must always set this explicitly when surfacing
// a recoverable failure. The SDK error-marshaling path is the source of
// truth: ordinary exceptions -> RECOVERABLE; flyte.errors.NonRecoverableError
// -> NON_RECOVERABLE.
Recoverability ContainerError_Kind `protobuf:"varint,7,opt,name=recoverability,proto3,enum=flyteidl2.core.ContainerError_Kind" json:"recoverability,omitempty"`
}
func (x *ExecutionError) Reset() {
*x = ExecutionError{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecutionError) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecutionError) ProtoMessage() {}
func (x *ExecutionError) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExecutionError.ProtoReflect.Descriptor instead.
func (*ExecutionError) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{3}
}
func (x *ExecutionError) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (x *ExecutionError) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *ExecutionError) GetErrorUri() string {
if x != nil {
return x.ErrorUri
}
return ""
}
func (x *ExecutionError) GetKind() ExecutionError_ErrorKind {
if x != nil {
return x.Kind
}
return ExecutionError_UNKNOWN
}
func (x *ExecutionError) GetTimestamp() *timestamppb.Timestamp {
if x != nil {
return x.Timestamp
}
return nil
}
func (x *ExecutionError) GetWorker() string {
if x != nil {
return x.Worker
}
return ""
}
func (x *ExecutionError) GetRecoverability() ContainerError_Kind {
if x != nil {
return x.Recoverability
}
return ContainerError_NON_RECOVERABLE
}
// Error message to propagate detailed errors from container executions to the
// execution engine.
type ContainerError struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A simplified code for errors, so that we can provide a glossary of all possible errors.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// A detailed error message.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl2.core.ContainerError_Kind" json:"kind,omitempty"`
// Defines the origin of the error (system, user, unknown).
Origin ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=origin,proto3,enum=flyteidl2.core.ExecutionError_ErrorKind" json:"origin,omitempty"`
}
func (x *ContainerError) Reset() {
*x = ContainerError{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ContainerError) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ContainerError) ProtoMessage() {}
func (x *ContainerError) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ContainerError.ProtoReflect.Descriptor instead.
func (*ContainerError) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{4}
}
func (x *ContainerError) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (x *ContainerError) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *ContainerError) GetKind() ContainerError_Kind {
if x != nil {
return x.Kind
}
return ContainerError_NON_RECOVERABLE
}
func (x *ContainerError) GetOrigin() ExecutionError_ErrorKind {
if x != nil {
return x.Origin
}
return ExecutionError_UNKNOWN
}
// Defines the errors.pb file format the container can produce to communicate
// failure reasons to the execution engine.
type ErrorDocument struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The error raised during execution.
Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
func (x *ErrorDocument) Reset() {
*x = ErrorDocument{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ErrorDocument) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ErrorDocument) ProtoMessage() {}
func (x *ErrorDocument) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ErrorDocument.ProtoReflect.Descriptor instead.
func (*ErrorDocument) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{5}
}
func (x *ErrorDocument) GetError() *ContainerError {
if x != nil {
return x.Error
}
return nil
}
// Log information for the task that is specific to a log sink
// When our log story is flushed out, we may have more metadata here like log link expiry
type TaskLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
MessageFormat TaskLog_MessageFormat `protobuf:"varint,3,opt,name=message_format,json=messageFormat,proto3,enum=flyteidl2.core.TaskLog_MessageFormat" json:"message_format,omitempty"`
Ttl *durationpb.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
ShowWhilePending bool `protobuf:"varint,5,opt,name=ShowWhilePending,proto3" json:"ShowWhilePending,omitempty"`
HideOnceFinished bool `protobuf:"varint,6,opt,name=HideOnceFinished,proto3" json:"HideOnceFinished,omitempty"`
LinkType TaskLog_LinkType `protobuf:"varint,7,opt,name=link_type,json=linkType,proto3,enum=flyteidl2.core.TaskLog_LinkType" json:"link_type,omitempty"`
Ready bool `protobuf:"varint,8,opt,name=ready,proto3" json:"ready,omitempty"`
IconUri string `protobuf:"bytes,9,opt,name=icon_uri,json=iconUri,proto3" json:"icon_uri,omitempty"`
}
func (x *TaskLog) Reset() {
*x = TaskLog{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TaskLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskLog) ProtoMessage() {}
func (x *TaskLog) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TaskLog.ProtoReflect.Descriptor instead.
func (*TaskLog) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{6}
}
func (x *TaskLog) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *TaskLog) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TaskLog) GetMessageFormat() TaskLog_MessageFormat {
if x != nil {
return x.MessageFormat
}
return TaskLog_UNKNOWN
}
func (x *TaskLog) GetTtl() *durationpb.Duration {
if x != nil {
return x.Ttl
}
return nil
}
func (x *TaskLog) GetShowWhilePending() bool {
if x != nil {
return x.ShowWhilePending
}
return false
}
func (x *TaskLog) GetHideOnceFinished() bool {
if x != nil {
return x.HideOnceFinished
}
return false
}
func (x *TaskLog) GetLinkType() TaskLog_LinkType {
if x != nil {
return x.LinkType
}
return TaskLog_EXTERNAL
}
func (x *TaskLog) GetReady() bool {
if x != nil {
return x.Ready
}
return false
}
func (x *TaskLog) GetIconUri() string {
if x != nil {
return x.IconUri
}
return ""
}
// Contains metadata required to identify logs produces by a set of pods
type LogContext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Pods []*PodLogContext `protobuf:"bytes,1,rep,name=pods,proto3" json:"pods,omitempty"`
PrimaryPodName string `protobuf:"bytes,2,opt,name=primary_pod_name,json=primaryPodName,proto3" json:"primary_pod_name,omitempty"`
Connector *ConnectorLogContext `protobuf:"bytes,3,opt,name=connector,proto3" json:"connector,omitempty"`
PodNamePrefix string `protobuf:"bytes,4,opt,name=pod_name_prefix,json=podNamePrefix,proto3" json:"pod_name_prefix,omitempty"`
}
func (x *LogContext) Reset() {
*x = LogContext{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_core_execution_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogContext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogContext) ProtoMessage() {}
func (x *LogContext) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_core_execution_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogContext.ProtoReflect.Descriptor instead.
func (*LogContext) Descriptor() ([]byte, []int) {
return file_flyteidl2_core_execution_proto_rawDescGZIP(), []int{7}
}
func (x *LogContext) GetPods() []*PodLogContext {
if x != nil {