1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/test/fixtures/scheduled_worker.rb
2013-07-12 10:33:57 +01:00

16 lines
265 B
Ruby

class ScheduledWorker
include Sidekiq::Worker
include Sidetiq::Schedulable
recurrence do
daily.hour_of_day(1)
yearly.month_of_year(2)
monthly.day_of_month(3)
add_exception_rule yearly.month_of_year(:february)
end
def perform
end
end