[MM-28762] Fix errcheck issues in jobs.go (#30708)
Co-authored-by: Claude <noreply@anthropic.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6fc60c8e5f
Коммит
6a228877b7
@@ -109,7 +109,6 @@ issues:
|
||||
channels/jobs/batch_worker_test.go|\
|
||||
channels/jobs/helper_test.go|\
|
||||
channels/jobs/hosted_purchase_screening/worker.go|\
|
||||
channels/jobs/jobs.go|\
|
||||
channels/store/localcachelayer/channel_layer.go|\
|
||||
channels/store/localcachelayer/channel_layer_test.go|\
|
||||
channels/store/localcachelayer/emoji_layer.go|\
|
||||
|
||||
@@ -226,7 +226,10 @@ func (srv *JobServer) HandleJobPanic(logger mlog.LoggerIFace, job *model.Job) {
|
||||
}
|
||||
|
||||
sb := &strings.Builder{}
|
||||
pprof.Lookup("goroutine").WriteTo(sb, 2)
|
||||
err := pprof.Lookup("goroutine").WriteTo(sb, 2)
|
||||
if err != nil {
|
||||
logger.Error("Error fetching goroutine stack", mlog.Err(err))
|
||||
}
|
||||
logger.Error("Unhandled panic in job", mlog.Any("panic", r), mlog.Any("job", job), mlog.String("stack", sb.String()))
|
||||
|
||||
rerr, ok := r.(error)
|
||||
|
||||
Ссылка в новой задаче
Block a user