Skip to content

Commit

Permalink
Add missing continue as new
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau committed Feb 24, 2022
1 parent 77ea0e0 commit 96067af
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,13 @@ private CancellationScope generateSyncWorkflowRunnable(ConnectionUpdaterInput co
workflowInternalState.getJobId(),
workflowInternalState.getAttemptId()));
reportFailure(connectionUpdaterInput, standardSyncOutput);
prepareForNextRunAndContinueAsNew(connectionUpdaterInput);
} else {
workflowInternalState.getFailures().add(
FailureHelper.unknownOriginFailure(childWorkflowFailure.getCause(), workflowInternalState.getJobId(),
workflowInternalState.getAttemptId()));
reportFailure(connectionUpdaterInput, standardSyncOutput);
prepareForNextRunAndContinueAsNew(connectionUpdaterInput);
}
}
});
Expand Down

0 comments on commit 96067af

Please sign in to comment.