Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (12 sloc) 0.363 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require 'clockwork'
include Clockwork

handler do |job|
  puts "Queueing job: #{job}"
end

every(10.seconds, 'run.me.every.10.seconds')
every(1.minute, 'run.me.every.minute')
every(1.hour, 'run.me.every.hour')

every(1.day, 'run.me.at.midnight', :at => '00:00')

every(1.day, 'custom.event.handler', :at => '00:30') do
  puts "This event has its own handler"
end
Something went wrong with that request. Please try again.