Sha256: 2c0eefea444be3df4de31eec06828285e93e362369428b8309aa24966bb00177

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

<h1>Schedule</h1>

<p class='intro'>
  The list below contains all scheduled jobs.  Click &quot;Queue now&quot; to queue
  a job immediately.
</p>

<table>
  <tr>
    <th></th>
    <th>Name</th>
    <th>Description</th>
    <th>Interval</th>
    <th>Class</th>
    <th>Queue</th>
    <th>Arguments</th>
  </tr>
  <% Resque.schedule.keys.sort.each do |name| %>
    <% config = Resque.schedule[name] %>
    <tr>
      <td>
        <form action="<%= url "/schedule/requeue" %>" method="post">
          <input type="hidden" name="job_name" value="<%= h name %>">
          <input type="submit" value="Queue now">
        </form>
      </td>
      <td><%= h name %></td>
      <td><%= h config['description'] %></td>
      <td style="white-space:nowrap"><%= (config['cron'].nil? && !config['every'].nil?) ?
                                         h('every: ' + config['every']) : 
                                         h('cron: ' + config['cron']) %></td>
      <td><%= h config['class'] %></td>
      <td><%= h config['queue'] || queue_from_class_name(config['class']) %></td>
      <td><%= h config['args'].inspect %></td>
    </tr>
  <% end %>
</table>

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
nulogy-resque-scheduler-1.10.15 lib/resque_scheduler/server/views/scheduler.erb
sskirby-resque-scheduler-1.10.14 lib/resque_scheduler/server/views/scheduler.erb
sskirby-resque-scheduler-1.10.13 lib/resque_scheduler/server/views/scheduler.erb
brianjlandau-resque-scheduler-1.10.12 lib/resque_scheduler/server/views/scheduler.erb
resque-scheduler-1.9.7 lib/resque_scheduler/server/views/scheduler.erb