frankfurter/bin/schedule

13 lines
200 B
Plaintext
Raw Normal View History

#!/usr/bin/env ruby
# frozen_string_literal: true
require "rufus-scheduler"
scheduler = Rufus::Scheduler.new
2018-09-11 18:59:12 +02:00
scheduler.cron("*/30 15,16,17 * * 1-5") do
%x(rake rates:current)
end
2018-09-11 18:59:12 +02:00
scheduler.join