[ARVADOS] updated: a441b0496a0f217856f23ae084502afdba959e81

git at public.curoverse.com git at public.curoverse.com
Thu Jun 12 15:11:56 EDT 2014


Summary of changes:
 apps/workbench/app/views/jobs/_show_log.html.erb | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

       via  a441b0496a0f217856f23ae084502afdba959e81 (commit)
      from  c9ba2ec79e3e38bc3e1adc93173d82f1b763976b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a441b0496a0f217856f23ae084502afdba959e81
Author: peter <peter at swyman.shell.4xphq.arvadosapi.com>
Date:   Thu Jun 12 19:11:53 2014 +0000

    2883: Added filtering for crunchstat, slurm log lines.

diff --git a/apps/workbench/app/views/jobs/_show_log.html.erb b/apps/workbench/app/views/jobs/_show_log.html.erb
index 7579f2b..042e5cb 100644
--- a/apps/workbench/app/views/jobs/_show_log.html.erb
+++ b/apps/workbench/app/views/jobs/_show_log.html.erb
@@ -17,8 +17,19 @@ function addToLogViewer(logViewer, lines) {
   var type = "";
   if (v11 != ' ') {
     if (/^stderr /.test(message)) {
-        type = "task-output";
-        message = message.substr(7);
+        if (/^stderr crunchstat: /.test(message)) {
+          type = "crunchstat";
+          message = message.substr(19);
+        } else if (/^stderr srun: /.test(message)) {
+          type = "task-dispatch";
+          message = message.substr(7);
+        } else if (/^stderr slurmd/.test(message)) {
+          type = "task-dispatch";
+          message = message.substr(7);
+        } else {
+          type = "task-output";
+          message = message.substr(7);
+        }
     } else {
         type = "task-dispatch";
     }
@@ -48,7 +59,8 @@ function addToLogViewer(logViewer, lines) {
 
 (function() {
 var logViewer = new List('log-viewer', {
-  valueNames: [ 'id', 'timestamp', 'taskid', 'message', 'type']
+  valueNames: [ 'id', 'timestamp', 'taskid', 'message', 'type'],
+  page: 10000,
 });
 
 var makeFilter = function() {
@@ -127,6 +139,9 @@ $("#sort-by-task").on("change", function() {
   <div class="checkbox-inline">
     <label><input id="show-task-output" type="checkbox" checked="true" class="toggle-filter"> Show task output</label>
   </div>
+  <div class="checkbox-inline">
+    <label><input id="show-crunchstat" type="checkbox" checked="true" class="toggle-filter"> Show compute usage</label>
+  </div>
 
 <div class="pull-right">
     <button id="filter-all" class="btn">
@@ -160,7 +175,7 @@ $("#sort-by-task").on("change", function() {
 
 </div>
 
-<% !if @object.log %>
+<% if !@object.log %>
   This job is still running.  The job log will be available when the job is complete.
 <% end %>
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list