Sha256: 3c19d7d331545851a7191ee11a609431446162fb92ef5bcba01cf5ec0ffa751b
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
<h1>Delayed Jobs</h1> <%= render partial: 'search_form' %> <p class='intro'> This list below contains the timestamps for scheduled delayed jobs. Server local time: <%= Time.now %> </p> <p class='sub'> <% finish = [@start + @number_to_show, @total_number_of_delayed_jobs].min %> Showing <%= @start %> to <%= finish %> of <b><%= @total_number_of_delayed_jobs %></b> timestamps </p> <table class="table table-bordered"> <tr> <th></th> <th>Timestamp</th> <th>Job count</th> <th>Class</th> <th>Args</th> <th>All schedules</th> </tr> <% @timestamps.each do |timestamp| %> <tr> <td> <form action="<%= queue_now_path %>" method="post"> <input type="hidden" name="timestamp" value="<%= timestamp.to_i %>"> <input type="submit" value="Queue now" class="btn btn-default"> </form> </td> <td><a href="<%= delayed_path timestamp: 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="<%= delayed_path timestamp: timestamp %>">see details</a> <% end %> </td> <td><%= h(job['args'].inspect) if job && delayed_timestamp_size == 1 %></td> <td> <% if job %> <a href="<%= delayed_job_class_path klass: job['class'], args: URI.encode(job['args'].to_json) %>">All schedules</a> <% end %> </td> </tr> <% end %> </table> <% if @total_number_of_delayed_jobs > 0 %> <br> <form method="POST" action="<%= clear_path %>" class='clear-delayed'> <input type='submit' name='' value='Clear Delayed Jobs' /> </form> <% end %> <%= render partial: 'next_more', locals: { :start => @start, :size => @total_number_of_delayed_jobs } %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-scheduler-web-0.0.1 | app/views/resque_web/plugins/resque_scheduler/delayed/index.erb |