Adds priority into job config (#23)
This commit is contained in:
parent
13ae459d2a
commit
8ae23aad30
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,7 @@ type Job struct {
|
||||||
URIs []URI `yaml:"uris"`
|
URIs []URI `yaml:"uris"`
|
||||||
Metadata map[string]string `yaml:"labels"`
|
Metadata map[string]string `yaml:"labels"`
|
||||||
Service bool `yaml:"service"`
|
Service bool `yaml:"service"`
|
||||||
|
Priority int32 `yaml:"priority"`
|
||||||
Thermos []ThermosProcess `yaml:",flow,omitempty"`
|
Thermos []ThermosProcess `yaml:",flow,omitempty"`
|
||||||
Container *Container `yaml:"container,omitempty"`
|
Container *Container `yaml:"container,omitempty"`
|
||||||
CronSchedule *string `yaml:"cronSchedule,omitempty"`
|
CronSchedule *string `yaml:"cronSchedule,omitempty"`
|
||||||
|
@ -88,6 +89,7 @@ func (j *Job) ToRealis() (*realis.AuroraJob, error) {
|
||||||
RAM(j.RAM).
|
RAM(j.RAM).
|
||||||
Disk(j.Disk).
|
Disk(j.Disk).
|
||||||
IsService(j.Service).
|
IsService(j.Service).
|
||||||
|
Priority(j.Priority).
|
||||||
InstanceCount(j.Instances).
|
InstanceCount(j.Instances).
|
||||||
MaxFailure(j.MaxFailures)
|
MaxFailure(j.MaxFailures)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue