Sha256: 84ff2089d0b391beee5dd69b1fb096ab949b9c1c6b53ab4e01382e83f6548833
Contents?: true
Size: 1.85 KB
Versions: 2
Compression:
Stored size: 1.85 KB
Contents
<h1>Schedule</h1> <p class='intro'> The list below contains all scheduled jobs. Click "Queue now" to queue a job immediately. Server local time: <%= Time.now %> Current master: <%= Resque.redis.get(Resque::Scheduler.master_lock.key) %> </p> <div style="overflow-y: auto; width:100%; padding: 0px 5px;"> <table> <tr> <% if Resque::Scheduler.dynamic %> <th></th> <% end %> <th></th> <th>Name</th> <th>Description</th> <th>Interval</th> <th>Class</th> <th>Queue</th> <th>Arguments</th> <th>Last Enqueued</th> </tr> <% Resque.schedule.keys.sort.select { |n| scheduled_in_this_env?(n) }.each do |name| %> <% config = Resque.schedule[name] %> <tr> <% if Resque::Scheduler.dynamic %> <td style="padding-top: 12px; padding-bottom: 2px; width: 10px"> <form action="<%= u "/schedule" %>" method="post" style="margin-left: 0"> <input type="hidden" name="job_name" value="<%= h name %>"> <input type="hidden" name="_method" value="delete"> <input type="submit" value="Delete"> </form> </td> <% end %> <td style="padding-top: 12px; padding-bottom: 2px; width: 10px"> <form action="<%= u "/schedule/requeue" %>" method="post" style="margin-left: 0"> <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"><%= h schedule_interval(config) %></td> <td><%= h schedule_class(config) %></td> <td><%= h config['queue'] || queue_from_class_name(config['class']) %></td> <td><%= h config['args'].inspect %></td> <td><%= h Resque.get_last_enqueued_at(name) || 'Never' %></td> </tr> <% end %> </table> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resque-scheduler-4.1.0 | lib/resque/scheduler/server/views/scheduler.erb |
resque-scheduler-4.0.0 | lib/resque/scheduler/server/views/scheduler.erb |