Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (14 sloc) 0.582 kb
0bfe2bd Mike Perham Implement simple home page and queue page
mperham authored
1 require 'sidekiq'
2
3 Sidekiq.configure_client do |config|
4 config.redis = { :size => 1 }
5 end
6
ad73a8e Mike Perham Add delete and retry now operations to web UI
mperham authored
7 #Sidekiq.redis {|conn| conn.flushdb }
8 #10.times do |idx|
9 #Sidekiq::Client.push('class' => 'HardWorker', 'args' => ['foo', 0.1, idx])
10 #end
11
12 #Sidekiq.redis { |conn| conn.zadd('retry', Time.now.utc.to_f + 3000, MultiJson.encode({
13 #'class' => 'HardWorker', 'args' => ['foo', 0.1, Time.now.to_f],
14 #'queue' => 'default', 'error_message' => 'No such method', 'error_class' => 'NoMethodError',
15 #'failed_at' => Time.now.utc, 'retry_count' => 0 })) }
16
0bfe2bd Mike Perham Implement simple home page and queue page
mperham authored
17 require 'sidekiq/web'
18 run Sidekiq::Web
Something went wrong with that request. Please try again.