1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/examples/simple.rb
2013-02-01 17:39:38 +00:00

18 lines
278 B
Ruby

# Run with `sidekiq -r /path/to/simple.rb`
require 'sidekiq'
require 'sidetiq'
Sidekiq.options[:poll_interval] = 1
class MyWorker
include Sidekiq::Worker
include Sidetiq::Schedulable
tiq { secondly }
def perform(*args)
Sidekiq.logger.info "#perform"
end
end