From 0a3bc3dad3a73109f807b8d6bda54a1f651f5a5b Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 27 Jan 2021 13:47:16 -0500 Subject: [PATCH] Revert "Fixes #31437 - clear tasks before invoking them to avoid duplicate execution" This reverts commit 03ac14941f1b6b2e09413c6a775aa72153fa8157. --- lib/katello/tasks/reports.rake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/katello/tasks/reports.rake b/lib/katello/tasks/reports.rake index 58cc3b7d3cf..f2e04b829e2 100644 --- a/lib/katello/tasks/reports.rake +++ b/lib/katello/tasks/reports.rake @@ -1,7 +1,4 @@ load "#{Rails.root}/lib/tasks/reports.rake" #Katello reports can generate a foreman task, so mark the task as a dynflow client -["reports:daily", "reports:weekly", "reports:monthly"].each do |task| - Rake::Task[task].clear - Rake::Task[task].enhance ["dynflow:client"] -end +["reports:daily", "reports:weekly", "reports:monthly"].each { |task| Rake::Task[task].enhance ["dynflow:client"] }