2
0
mirror of https://github.com/hibiken/asynq.git synced 2026-04-20 13:15:51 +08:00

Call error handler when task was not processed successfully

This commit is contained in:
Ken Hibino
2020-02-29 16:27:59 -08:00
parent 95b7dcaad4
commit a4e4c0b1d5
3 changed files with 40 additions and 17 deletions

View File

@@ -165,7 +165,7 @@ func NewBackground(r RedisConnOpt, cfg *Config) *Background {
syncer := newSyncer(syncCh, 5*time.Second)
heartbeater := newHeartbeater(rdb, ps, 5*time.Second)
scheduler := newScheduler(rdb, 5*time.Second, queues)
processor := newProcessor(rdb, ps, delayFunc, syncCh, cancels)
processor := newProcessor(rdb, ps, delayFunc, syncCh, cancels, cfg.ErrorHandler)
subscriber := newSubscriber(rdb, cancels)
return &Background{
rdb: rdb,