lib/resque/server/views/working.erb in resque-mongo-1.4.0 vs lib/resque/server/views/working.erb in resque-mongo-1.8.1
- old
+ new
@@ -43,9 +43,11 @@
</tr>
<% end %>
<% for worker in workers.sort_by { |w| w.job['run_at'] ? w.job['run_at'] : '' } %>
<% job = worker.job %>
+ <% next if worker.idle? %>
+
<tr>
<td class='icon'><img src="<%=u state = worker.state %>.png" alt="<%= state %>" title="<%= state %>"></td>
<% host, pid, queues = worker.to_s.split(':') %>
<td class='where'><a href="<%=u "/workers/#{worker}" %>"><%= host %>:<%= pid %></a></td>
<td class='queues queue'>