mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-11 19:30:21 +08:00
parent
ea0c6e93f0
commit
c327bc40a2
@ -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)
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user