mirror of
https://github.com/hibiken/asynq.git
synced 2026-07-10 17:32:58 +08:00
@@ -177,7 +177,7 @@ type Config struct {
|
|||||||
//
|
//
|
||||||
// we can also handle panic error like:
|
// we can also handle panic error like:
|
||||||
// func reportError(ctx context, task *asynq.Task, err error) {
|
// func reportError(ctx context, task *asynq.Task, err error) {
|
||||||
// if asynq.IsPanic(err) {
|
// if asynq.IsPanicError(err) {
|
||||||
// errorReportingService.Notify(err)
|
// errorReportingService.Notify(err)
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
|
|||||||
Reference in New Issue
Block a user