add SlaRestartInstances api

This commit is contained in:
lenhattan86 2021-07-14 11:19:54 -07:00
parent 2d81147aaa
commit 9e166fae54
2 changed files with 49 additions and 0 deletions

View file

@ -284,3 +284,8 @@ func (j *JobUpdate) PartitionPolicy(reschedule bool, delay int64) *JobUpdate {
})
return j
}
func (j *JobUpdate) SlaPolicy(sla *aurora.SlaPolicy) *JobUpdate {
j.task.task.SlaPolicy = sla
return j
}