Fases 4, 5 e 6 — Job 1h + Auditoria + Consolidação + Wizard de validação

This commit is contained in:
2026-06-11 12:02:50 -03:00
parent b77fc0122c
commit 90ed705ed8
29 changed files with 1617 additions and 616 deletions

12
config/schedule.rb Normal file
View File

@@ -0,0 +1,12 @@
# config/schedule.rb
# Agendamento com Whenever gem
# Atualizar crontab: bundle exec whenever --update-crontab
# Ver crontab gerado: bundle exec whenever
set :output, "log/cron.log"
set :environment, ENV.fetch("RAILS_ENV", "production")
# A cada 1 hora — atualiza o valor estimado do dia
every 1.hour do
rake "historico:atualizar"
end