chimpd <%=VERSION%> console
FEATURING CUTTING EDGE META REFRESH
TECHNOLOGY
SINCE 2012
Queue Status
Jobs running: |
<%= count_jobs_running %>
|
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
[
<% if job_filter == 'running' or job_filter == nil %>running jobs <% else %>running jobs<% end %> |
<% if job_filter == 'all' %>all jobs <% else %>all jobs <% end %> |
<% if job_filter == 'done' %>complete jobs <% else %>complete jobs<% end %> |
<% if job_filter == 'error' %>failed jobs <% else %>failed jobs<% end %>
]
Commands
- cancel running jobs
- retry failed jobs
- download execution report
Theme
- default
- green screen
- 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 %>
-
<% if status == Executor::STATUS_ERROR %>
ack |
retry
<% elsif status == Executor::STATUS_RUNNING %>
cancel
<% else %>
requeue
<% end %>
<% end %>