Skip to content

Commit

Permalink
[ingest] fix: prevent endless logging from finalize
Browse files Browse the repository at this point in the history
setting the accession id for a file twice will not cause loop
  • Loading branch information
MalinAhlberg committed Oct 14, 2024
1 parent 8461530 commit 9af7ecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sda/cmd/finalize/finalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ func main() {

case "verified":
case "enabled":
case "ready":
log.Infof("File with correlation ID %s is already marked as ready.", delivered.CorrelationId)
default:
log.Warnf("file with correlation ID: %s is not verified yet, stopping work", delivered.CorrelationId)
if err := delivered.Nack(false, true); err != nil {
Expand Down

0 comments on commit 9af7ecd

Please sign in to comment.