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

Define Schedule and RetryLater method for RDB

This commit is contained in:
Ken Hibino
2019-12-04 06:45:30 -08:00
parent 985018e1b5
commit 4531e90b9d
5 changed files with 67 additions and 16 deletions

View File

@@ -67,14 +67,14 @@ func TestPoller(t *testing.T) {
}
// initialize scheduled queue
for _, st := range tc.initScheduled {
err := rdbClient.Schedule(rdb.Scheduled, st.processAt, st.msg)
err := rdbClient.Schedule(st.msg, st.processAt)
if err != nil {
t.Fatal(err)
}
}
// initialize retry queue
for _, st := range tc.initRetry {
err := rdbClient.Schedule(rdb.Retry, st.processAt, st.msg)
err := rdbClient.RetryLater(st.msg, st.processAt)
if err != nil {
t.Fatal(err)
}