# 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


# Run with `sidekiq -r /path/to/simple.rb`

require 'sidekiq'
require 'sidetiq'

Sidekiq.options[:poll_interval] = 1

Sidekiq.configure_server do |config|
  Sidetiq::Clock.start!
end

class MyWorker
  include Sidekiq::Worker
  include Sidetiq::Schedulable

  tiq { secondly }

  def perform(*args)
    Sidekiq.logger.info "#perform"
  end
end


Add configure_server block to example code.
Add configure_server block to example code.
