frankfurter/bin/schedule

13 lines
241 B
Plaintext
Raw Normal View History

#!/usr/bin/env ruby
# frozen_string_literal: true
system 'rake db:setup'
require 'rufus-scheduler'
scheduler = Rufus::Scheduler.new
scheduler.cron '*/15 15,16,17 * * 1-5', timeout: '1m' do
2018-06-06 17:30:18 +02:00
system 'rake rates:current'
end
scheduler.join