mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
Add configure_server block to example code.
This commit is contained in:
parent
3dd45e815b
commit
5a1b2b125d
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ require 'sidetiq'
|
|||
|
||||
Sidekiq.options[:poll_interval] = 1
|
||||
|
||||
Sidekiq.configure_server do |config|
|
||||
Sidetiq::Clock.start!
|
||||
end
|
||||
|
||||
class MyWorker
|
||||
include Sidekiq::Worker
|
||||
include Sidetiq::Schedulable
|
||||
|
|
Loading…
Reference in a new issue