mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
display client finish time for incomplete job statuses
This commit is contained in:
@@ -107,10 +107,8 @@ function JobStatusService (moment, message) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.isExpectingStatsEvent = () => (
|
this.isExpectingStatsEvent = () => (this.jobType === 'job') ||
|
||||||
(this.jobType === 'job') ||
|
(this.jobType === 'project_update');
|
||||||
(this.jobType === 'project_update')) &&
|
|
||||||
(!_.includes(INCOMPLETE, this.state.status));
|
|
||||||
|
|
||||||
this.updateStats = () => {
|
this.updateStats = () => {
|
||||||
this.updateHostCounts();
|
this.updateHostCounts();
|
||||||
@@ -155,7 +153,10 @@ function JobStatusService (moment, message) {
|
|||||||
this.setJobStatus = status => {
|
this.setJobStatus = status => {
|
||||||
this.state.status = status;
|
this.state.status = status;
|
||||||
|
|
||||||
if (!this.isExpectingStatsEvent() && _.includes(FINISHED, status)) {
|
const isIncomplete = _.includes(INCOMPLETE, status);
|
||||||
|
const isFinished = _.includes(FINISHED, status);
|
||||||
|
|
||||||
|
if ((this.isExpectingStatsEvent() && isIncomplete) || isFinished) {
|
||||||
if (this.latestTime) {
|
if (this.latestTime) {
|
||||||
this.setFinished(this.latestTime);
|
this.setFinished(this.latestTime);
|
||||||
if (!this.state.started && this.state.elapsed) {
|
if (!this.state.started && this.state.elapsed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user