From c0e821db45176281a06c99a094343bc92fcfbfd9 Mon Sep 17 00:00:00 2001 From: Zyphrax Date: Sat, 26 Mar 2016 14:22:07 -0400 Subject: [PATCH] Do not log job removed when destroy_failed_jobs? is false The worker incorrectly logs that the job is removed when destroy_failed_jobs? is false --- lib/delayed/worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delayed/worker.rb b/lib/delayed/worker.rb index 91fb2779f..2cebf47ea 100644 --- a/lib/delayed/worker.rb +++ b/lib/delayed/worker.rb @@ -244,7 +244,7 @@ def reschedule(job, time = nil) job.unlock job.save! else - job_say job, "REMOVED permanently because of #{job.attempts} consecutive failures", 'error' + job_say(job, "REMOVED permanently because of #{job.attempts} consecutive failures", 'error') if job.destroy_failed_jobs? failed(job) end end