From d9776cd33051de2ad0990b1cdbd76a931f38ec45 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Mon, 23 Nov 2015 09:39:14 -0800 Subject: [PATCH] Push a job to fill queue so we can delete it in UI --- myapp/simple.ru | 2 ++ 1 file changed, 2 insertions(+) diff --git a/myapp/simple.ru b/myapp/simple.ru index 51bc5f60..b7e1958a 100644 --- a/myapp/simple.ru +++ b/myapp/simple.ru @@ -8,5 +8,7 @@ Sidekiq.configure_client do |config| config.redis = { url: 'redis://localhost:6379/0', size: 1, namespace: 'foo' } end +Sidekiq::Client.push('class' => "HardWorker", 'args' => []) + require 'sidekiq/web' run Sidekiq::Web