mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 11:31:58 +08:00
Update recoverer to recover tasks on server startup
This commit is contained in:
parent
ff6768f9bb
commit
f532c95394
@ -57,6 +57,7 @@ func (r *recoverer) start(wg *sync.WaitGroup) {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
|
r.recover()
|
||||||
timer := time.NewTimer(r.interval)
|
timer := time.NewTimer(r.interval)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user