mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 05:17:30 +08:00
Invoke error handler when ctx.Done channel is closed
This commit is contained in:
@@ -125,7 +125,7 @@ type Config struct {
|
||||
ShutdownTimeout time.Duration
|
||||
}
|
||||
|
||||
// An ErrorHandler handles errors returned by the task handler.
|
||||
// An ErrorHandler handles an error occured during task processing.
|
||||
type ErrorHandler interface {
|
||||
HandleError(ctx context.Context, task *Task, err error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user