add priority into task config

This commit is contained in:
lenhattan86 2021-09-16 14:05:26 -07:00
parent 2d81147aaa
commit a42d848d58
2 changed files with 11 additions and 0 deletions

5
job.go
View file

@ -156,6 +156,11 @@ func (j *AuroraJob) IsService(isService bool) *AuroraJob {
return j
}
func (j *AuroraJob) Priority(priority int32) *AuroraJob {
j.task.Priority(priority)
return j
}
func (j *AuroraJob) TaskConfig() *aurora.TaskConfig {
return j.task.TaskConfig()
}