From b6f6d8cd1cff8ca14a58c61b6b9feeb9f86a1a39 Mon Sep 17 00:00:00 2001 From: Maximilian Pass <22845248+mpass99@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:09:19 +0200 Subject: [PATCH] Fix Group Sentry issue --- internal/nomad/api_querier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nomad/api_querier.go b/internal/nomad/api_querier.go index b434fcf7..a7bbf5f1 100644 --- a/internal/nomad/api_querier.go +++ b/internal/nomad/api_querier.go @@ -138,7 +138,7 @@ func (nc *nomadAPIClient) Execute(ctx context.Context, runnerID string, cmd stri case errors.Is(err, context.Canceled): log.WithContext(ctx).Debug("Execution canceled by context") return 0, nil - case errors.Is(err, io.ErrUnexpectedEOF): + case errors.Is(err, io.ErrUnexpectedEOF), strings.Contains(err.Error(), io.ErrUnexpectedEOF.Error()): log.WithContext(ctx).WithError(err).Warn("Unexpected EOF for Execute") return 0, nil case strings.Contains(err.Error(), "Unknown allocation"):