Skip to content

Commit

Permalink
Fix nil value returned by Redis in cancellation (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoScheufler committed Apr 29, 2024
1 parent 2283874 commit 6a97f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/execution/state/redis_state/redis_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a97f2a

Please sign in to comment.