mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
14 lines
227 B
Ruby
14 lines
227 B
Ruby
require 'sidekiq/web'
|
|
require 'redis'
|
|
|
|
$redis = Redis.new
|
|
|
|
class SinatraWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform(msg="lulz you forgot a msg!")
|
|
$redis.lpush("sinkiq-example-messages", msg)
|
|
end
|
|
end
|
|
|
|
run Sidekiq::Web
|