This commit is contained in:
tyner 2024-04-12 14:11:53 -04:00
parent 11e4ef8319
commit 8e76804d39
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ public class JobInstanceProcessor {
cleanupInstance(theInstance); cleanupInstance(theInstance);
triggerGatedExecutions(theInstance, jobDefinition); triggerGatedExecutions(theInstance, jobDefinition);
JobInstance updatedInstance = myJobPersistence.fetchInstance(theInstance.getInstanceId()).orElseThrow(); JobInstance updatedInstance =
myJobPersistence.fetchInstance(theInstance.getInstanceId()).orElseThrow();
if (theInstance.hasGatedStep()) { if (theInstance.hasGatedStep()) {
JobWorkCursor<?, ?, ?> jobWorkCursor = JobWorkCursor.fromJobDefinitionAndRequestedStepId( JobWorkCursor<?, ?, ?> jobWorkCursor = JobWorkCursor.fromJobDefinitionAndRequestedStepId(
jobDefinition, updatedInstance.getCurrentGatedStepId()); jobDefinition, updatedInstance.getCurrentGatedStepId());