Class: CronScheduler

Inherits:
Object
  • Object
show all
Defined in:
app/schedulers/cron_scheduler.rb

Class Method Summary collapse

Class Method Details

.runObject


4
5
6
7
8
9
10
11
12
13
14
# File 'app/schedulers/cron_scheduler.rb', line 4

def self.run
  scheduler = Rufus::Scheduler.new

  # Daily at 4:30 AM
  # scheduler.cron '30 4 * * *' do
  scheduler.cron '18 * * * *' do
    # AssembleMarcFiles.new.run
  end

  scheduler.join
end