mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
16 lines
265 B
Ruby
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
|
|
|