Skip to content

Commit

Permalink
Make parentExecutionId available to BeforeTask methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cppwfs committed Dec 18, 2023
1 parent a2dca50 commit 7cd9863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ private TaskExecution getTaskExecutionCopy(TaskExecution taskExecution) {
return new TaskExecution(taskExecution.getExecutionId(), taskExecution.getExitCode(),
taskExecution.getTaskName(), startTime, endTime, taskExecution.getExitMessage(),
Collections.unmodifiableList(taskExecution.getArguments()), taskExecution.getErrorMessage(),
taskExecution.getExternalExecutionId());
taskExecution.getExternalExecutionId(), taskExecution.getParentExecutionId());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public TaskExecution createTaskExecution(String taskName, LocalDateTime startTim
long nextExecutionId = getNextExecutionId();

TaskExecution taskExecution = new TaskExecution(nextExecutionId, null, taskName, startTime, null, null,
arguments, null, externalExecutionId);
arguments, null, externalExecutionId, parentExecutionId);

final MapSqlParameterSource queryParameters = new MapSqlParameterSource()
.addValue("taskExecutionId", nextExecutionId, Types.BIGINT)
Expand Down

0 comments on commit 7cd9863

Please sign in to comment.