machinery
machinery copied to clipboard
error handler need task signature
Current error handler only have error, but no task signature. Don't know which task failed. It's better to supply task signature for error handler.
worker.SetErrorHandler(func (signature *tasks.Signature, err error) {
customHandler(err)
})