Skip to content

Commit

Permalink
Fix #4625 : Studies stays in status deletion in progress on incomplet…
Browse files Browse the repository at this point in the history
…e study deletion
  • Loading branch information
vrindanayak committed Dec 4, 2024
1 parent c56697b commit 1843991
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ private List<Location> deleteStudy(
List<Location> locations1;
while (!(locations1 = deleteStudy(ctx, limit, retainObj || reimport)).isEmpty())
locations.addAll(locations1);
LOG.info("Successfully delete {} from database", study);
if (ejb.updateStudyDeleting(study, false) != 0)
LOG.warn("Incomplete deletion of Study[uid=" + study.getStudyInstanceUID() + ']');
else
LOG.info("Successfully delete {} from database", study);
} catch (Exception e) {
if (ejb.updateStudyDeleting(study, false) == 0) {
LOG.warn("Failed to reset deletion in process flag on failed deletion of Study[uid="
Expand Down

0 comments on commit 1843991

Please sign in to comment.