Sha256: f360b3058bf227e29d4c5afaa10390701b2f8eb30aaac8364c6ddbb6f23cdadf

Contents?: true

Size: 1.33 KB

Versions: 31

Compression:

Stored size: 1.33 KB

Contents

<h1>Delayed Jobs</h1>

<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 = resque.delayed_queue_schedule_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, start+20).each do |timestamp| %>
    <tr>
      <td>
        <form action="<%= url "/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="<%= url "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="<%= url "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

31 entries across 31 versions & 5 rubygems

Version Path
nulogy-resque-scheduler-1.10.15 lib/resque_scheduler/server/views/delayed.erb
sskirby-resque-scheduler-1.10.14 lib/resque_scheduler/server/views/delayed.erb
sskirby-resque-scheduler-1.10.13 lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-2.0.0.c lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-2.0.0.b lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-1.9.8 lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-2.0.0.a lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.12 lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-1.9.7 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.11 lib/resque_scheduler/server/views/delayed.erb
davidyang-resque-scheduler-1.10.11 lib/resque_scheduler/server/views/delayed.erb
sskirby-resque-scheduler-1.10.9 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.10 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.9 lib/resque_scheduler/server/views/delayed.erb
sskirby-resque-scheduler-1.10.8 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.8 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.7 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.6 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.5 lib/resque_scheduler/server/views/delayed.erb
brianjlandau-resque-scheduler-1.10.4 lib/resque_scheduler/server/views/delayed.erb