mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 02:47:35 -02:30
This commit is contained in:
@@ -194,6 +194,11 @@ export default
|
|||||||
"<p><i class=\"fa fa-circle failed-hosts-color\"></i> Failed</p>\n";
|
"<p><i class=\"fa fa-circle failed-hosts-color\"></i> Failed</p>\n";
|
||||||
function openSocket() {
|
function openSocket() {
|
||||||
$rootScope.event_socket.on("job_events-" + job_id, function(data) {
|
$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) {
|
if (api_complete && data.id > lastEventId) {
|
||||||
scope.waiting = false;
|
scope.waiting = false;
|
||||||
data.event = data.event_name;
|
data.event = data.event_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user