-
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.
Updated code to push towards the web server.
- Loading branch information
Showing
6 changed files
with
167 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,112 @@ | ||
<html> | ||
<head> | ||
<title>QueueStick Status Page</title> | ||
<link rel="stylesheet" href="/stylesheets/reset-fonts-grids.css" type="text/css" /> | ||
<link rel="stylesheet" href="/stylesheets/main.css" type="text/css" /> | ||
|
||
<script type="text/javascript" src="/js/jquery.js"></script> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('li.error').click(function (event) { | ||
$('li.error-detail').hide(); | ||
$('li#' + this.id + '-detail').slideDown('slow'); | ||
|
||
event.preventDefault(); | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div id="doc2" class="yui-t7"> | ||
<div id="hd" class="divider" role="banner"> | ||
<h1>queue_stick</h1> | ||
<div class="yui-g" id="header-container"> | ||
<div class="yui-u first"> | ||
<em>Job started by <span class="network"><%= @username %></span> <%= @start_time %></em></li> | ||
</div> | ||
<div class="yui-u"> | ||
<em>Running on IP <span class="network">TODO</span> / <span class="network"><%= @hostname %></span><br />Port <span class="network">TODO</span></em> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="bd" role="main"> | ||
<div class="yui-g padded"> | ||
<div class="yui-u first counters"> | ||
<h2>Messages processed</h2> | ||
<table id="messages_processed" class="counter"> | ||
<thead> | ||
<tr> | ||
<th>Thread</th> | ||
<th>Total</th> | ||
<th><5 mins</th> | ||
<th><10 mins</th> | ||
<th><30 mins</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td class="blue">VideoTranscoder<#0x8389afd></td> | ||
<td>300</td> | ||
<td>200</td> | ||
<td>100</td> | ||
<td>20</td> | ||
</tr> | ||
<tr> | ||
<td class="blue">VideoTranscoder<#0x8389afc></td> | ||
<td>345</td> | ||
<td>201</td> | ||
<td>150</td> | ||
<td>25</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<th class="left"><strong>Totals</strong></td> | ||
<th>645</td> | ||
<th>401</td> | ||
<th>250</td> | ||
<th>45</td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</div> | ||
<div class="yui-u"> | ||
<h1>Errors (3)</h1> | ||
<ul> | ||
<li class="error" id="error-1"> | ||
<span class="klass">ArgumentError</span> | | ||
<span class="time">5 minutes ago</span> | | ||
<span class="desc">Wrong number of arguments (0 for 1...</span> | ||
</li> | ||
<li class="error-detail" id="error-1-detail"> | ||
<ul> | ||
<li><strong>Message ID:</strong> 94939002</li> | ||
<li><strong>Timestamp:</strong> June 14, 2009</li> | ||
</ul> | ||
<pre> | ||
ArgumentError: ArgumentError | ||
from (irb):1 | ||
</pre> | ||
</li> | ||
<li class="error" id="error-2"> | ||
<span class="klass">ArgumentError</span> | | ||
<span class="time">7 minutes ago</span> | | ||
<span class="desc">Wrong number of arguments (0 for 1...</span> | ||
</li> | ||
<li class="error" id="error-3"> | ||
<span class="klass">ArgumentError</span> | | ||
<span class="time">9 minutes ago</span> | | ||
<span class="desc">Wrong number of arguments (0 for 2...</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="ft" role="contentinfo"> | ||
queue_stick is an open-source project of <a href="http://bitwax.cd">bitwax.cd</a>, released under the MIT license<br /> | ||
<a href="http://github.com/dbalatero/queue_stick/tree/master">browse the source on GitHub</a> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
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,5 +1,6 @@ | ||
module QueueStick | ||
class Worker | ||
# TODO(dbalatero): configurable? | ||
MAX_ERRORS = 50 | ||
|
||
attr_reader :errors | ||
|
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