Skip to content

v0.2.47..v0.2.48 changeset JobStatusManagerImpl.java

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/hoot-services/src/main/java/hoot/services/job/JobStatusManagerImpl.java b/hoot-services/src/main/java/hoot/services/job/JobStatusManagerImpl.java
index b087c63..1865bbd 100644
--- a/hoot-services/src/main/java/hoot/services/job/JobStatusManagerImpl.java
+++ b/hoot-services/src/main/java/hoot/services/job/JobStatusManagerImpl.java
@@ -47,6 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
 import hoot.services.command.Command;
 import hoot.services.command.ExternalCommand;
 import hoot.services.models.db.CommandStatus;
+import hoot.services.utils.DbUtils;
 
 
 @Component
@@ -70,6 +71,7 @@ public class JobStatusManagerImpl implements JobStatusManager {
             newJobStatus.setResourceId(job.getMapId());
             Timestamp ts = new Timestamp(System.currentTimeMillis());  //Is this UTC?
             newJobStatus.setStart(ts);
+            newJobStatus.setParentId(job.getParentId());
 
             // We only get the external command count because they take the longest to run so they have
             // the biggest impact on the math for job progress
Clone this wiki locally