Method: CoreCronController#run_now

Defined in:
lib/app/controllers/concerns/core_cron_controller.rb

#run_nowObject

Run the crontab entry now



19
20
21
22
23
24
25
26
# File 'lib/app/controllers/concerns/core_cron_controller.rb', line 19

def run_now
  authorize! :read, cron_tab
  cron_tab.run
  redirect_to index_path
rescue StandardError => error
  log_controller_error error, true
  redirect_to index_path
end