We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c443bd commit e95ad11Copy full SHA for e95ad11
1 file changed
sdk/src/main/java/software/amazon/lambda/durable/operation/ChildContextOperation.java
@@ -150,8 +150,8 @@ private void checkpointSuccess(T result) {
150
private void handleChildContextFailure(Throwable exception) {
151
exception = ExceptionHelper.unwrapCompletableFuture(exception);
152
if (exception instanceof SuspendExecutionException) {
153
- // The execution is going to suspend. do nothing
154
- return;
+ // Rethrow Error immediately — do not checkpoint
+ ExceptionHelper.sneakyThrow(exception);
155
}
156
if (exception instanceof UnrecoverableDurableExecutionException) {
157
terminateExecution((UnrecoverableDurableExecutionException) exception);
0 commit comments