IN PROGRESS - BATCH-518: clean up the *Or* repository methods
saveOrUpdate(StepExecution) split to save and update
This commit is contained in:
@@ -111,7 +111,7 @@ public class MessageOrientedStep extends AbstractStep {
|
||||
else {
|
||||
executionContext.putString(WAITING, "true");
|
||||
// TODO: need these two lines to be atomic
|
||||
getJobRepository().saveOrUpdate(stepExecution);
|
||||
getJobRepository().update(stepExecution);
|
||||
requestChannel.send(new GenericMessage<JobExecutionRequest>(request));
|
||||
waitForReply(request.getJobId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user