forked from brightroll/rq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge oper_status and admin_status. Break queue buttons out to a part…
…ial.
- Loading branch information
Showing
10 changed files
with
67 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<form class="inline inrow" method="post" action="<%= "#{url}q/#{name}/adminoper" %>"> | ||
<input type="hidden" name="back" value="<%= request.path %>" /> | ||
<%- if status == 'PAUSE' -%> | ||
<button id="resume-queue" name="resume" value="resume" <%= 'disabled="disabled"' if status == 'DOWN' %>>Resume</button> | ||
<%- else -%> | ||
<button id="pause-queue" name="pause" value="pause" <%= 'disabled="disabled"' if status == 'DOWN' %>>Pause</button> | ||
<%- end -%> | ||
<%- if status == 'DOWN' -%> | ||
<button id="up-queue" name="up" value="up">Up</button> | ||
<%- else -%> | ||
<button id="down-queue" name="down" value="down">Down</button> | ||
<%- end -%> | ||
</form> | ||
<form class="inline inrow" method="post" action="<%= "#{url}q/#{name}/restart" %>"> | ||
<input type="hidden" name="back" value="<%= request.path %>" /> | ||
<button id="restart-queue" name="restart" value="restart">Restart</button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{<% status = qc.status %> "admin_status": "<%=status[0]%>" | ||
,"oper_status": "<%=status[1]%>" | ||
<% if status[1] != 'DOWN' %> | ||
,"uptime": <%=qc.uptime%><% num_messages = qc.num_messages %> | ||
,"prep_size": <%= num_messages['prep'] %> | ||
,"que_size": <%= num_messages['que'] %> | ||
,"run_size": <%= num_messages['run'] %> | ||
,"done_size": <%= num_messages['done'] %> | ||
,"err_size": <%= num_messages['err'] %> | ||
,"relayed_size": <%= num_messages['relayed'] %> | ||
<% end %> | ||
<%- status = qc.status -%> | ||
{"status":"<%= status -%>" | ||
<%- if status != 'DOWN' -%> | ||
,"uptime":<%= qc.uptime -%> | ||
<%- num_messages = qc.num_messages -%> | ||
,"prep_size":<%= num_messages['prep'] -%> | ||
,"que_size":<%= num_messages['que'] -%> | ||
,"run_size":<%= num_messages['run'] -%> | ||
,"done_size":<%= num_messages['done'] -%> | ||
,"err_size":<%= num_messages['err'] -%> | ||
,"relayed_size":<%= num_messages['relayed'] -%> | ||
<%- end -%> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters