mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-27 16:05:56 +08:00
Rename (*rdb).zadd to (*rdb).schedule
This commit is contained in:
2
retry.go
2
retry.go
@@ -20,7 +20,7 @@ func retryTask(rdb *rdb, msg *taskMessage, err error) {
|
||||
fmt.Printf("[DEBUG] Retrying the task in %v\n", retryAt.Sub(time.Now()))
|
||||
msg.Retried++
|
||||
msg.ErrorMsg = err.Error()
|
||||
if err := rdb.zadd(retry, float64(retryAt.Unix()), msg); err != nil {
|
||||
if err := rdb.schedule(retry, retryAt, msg); err != nil {
|
||||
// TODO(hibiken): Not sure how to handle this error
|
||||
log.Printf("[ERROR] could not add msg %+v to 'retry' set: %v\n", msg, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user