append queue priority
This commit is contained in:
parent
ed3d068e80
commit
b9eb0a2a87
1
task.go
1
task.go
|
@ -14,6 +14,7 @@ func (i Instance) RunTask(typename string, payload []byte, priority string, retr
|
|||
if priority != PriorityCritical && priority != PriorityDefault && priority != PriorityLow {
|
||||
priority = PriorityDefault
|
||||
}
|
||||
options = append(options, asynq.Queue(priority))
|
||||
|
||||
// Retry times
|
||||
if retryTimes < 0 {
|
||||
|
|
Loading…
Reference in New Issue