Skip to content

Commit

Permalink
remove the /stats/queues/:name endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Moser, Kevin authored and Moser, Kevin committed Dec 26, 2014
1 parent 4e1c2f8 commit 0973426
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions lib/sidekiq/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ def custom_tabs

get '/stats' do
sidekiq_stats = Sidekiq::Stats.new
queues = Sidekiq::Queue.all

content_type :json
Sidekiq.dump_json(
Expand All @@ -250,15 +249,6 @@ def custom_tabs
)
end

get '/stats/queues/:name' do
queue = Sidekiq::Queue.new(params[:name])

content_type :json
Sidekiq.dump_json(
size: queue.size
)
end

private

def retry_or_delete_or_kill job, params
Expand Down
11 changes: 0 additions & 11 deletions test/test_web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -399,17 +399,6 @@ def perform(a, b)
assert_equal 0, @response["default"]
end
end

describe 'queues/:name' do
before do
get '/stats/queues/default'
@response = Sidekiq.load_json(last_response.body)
end

it 'reports the queue size' do
assert_equal 0, @response["size"]
end
end
end

describe 'dashboard/stats' do
Expand Down

0 comments on commit 0973426

Please sign in to comment.