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
|
end
|
||||||
|
|
||||||
post "/queues/:name/delete" do
|
post "/queues/:name/delete" do
|
||||||
Sidekiq.redis do |conn|
|
Sidekiq::Job.new(params[:key_val], params[:name]).delete
|
||||||
conn.lrem("queue:#{params[:name]}", 0, params[:key_val])
|
|
||||||
end
|
|
||||||
redirect "#{root_path}queues/#{params[:name]}"
|
redirect "#{root_path}queues/#{params[:name]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue