<% @subtabs = resque.queues unless partial? || params[:id].nil? %> <% if queue = params[:id] %>

Jobs on <%= queue %>

" class='remove-queue'>
<% if !resque.queue_allows_delayed queue.to_sym %>

Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <%=size = resque.size(queue.to_sym)%> jobs

<% for job in (jobs = resque.peek(queue.to_sym, start, 20)) %> <% end %> <% else %>

Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <%=size = resque.size(queue.to_sym)%> jobs

Class Args Enqueued At
<%= job['class'] %> <%=h job['args'].inspect %> <%=h enqueued_at(job['resque_enqueue_timestamp']) %>
<% for job in (jobs = resque.peek(queue.to_sym, start, 20, :all_sorted)) %> <% end %> <% end %> <% if jobs.empty? %> <% end %>
Class Args Enqueued At Processes In
<%= job['class'] %> <%=h job['args'].inspect %> <%=h enqueued_at(job['resque_enqueue_timestamp']) %> <%=h processes_in(job['delay_until']) %>
There are no pending jobs in this queue
<%= partial :next_more, :start => start, :size => size %> <% else %>

Queues

The list below contains all the registered queues with the number of jobs currently in the queue. Select a queue from above to view all jobs currently pending on the queue.

<% for queue in resque.queues.sort_by { |q| q.to_s } %> <% end %> ">
Name Ready Jobs Delayed Jobs
"><%= queue %> <%= resque.ready_size queue.to_sym %> <%= resque.delayed_size(queue.to_sym) if resque.queue_allows_delayed(queue.to_sym) %>
failed <%= Resque::Failure.count %>
<% end %>