Use human readable expressions instead of cron gibberish
https://github.com/floraison/fugit#fugitnat
This commit is contained in:
parent
a2b50efa3b
commit
6dc1f3e2c4
19 changed files with 39 additions and 16 deletions
|
@ -5,4 +5,11 @@ namespace :jobs do
|
|||
Dir.glob(glob).each { |f| require f }
|
||||
CronJob.subclasses.each(&:schedule)
|
||||
end
|
||||
|
||||
desc 'Display schedule for all cron jobs'
|
||||
task display_schedule: :environment do
|
||||
glob = Rails.root.join('app', 'jobs', '**', '*_job.rb')
|
||||
Dir.glob(glob).each { |f| require f }
|
||||
CronJob.subclasses.each(&:display_schedule)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue