Skip to content

Commit

Permalink
Fix #4537 : Avoid redundant emission of deletion tasks audit triggere…
Browse files Browse the repository at this point in the history
…d by purge task scheduler
  • Loading branch information
vrindanayak committed Jul 29, 2024
1 parent 2ffd5e7 commit 70f832c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 70f832c

Please sign in to comment.