Sha256: 0bae560dcef8b2f0a055799c29794e6da72ec29d0fe4c3a16c4fcaa4d7f22a91
Contents?: true
Size: 1.5 KB
Versions: 8
Compression:
Stored size: 1.5 KB
Contents
<h1>Delayed Jobs</h1> <%- size = resque.delayed_queue_schedule_size %> <% if size > 0 %> <form method="POST" action="<%=u 'delayed/clear'%>" class='clear-delayed'> <input type='submit' name='' value='Clear Delayed Jobs' /> </form> <% end %> <p class='intro'> This list below contains the timestamps for scheduled delayed jobs. </p> <p class='sub'> Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <b><%= size %></b> timestamps </p> <table> <tr> <th></th> <th>Timestamp</th> <th>Job count</th> <th>Class</th> <th>Args</th> </tr> <% resque.delayed_queue_peek(start, 20).each do |timestamp| %> <tr> <td> <form action="<%= u "/delayed/queue_now" %>" method="post"> <input type="hidden" name="timestamp" value="<%= timestamp.to_i %>"> <input type="submit" value="Queue now"> </form> </td> <td><a href="<%= u "delayed/#{timestamp}" %>"><%= format_time(Time.at(timestamp)) %></a></td> <td><%= delayed_timestamp_size = resque.delayed_timestamp_size(timestamp) %></td> <% job = resque.delayed_timestamp_peek(timestamp, 0, 1).first %> <td> <% if job && delayed_timestamp_size == 1 %> <%= h(job['class']) %> <% else %> <a href="<%= u "delayed/#{timestamp}" %>">see details</a> <% end %> </td> <td><%= h(job['args'].inspect) if job && delayed_timestamp_size == 1 %></td> </tr> <% end %> </table> <%= partial :next_more, :start => start, :size => size %>
Version data entries
8 entries across 8 versions & 3 rubygems