mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-22 17:40:11 +01:00
16 lines
364 B
Ruby
16 lines
364 B
Ruby
# cronotab.rb — Crono configuration file
|
|
#
|
|
# Here you can specify periodic jobs and schedule.
|
|
# You can use ActiveJob's jobs from `app/jobs/`
|
|
# You can use any class. The only requirement is that
|
|
# class should have a method `perform` without arguments.
|
|
#
|
|
class TestJob
|
|
def perform
|
|
puts "Test!"
|
|
end
|
|
end
|
|
|
|
Crono.perform(TestJob).every 2.days, at: "15:30"
|
|
|