append queue priority

This commit is contained in:
Nam Huynh 2021-11-30 23:08:19 +07:00
parent ed3d068e80
commit b9eb0a2a87
1 changed files with 1 additions and 0 deletions

View File

@ -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 {