Skip to content

Commit

Permalink
Add Command column
Browse files Browse the repository at this point in the history
Close #31
  • Loading branch information
chovanecm committed May 3, 2017
1 parent 683baa1 commit 6bf1229
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sacredboard/static/scripts/runs/runTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ define(["bootstrap", "datatables", "datatables-bootstrap", "runs/detailView", "j
"\" sacred-is-alive=\"" + row.is_alive + "\">&block;</span> " + data;
}
},
{"data": "command", "name": "command"},
{"data": "start_time", "name": "start_time"},
{"data": "heartbeat", "name": "heartbeat"},
{"data": "hostname", "name": "hostname"},
Expand All @@ -105,7 +106,7 @@ define(["bootstrap", "datatables", "datatables-bootstrap", "runs/detailView", "j
/**
* Sort by experiment heartbeat
*/
order: [["4", "desc"]]
order: [["5", "desc"]]
};
// Init DataTables
var table = jqRuns.DataTable(config);
Expand Down
1 change: 1 addition & 0 deletions sacredboard/templates/api/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{
"id": {{run._id | tostr | default | tojson}},
"experiment_name": {{run.experiment.name | default | tojson}},
"command": {{run.command | default | tojson}},
"status": {{run.status | default | tojson | safe}},
"is_alive": {{run.heartbeat | default | timediff | detect_alive_experiment | tojson }},
"start_time": {{run.start_time | default | format_datetime | tojson}},
Expand Down
4 changes: 4 additions & 0 deletions sacredboard/templates/runs.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,16 @@
<span class="run-queued">&block;</span> <input type="checkbox"
data-bind="checkedValue: predefinedFilters['run-queued'], checked: statusFilters.filters">
Queued



</caption>
<thead>
<tr>
<th><!-- expand / hide button --></th>
<th>Id</th>
<th>Experiment name</th>
<th>Command</th>
<th>Start time</th>
<th>Last activity</th>
<th>Hostname</th>
Expand Down

0 comments on commit 6bf1229

Please sign in to comment.