This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
dynamic_job.pb.go
131 lines (115 loc) · 5.59 KB
/
dynamic_job.pb.go
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/core/dynamic_job.proto
package core
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Describes a set of tasks to execute and how the final outputs are produced.
type DynamicJobSpec struct {
// A collection of nodes to execute.
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
// An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
// criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
// becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
// min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
// specified, is the count of nodes repeated field.
MinSuccesses int64 `protobuf:"varint,2,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"`
// Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
// in bindings should have the generated id for the subtask.
Outputs []*Binding `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"`
// [Optional] A complete list of task specs referenced in nodes.
Tasks []*TaskTemplate `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"`
// [Optional] A complete list of task specs referenced in nodes.
Subworkflows []*WorkflowTemplate `protobuf:"bytes,5,rep,name=subworkflows,proto3" json:"subworkflows,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DynamicJobSpec) Reset() { *m = DynamicJobSpec{} }
func (m *DynamicJobSpec) String() string { return proto.CompactTextString(m) }
func (*DynamicJobSpec) ProtoMessage() {}
func (*DynamicJobSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_87e0015f5a750c69, []int{0}
}
func (m *DynamicJobSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DynamicJobSpec.Unmarshal(m, b)
}
func (m *DynamicJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DynamicJobSpec.Marshal(b, m, deterministic)
}
func (m *DynamicJobSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_DynamicJobSpec.Merge(m, src)
}
func (m *DynamicJobSpec) XXX_Size() int {
return xxx_messageInfo_DynamicJobSpec.Size(m)
}
func (m *DynamicJobSpec) XXX_DiscardUnknown() {
xxx_messageInfo_DynamicJobSpec.DiscardUnknown(m)
}
var xxx_messageInfo_DynamicJobSpec proto.InternalMessageInfo
func (m *DynamicJobSpec) GetNodes() []*Node {
if m != nil {
return m.Nodes
}
return nil
}
func (m *DynamicJobSpec) GetMinSuccesses() int64 {
if m != nil {
return m.MinSuccesses
}
return 0
}
func (m *DynamicJobSpec) GetOutputs() []*Binding {
if m != nil {
return m.Outputs
}
return nil
}
func (m *DynamicJobSpec) GetTasks() []*TaskTemplate {
if m != nil {
return m.Tasks
}
return nil
}
func (m *DynamicJobSpec) GetSubworkflows() []*WorkflowTemplate {
if m != nil {
return m.Subworkflows
}
return nil
}
func init() {
proto.RegisterType((*DynamicJobSpec)(nil), "flyteidl.core.DynamicJobSpec")
}
func init() { proto.RegisterFile("flyteidl/core/dynamic_job.proto", fileDescriptor_87e0015f5a750c69) }
var fileDescriptor_87e0015f5a750c69 = []byte{
// 283 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0x86, 0x69, 0x6b, 0x15, 0xd6, 0xd6, 0xc3, 0x0a, 0x12, 0xab, 0xd0, 0xa2, 0x97, 0x7a, 0x30,
0x5b, 0xeb, 0x1b, 0x54, 0x4f, 0x1e, 0x3c, 0xa4, 0x05, 0xc1, 0x4b, 0xc9, 0x6e, 0xa6, 0x71, 0xcd,
0x66, 0x27, 0x64, 0x36, 0x94, 0xbc, 0x82, 0x4f, 0x2d, 0x26, 0x4d, 0x21, 0xc1, 0xeb, 0xfe, 0xdf,
0x37, 0x3b, 0xf3, 0xb3, 0xe9, 0xce, 0x94, 0x0e, 0x74, 0x64, 0x84, 0xc2, 0x1c, 0x44, 0x54, 0xda,
0x30, 0xd5, 0x6a, 0xfb, 0x8d, 0xd2, 0xcf, 0x72, 0x74, 0xc8, 0xc7, 0x0d, 0xe0, 0xff, 0x01, 0x93,
0xeb, 0x36, 0xef, 0x42, 0x4a, 0xa8, 0x26, 0x27, 0xb7, 0xed, 0x68, 0x8f, 0x79, 0xb2, 0x33, 0xb8,
0xff, 0x3f, 0x35, 0xda, 0x41, 0x1e, 0x9a, 0x83, 0x7b, 0xf7, 0xd3, 0x67, 0x17, 0xaf, 0xf5, 0xdf,
0x6f, 0x28, 0xd7, 0x19, 0x28, 0xfe, 0xc0, 0x86, 0x16, 0x23, 0x20, 0xaf, 0x37, 0x1b, 0xcc, 0xcf,
0x97, 0x97, 0x7e, 0x6b, 0x11, 0xff, 0x1d, 0x23, 0x08, 0x6a, 0x82, 0xdf, 0xb3, 0x71, 0xaa, 0xed,
0x96, 0x0a, 0xa5, 0x80, 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