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

Remove "Clear worker list" button, yay!

This commit is contained in:
Mike Perham 2014-03-06 21:33:45 -08:00
parent ff9db33666
commit 4089e2b202
9 changed files with 0 additions and 40 deletions

View file

@ -56,11 +56,6 @@ module Sidekiq
erb :queue
end
post "/reset" do
reset_worker_list
redirect root_path
end
post "/queues/:name" do
Sidekiq::Queue.new(params[:name]).clear
redirect "#{root_path}queues"

View file

@ -76,26 +76,6 @@ class TestWeb < Sidekiq::Test
end
end
it 'can clear an empty worker list' do
post '/reset'
assert_equal 302, last_response.status
end
it 'can clear a non-empty worker list' do
Sidekiq.redis do |conn|
identity = 'foo'
conn.sadd('workers', identity)
end
post '/reset'
assert_equal 302, last_response.status
Sidekiq.redis do |conn|
refute conn.smembers('workers').any?
end
end
it 'can delete a job' do
Sidekiq.redis do |conn|
conn.rpush('queue:foo', "{}")

View file

@ -12,7 +12,6 @@ en: # <---- change this to your locale code
Scheduled: Scheduled
Retries: Retries
Enqueued: Enqueued
ClearWorkerList: Clear workers list
Worker: Worker
Workers: Workers
LivePoll: Live Poll

View file

@ -12,7 +12,6 @@ ja:
Scheduled: 予定
Retries: 再試行
Enqueued: 待機状態
ClearWorkerList: 動作中の作業を停止
Worker: 動作中の作業
Workers: 動作中の作業
LivePoll: ポーリング開始

View file

@ -12,7 +12,6 @@ ko:
Scheduled: 예약
Retries: 재시도
Enqueued: 대기 중
ClearWorkerList: 워커 목록 비우기
Worker: 워커
Workers: 워커
LivePoll: 폴링 시작

View file

@ -12,7 +12,6 @@ nl:
Scheduled: Gepland
Retries: Opnieuw proberen
Enqueued: In de wachtrij
ClearWorkerList: Werkerlijst legen
Worker: Werker
Workers: Werkers
LivePoll: Live bijwerken

View file

@ -12,7 +12,6 @@ no:
Scheduled: Planlagt
Retries: Forsøk
Enqueued: I kø
ClearWorkerList: Nullstill jobbliste
Worker: Arbeider
Workers: Arbeidere
LivePoll: Automatisk oppdatering

View file

@ -11,7 +11,6 @@ ru:
Scheduled: Запланировано
Retries: Попыток
Enqueued: В очереди
ClearWorkerList: Очистить список обработчиков
Worker: Обработчик
Workers: Обработчики
LivePoll: Постоянный опрос

View file

@ -49,12 +49,3 @@
</tr>
<% end %>
</table>
<% if workers_size > 0 %>
<div class="row">
<div class="col-sm-2 pull-right">
<form action="<%= root_path %>reset" method="post">
<button class="btn btn-primary btn-block" type="submit"><%= t('ClearWorkerList') %></button>
</form>
</div>
</div>
<% end %>