require 'sidetiq'

# We're only loading this so we don't actually have to connect to redis.
require 'sidekiq/testing'

class ExampleWorker
  include Sidekiq::Worker
  include Sidetiq::Schedulable

  def self.perform_at(time)
    puts "Enqueued to run at #{time}"
  end

  # Run every 2 seconds
  tiq { secondly(2) }
end

puts "Hit C-c to quit."
sleep 1000000

# 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


Add a quicker running example.
Add a quicker running example.
