1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

update job detail elapsed time on job event socket msgs, resolves #1559 (#1885)

This commit is contained in:
Leigh 2016-05-10 16:27:28 -04:00
parent fda5563aa8
commit 74fffce7af

View File

@ -194,6 +194,11 @@ export default
"<p><i class=\"fa fa-circle failed-hosts-color\"></i> Failed</p>\n";
function openSocket() {
$rootScope.event_socket.on("job_events-" + job_id, function(data) {
// update elapsed time on each event received
scope.job_status.elapsed = GetElapsed({
start: scope.job.created,
end: Date.now()
});
if (api_complete && data.id > lastEventId) {
scope.waiting = false;
data.event = data.event_name;