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 {
|
if priority != PriorityCritical && priority != PriorityDefault && priority != PriorityLow {
|
||||||
priority = PriorityDefault
|
priority = PriorityDefault
|
||||||
}
|
}
|
||||||
|
options = append(options, asynq.Queue(priority))
|
||||||
|
|
||||||
// Retry times
|
// Retry times
|
||||||
if retryTimes < 0 {
|
if retryTimes < 0 {
|
||||||
|
|
Loading…
Reference in New Issue