diff --git a/src/main/java/org/dependencytrack/persistence/IntegrityMetaQueryManager.java b/src/main/java/org/dependencytrack/persistence/IntegrityMetaQueryManager.java index 5d5be64dc..ba34243f7 100644 --- a/src/main/java/org/dependencytrack/persistence/IntegrityMetaQueryManager.java +++ b/src/main/java/org/dependencytrack/persistence/IntegrityMetaQueryManager.java @@ -168,7 +168,7 @@ public void batchUpdateIntegrityMetaComponent(List purls final String updateQuery = """ UPDATE "INTEGRITY_META_COMPONENT" SET "LAST_FETCH" = ?, "STATUS" = ? - WHERE "ID" = ? + WHERE "ID" = ? AND ("STATUS" IS NULL OR "STATUS" = 'IN_PROGRESS') """; Connection connection = null; PreparedStatement preparedStatement = null;