mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 03:36:23 +08:00
Rename MoveAll to RestoreUnfinished
This commit is contained in:
@@ -101,7 +101,7 @@ func (p *processor) exec() {
|
||||
// restore moves all tasks from "in-progress" back to queue
|
||||
// to restore all unfinished tasks.
|
||||
func (p *processor) restore() {
|
||||
err := p.rdb.MoveAll(rdb.InProgress, rdb.DefaultQueue)
|
||||
err := p.rdb.RestoreUnfinished()
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] could not move tasks from %q to %q\n", rdb.InProgress, rdb.DefaultQueue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user