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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user