Skip to content

Commit 87e2f4d

Browse files
committed
add log error for malformed attempts
Signed-off-by: Nghia Tran <[email protected]>
1 parent 47fd9c2 commit 87e2f4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/workqueue/gcs/gcs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ func (o *inProgressKey) GetAttempts() int {
309309

310310
attempts, err := strconv.Atoi(o.attrs.Metadata[attemptsMetadataKey])
311311
if err != nil {
312+
clog.WarnContextf(ctx, "Malformed attempts on %s: %v", o.Name(), err)
312313
return 0
313314
}
314315
return attempts

0 commit comments

Comments
 (0)