Commit 927464764fe74252314f33666deb3dec9ea6a94e
1 parent
8d2ace06
Exists in
master
and in
21 other branches
Remove peridicity on log_memory_consumption job
Showing
1 changed file
with
0 additions
and
4 deletions
Show diff stats
lib/log_memory_consumption_job.rb
| 1 | 1 | class LogMemoryConsumptionJob < Struct.new(:last_stat) |
| 2 | 2 | # Number of entries do display |
| 3 | 3 | N = 20 |
| 4 | - # In seconds | |
| 5 | - PERIOD = 10 | |
| 6 | 4 | |
| 7 | 5 | def perform |
| 8 | 6 | logpath = File.join(Rails.root, 'log', "#{ENV['RAILS_ENV']}_memory_consumption.log") |
| ... | ... | @@ -20,7 +18,5 @@ class LogMemoryConsumptionJob < Struct.new(:last_stat) |
| 20 | 18 | i += 1 |
| 21 | 19 | end |
| 22 | 20 | logger << "\n" |
| 23 | - | |
| 24 | - Delayed::Job.enqueue(LogMemoryConsumptionJob.new(stats), 0, PERIOD.seconds.from_now) | |
| 25 | 21 | end |
| 26 | 22 | end | ... | ... |