2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-21 21:46:12 +08:00

Update RDB.Dequeue with task state

This commit is contained in:
Ken Hibino
2021-04-26 07:07:12 -07:00
parent 2f9cd9c758
commit 305e979af5
2 changed files with 2 additions and 1 deletions

View File

@@ -423,7 +423,7 @@ func getMessagesFromZSetWithScores(tb testing.TB, r redis.UniversalClient,
msg := r.HGet(taskKey, "msg").Val()
res = append(res, base.Z{Message: MustUnmarshal(tb, msg), Score: int64(z.Score)})
if gotState := r.HGet(taskKey, "state").Val(); gotState != state {
tb.Errorf("task (id=%q) is in state %q, want %q", taskID, gotState, state)
tb.Errorf("task (id=%q) is in %q state, want %q", taskID, gotState, state)
}
}
return res