Sha256: 6031c0104e91af97037297d095bd8f4b5d3d4ed1d104e01703a09999f0699fab

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 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="<%= 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

3 entries across 3 versions & 1 rubygems

Version Path
resque-scheduler-1.9.10 lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-2.0.0.d lib/resque_scheduler/server/views/delayed.erb
resque-scheduler-1.9.9 lib/resque_scheduler/server/views/delayed.erb