2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-11 07:43:22 +08:00

Update heartbeat goroutine to call ExtendLease on active tasks

This commit is contained in:
Ken Hibino
2022-02-12 09:48:07 -08:00
parent 87dc392c7f
commit 871474f220
6 changed files with 215 additions and 26 deletions

View File

@@ -295,9 +295,9 @@ func SeedAllDeadlines(tb testing.TB, r redis.UniversalClient, deadlines map[stri
}
// SeedAllLease initializes all of the lease sets with the given entries.
func SeedAllLease(tb testing.TB, r redis.UniversalClient, deadlines map[string][]base.Z) {
func SeedAllLease(tb testing.TB, r redis.UniversalClient, lease map[string][]base.Z) {
tb.Helper()
for q, entries := range deadlines {
for q, entries := range lease {
SeedLease(tb, r, entries, q)
}
}