From 6a97f2a635d6e41fd38c440e3e60c547467665b1 Mon Sep 17 00:00:00 2001 From: Bruno Scheufler Date: Mon, 29 Apr 2024 15:54:53 +0200 Subject: [PATCH] Fix nil value returned by Redis in cancellation (#1308) --- pkg/execution/state/redis_state/redis_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/execution/state/redis_state/redis_state.go b/pkg/execution/state/redis_state/redis_state.go index 7a3cb69200..281ea7e61f 100644 --- a/pkg/execution/state/redis_state/redis_state.go +++ b/pkg/execution/state/redis_state/redis_state.go @@ -403,7 +403,7 @@ func (m mgr) Cancel(ctx context.Context, id state.Identifier) error { []string{m.kf.RunMetadata(ctx, id.RunID)}, []string{}, ).AsInt64() - if err != nil { + if err != nil && !rueidis.IsRedisNil(err) { return fmt.Errorf("error cancelling: %w", err) } switch status {