Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Reset the reason when task retry #936

Merged
merged 2 commits into from
Jan 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Task retry(TaskDef taskDefinition, WorkflowTask workflowTask, Task task, Workflo
rescheduled.setPollCount(0);
rescheduled.setInputData(new HashMap<>());
rescheduled.getInputData().putAll(task.getInputData());

rescheduled.setReasonForIncompletion("");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, but set it to null instead.


if (StringUtils.isNotBlank(task.getExternalInputPayloadStoragePath())) {
rescheduled.setExternalInputPayloadStoragePath(task.getExternalInputPayloadStoragePath());
Expand Down