chimpd <%=VERSION%> console
FEATURING CUTTING EDGE META REFRESH
TECHNOLOGY
SINCE 2012
Queue Status
Jobs running: |
<%= count_jobs_running %>
|
Jobs holding: |
<%= count_jobs_holding %>
|
Jobs waiting: |
<%= count_jobs_queued %>
|
Jobs failed: |
<%= count_jobs_failed %>
|
Jobs completed: |
<%= count_jobs_done %>
|
Job Groups
<% queue.group.values.each do |g| %>
-
[<%= sprintf( "%03d", g.get_jobs_by_status(:running).size) %>/<%= sprintf( "%03d", g.get_job_ids.size) %> <%= g.short_name %>] <% if group_name == g.group_id %><%=g.group_id%><% else %><%= g.group_id %><% end %>
<% end %>
Filter Results By Job Status
[
<% if job_filter == 'running' or job_filter == nil %>running<% else %>running<% end %> |
<% if job_filter == 'holding' %>holding<% else %>holding <% end %> |
<% if job_filter == 'none' %>waiting<% else %>waiting <% end %> |
<% if job_filter == 'done' %>completed<% else %>completed<% end %> |
<% if job_filter == 'error' %>failed<% else %>failed<% end %>
|
<% if job_filter == 'all' %>all<% else %>all <% end %> ]
Commands
- cancel running jobs
- retry failed jobs
- download execution report
Theme
- default
- green screen
- hot dog stand
- inverted hot dog stand
<% if group_name == nil %>
Job Information
<% else %>
Job Group: <%=CGI::escapeHTML(group_name)%>
<% end %>
<%
#
# Print out all the jobs
#
jobs.sort! do |a,b|
a.job_id <=> b.job_id
end
jobs.each do |j|
next unless j
status = j.status
id = j.job_id
server_name = CGI::escapeHTML(j.server['nickname']) if j.server
if j.exec
action = j.exec.to_s
action = j.exec['right_script']['name'] if j.exec['right_script']
else
action = "unknown"
end
if job_filter and not (job_filter == 'all' or job_filter == 'group' )
next unless status == job_filter.to_sym
end
execution_time_seconds = j.get_total_exec_time
h = (execution_time_seconds/3600).to_i
m = (execution_time_seconds/60 - h*60).to_i
s = (execution_time_seconds - (m*60 + h*3600))
time = sprintf("%02d:%02d:%02d", h, m, s)
%>
#<%= id %>
<%
color = "#088A29"
color = "brightgreen" if status == Executor::STATUS_RUNNING
color = "orange" if status == Executor::STATUS_RETRYING
color = "red" if status == Executor::STATUS_ERROR
%>
- Server: <%= server_name %>
- Group: <%= j.group.group_id %>
- Action: <%= action %>
- Status: <%= status %>
- Time: <%= time %>
<% if status != Executor::STATUS_RUNNING %>
- Results: <%= j.results %>
<% end %>
-
<% case status
when Executor::STATUS_ERROR %>
ack |
retry
<% when Executor::STATUS_RUNNING, Executor::STATUS_RETRYING, Executor::STATUS_NONE %>
cancel
<% when Executor::STATUS_HOLDING %>
queue
cancel
<% when Executor::STATUS_DONE %>
requeue
<% end %>
<% end %>