Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions app/cli/cmd/errors.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2023 The Chainloop Authors.
// Copyright 2023-2026 The Chainloop Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -87,6 +87,11 @@ func runWithBackoffRetry(fn func() error) error {
},
backoff.NewExponentialBackOff(backoff.WithMaxElapsedTime(3*time.Minute)),
func(err error, delay time.Duration) {
logger.Err(err).Msgf("retrying in %s", delay)
l := logger.Debug().Err(err)
if v1.IsAttestationStateErrorConflict(err) {
l.Msgf("concurrent state update detected, retrying in %s", delay)
} else {
l.Msgf("retrying in %s", delay)
}
})
}
Loading