automation and view updates

This commit is contained in:
Jason Jordan
2026-04-17 15:35:10 -04:00
parent 247a075c9c
commit 7ab1143db8
30 changed files with 124704 additions and 602 deletions
+2 -1
View File
@@ -32,7 +32,7 @@ Rails.application.routes.draw do
# get 'generate_full_page'
# end
# end
get 'plans/:id/get_plan_benefits', to: 'plans#get_plan_benefits'
get 'plans/:id/get_plan_template', to: 'plans#get_plan_template'
end
# resources :employer_setup
resources :employers do
@@ -48,6 +48,7 @@ Rails.application.routes.draw do
patch 'update_plans'
get 'field_exceptions'
patch 'update_field_exceptions'
get 'update_active_status'
end
end
end
+9 -3
View File
@@ -1,9 +1,15 @@
set :output, "./log/cron_log.log"
set :output, "log/cron_log.log"
set :environment, ENV['RAILS_ENV'] || 'development'
every 1.minute do
runner "Rails.logger.info 'Cron test ran at: ' + Time.now.to_s"
command "echo 'Cron test ran at: ' $(date) >> log/cron_log.log"
end
every 1.day, at: ['6:00 am', '6:00 pm'] do
rake "employer_automation:employer_members_update"
rake "employer_automation:employer_maintenance"
end
every '0,15,30,45 7-18 * * 1-5' do
rake "employer_automation:employer_update"
rake "employer_automation:employer_initialize"
end