Schedule

The list below contains all scheduled jobs. Click "Queue now" to queue a job immediately.

<% Resque.schedule.each do |name,config| %> <%end%>
Name IP Description Cron Class Arguments
<%= button_to "Queue now", {:controller=>'resque', :action=> 'schedule_requeue', :job_name => name}, :method => :post %> <%= h name %> <%= h config['ip'] %> <%= h config['description'] %> <%= h config['cron'] %> <%= h config['class'] %> <%= h config['args'].inspect %> <%= button_to "Remove", {:controller=>'resque', :action=> 'remove_from_schedule', :job_name => name, :ip => config['ip']}, :method => :post %>

Add Job to Schedule

<%flash_message = flash_helper%> <% unless flash_message.blank? -%>

<%= flash_message %>

<%= javascript_tag "$('flash').show();" %> <% end %>
<%= form_tag '/resque/add_scheduled_job' do -%>
Name IP Description Cron Class Arguments
<%= text_field_tag :name %> <%= text_field_tag :ip %> <%= text_field_tag :description %> <%= text_field_tag :cron %> <%= text_field_tag :class %> <%= text_area_tag :args, nil, :rows => 1, :cols => 40%> <%= submit_tag 'Add Job', :id => 'add_job' %>
<% end -%>

Farm Status

<%@farm_status.each do |ip,status| -%> <% end -%>
IP Status
<%= ip %> <%= status %> <% if status == 'Running' -%> <%= button_to "Stop Scheduler", {:controller=>'resque', :action=> 'stop_scheduler', :ip => ip}, :method => :post %> <% else -%> <%= button_to "Start Scheduler", {:controller=>'resque', :action=> 'start_scheduler', :ip => ip}, :method => :post %> <% end -%>