mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-20 16:44:18 +01:00
13 lines
243 B
Ruby
13 lines
243 B
Ruby
# This is an example of a bad cronotab for tests
|
|
|
|
class TestJob
|
|
def perform
|
|
puts 'Test!'
|
|
end
|
|
end
|
|
|
|
# This is an error, because you can use `on` options with
|
|
# a period less than 7 days.
|
|
|
|
Crono.perform(TestJob).every 5.days, on: :sunday
|