empezar a recolectar estadísticas cuando se inicia el panel
This commit is contained in:
parent
ec775847b9
commit
356db85465
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ module Sutty
|
|||
|
||||
EmailAddress::Config.error_messages translations.transform_keys(&:to_s), locale.to_s
|
||||
end
|
||||
|
||||
# Empezar el recolector de datos en la próxima hora
|
||||
now = Time.now
|
||||
next_hour = now.at_beginning_of_hour + 1.hour + 1.minute
|
||||
StatCollectionJob.perform_in(next_hour - now, once: false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue