diff options
author | Einat Vinouze <einat.vinouze@intl.att.com> | 2020-05-20 12:00:29 +0300 |
---|---|---|
committer | Einat Vinouze <einat.vinouze@intl.att.com> | 2020-05-21 08:32:30 +0300 |
commit | cb024eb027cb9e0776359a9ee06b1caec4592256 (patch) | |
tree | 0c264aa8b5461d88ab3eb40e2bd35989588145a6 /vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt | |
parent | 19016e3c0951ff994956e93b1c24e412a7ed542e (diff) |
Set JobStatus as COMPLETED_AND_PAUSED when needed so we can present it on instantiationStatus
Issue-ID: VID-821
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
Change-Id: I19328ce643ea984a97dc04183626dea133be517d
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt b/vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt index 194fe4ba2..502d8344d 100644 --- a/vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt +++ b/vid-app-common/src/main/java/org/onap/vid/job/command/WatchChildrenJobsBL.kt @@ -21,11 +21,11 @@ package org.onap.vid.job.command import org.apache.commons.lang3.StringUtils +import org.onap.portalsdk.core.service.DataAccessService import org.onap.vid.job.Job import org.onap.vid.job.Job.JobStatus.* import org.onap.vid.job.impl.JobDaoImpl import org.onap.vid.utils.DaoUtils -import org.onap.portalsdk.core.service.DataAccessService import org.springframework.beans.factory.annotation.Autowired import org.springframework.stereotype.Service import java.util.* @@ -63,6 +63,7 @@ constructor(private val dataAccessService: DataAccessService) { a == COMPLETED_WITH_ERRORS || b == COMPLETED_WITH_ERRORS-> COMPLETED_WITH_ERRORS a == COMPLETED && b.isFailure -> COMPLETED_WITH_ERRORS b == COMPLETED && a.isFailure -> COMPLETED_WITH_ERRORS + a == COMPLETED_AND_PAUSED || b == COMPLETED_AND_PAUSED -> COMPLETED_AND_PAUSED a == COMPLETED || b == COMPLETED -> COMPLETED a.isFailure || b.isFailure -> FAILED else -> COMPLETED_WITH_NO_ACTION |