From 356db8546522ac581254f11d2dcdd4419dfc6595 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 9 Oct 2021 18:28:38 -0300 Subject: [PATCH] =?UTF-8?q?empezar=20a=20recolectar=20estad=C3=ADsticas=20?= =?UTF-8?q?cuando=20se=20inicia=20el=20panel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/application.rb b/config/application.rb index 7326ae0..4922b74 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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