diff --git a/dcm4chee-arc-qmgt/src/main/java/org/dcm4chee/arc/qmgt/impl/TaskManagerImpl.java b/dcm4chee-arc-qmgt/src/main/java/org/dcm4chee/arc/qmgt/impl/TaskManagerImpl.java index 4b555b99a5..ea4b6f78d8 100644 --- a/dcm4chee-arc-qmgt/src/main/java/org/dcm4chee/arc/qmgt/impl/TaskManagerImpl.java +++ b/dcm4chee-arc-qmgt/src/main/java/org/dcm4chee/arc/qmgt/impl/TaskManagerImpl.java @@ -587,7 +587,8 @@ private void deleteTasks(TaskQueryParam taskQueryParam, BulkTaskEvent taskEvent) } finally { taskEvent.setCount(count); taskEvent.setFailed(failed); - bulkTaskEventEvent.fire(taskEvent); + if (count > 0 || failed > 0 || taskEvent.getException() != null) + bulkTaskEventEvent.fire(taskEvent); if (count > 0) LOG.info("Deleted {} tasks matching {}", count, taskQueryParam); }