mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -03:30
Merge pull request #3264 from kialam/status-service-on-success
Call `this.sync` when we receive a ws complete message. Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -810,7 +810,6 @@ function OutputIndexController (
|
||||
onStop () {
|
||||
lockFollow = true;
|
||||
stopFollowing();
|
||||
stopListening();
|
||||
status.updateStats();
|
||||
status.dispatch();
|
||||
status.sync();
|
||||
|
||||
@@ -95,6 +95,9 @@ function JobStatusService (moment, message) {
|
||||
|
||||
if (isJobStatusEvent) {
|
||||
this.setJobStatus(data.status);
|
||||
if (JOB_STATUS_FINISHED.includes(data.status)) {
|
||||
this.sync();
|
||||
}
|
||||
this.dispatch();
|
||||
} else if (isProjectStatusEvent) {
|
||||
this.setProjectStatus(data.status);
|
||||
|
||||
Reference in New Issue
Block a user