Commit 927464764fe74252314f33666deb3dec9ea6a94e
1 parent
8d2ace06
Exists in
master
and in
29 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 | class LogMemoryConsumptionJob < Struct.new(:last_stat) | 1 | class LogMemoryConsumptionJob < Struct.new(:last_stat) |
2 | # Number of entries do display | 2 | # Number of entries do display |
3 | N = 20 | 3 | N = 20 |
4 | - # In seconds | ||
5 | - PERIOD = 10 | ||
6 | 4 | ||
7 | def perform | 5 | def perform |
8 | logpath = File.join(Rails.root, 'log', "#{ENV['RAILS_ENV']}_memory_consumption.log") | 6 | logpath = File.join(Rails.root, 'log', "#{ENV['RAILS_ENV']}_memory_consumption.log") |
@@ -20,7 +18,5 @@ class LogMemoryConsumptionJob < Struct.new(:last_stat) | @@ -20,7 +18,5 @@ class LogMemoryConsumptionJob < Struct.new(:last_stat) | ||
20 | i += 1 | 18 | i += 1 |
21 | end | 19 | end |
22 | logger << "\n" | 20 | logger << "\n" |
23 | - | ||
24 | - Delayed::Job.enqueue(LogMemoryConsumptionJob.new(stats), 0, PERIOD.seconds.from_now) | ||
25 | end | 21 | end |
26 | end | 22 | end |