Module: CoreCronTabsController

Includes:
CoreController
Defined in:
lib/app/controllers/concerns/core_cron_tabs_controller.rb

Overview

Manage cron_servers job servers

Instance Method Summary collapse

Instance Method Details

#run_nowObject

Run the crontab entry now



11
12
13
14
15
16
17
# File 'lib/app/controllers/concerns/core_cron_tabs_controller.rb', line 11

def run_now
  cron_tab.run
  redirect_to_referrer index_path
rescue StandardError => error
  log_controller_error error, true
  redirect_to_referrer index_path
end

#updateObject

Update a crontab entry



22
23
24
25
26
27
28
# File 'lib/app/controllers/concerns/core_cron_tabs_controller.rb', line 22

def update
  cron_tab.update! cron_tab_params
  redirect_to_referrer index_path
rescue StandardError => error
  log_controller_error error
  render :edit
end