Commit 8d2ace065a19bd81dd55e7aee89e7759f52ef187

Authored by Rodrigo Souto
1 parent 87f8077c

Remove log_memory_consumption job

Showing 1 changed file with 0 additions and 5 deletions   Show diff stats
config/initializers/log_memory_consumption.rb
@@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
1 -if Delayed::Backend::ActiveRecord::Job.table_exists?  
2 - jobs = Delayed::Backend::ActiveRecord::Job.all :conditions => ['handler LIKE ?', "%LogMemoryConsumptionJob%"]  
3 - jobs.map(&:destroy) if jobs.present?  
4 - Delayed::Backend::ActiveRecord::Job.enqueue(LogMemoryConsumptionJob.new)  
5 -end