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:
parent
327a1cc962
commit
bcd3b8382a
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue