2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-28 16:31:46 +08:00

Update RDB.RunTask with task state

This commit is contained in:
Ken Hibino
2021-04-28 07:27:35 -07:00
parent 5d7f1b6a80
commit 267493ccef
4 changed files with 55 additions and 60 deletions

View File

@@ -613,11 +613,11 @@ func (i *Inspector) RunTaskByKey(qname, key string) error {
}
switch prefix {
case keyPrefixScheduled:
return i.rdb.RunScheduledTask(qname, id)
return i.rdb.RunTask(qname, id)
case keyPrefixRetry:
return i.rdb.RunRetryTask(qname, id)
return i.rdb.RunTask(qname, id)
case keyPrefixArchived:
return i.rdb.RunArchivedTask(qname, id)
return i.rdb.RunTask(qname, id)
case keyPrefixPending:
return fmt.Errorf("task is already pending for run")
default: