1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Leverage API to delete jobs from the queue in the Web UI.

This commit is contained in:
Brandon Hilkert 2012-12-02 16:23:05 -05:00
parent 327a1cc962
commit bcd3b8382a

View file

@ -141,9 +141,7 @@ module Sidekiq
end
post "/queues/:name/delete" do
Sidekiq.redis do |conn|
conn.lrem("queue:#{params[:name]}", 0, params[:key_val])
end
Sidekiq::Job.new(params[:key_val], params[:name]).delete
redirect "#{root_path}queues/#{params[:name]}"
end