Sha256: b07a3009c51e26e5e8468c310c220323ad0d3c340529916124690251ffcc428e
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
<h1>Schedule</h1> <p class='intro'> The list below contains all scheduled jobs. Click "Queue now" 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="<%= u "/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><%= (config['class'].nil? && !config['custom_job_class'].nil?) ? h(config['custom_job_class']) : 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-scheduler-1.9.9 | lib/resque_scheduler/server/views/scheduler.erb |