Skip to content

Commit

Permalink
Adding priority to the task (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivrsrivastava authored Oct 13, 2022
1 parent c318042 commit 8454a6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions job.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type Job interface {
PartitionPolicy(policy *aurora.PartitionPolicy) Job
Tier(tier string) Job
SlaPolicy(policy *aurora.SlaPolicy) Job
Priority(priority int32) Job
}

type resourceType int
Expand Down Expand Up @@ -383,3 +384,8 @@ func (j *AuroraJob) SlaPolicy(policy *aurora.SlaPolicy) Job {

return j
}

func (j *AuroraJob) Priority(priority int32) Job {
j.jobConfig.TaskConfig.Priority = priority
return j
}

0 comments on commit 8454a6e

Please sign in to comment.