File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
temporal-sdk/src/main/java/io/temporal/internal/sync Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -817,6 +817,11 @@ public <R> ExecuteNexusOperationOutput<R> executeNexusOperation(
817
817
? dataConverter .fromPayload (
818
818
b .get (), input .getResultClass (), input .getResultType ())
819
819
: null );
820
+ // We register an empty handler to make sure that this promise is always "accessed" and never
821
+ // leads to a log about it being completed exceptionally and non-accessed.
822
+ // The "main" operation promise is the one returned from the execute method and that
823
+ // promise will always be logged if not accessed.
824
+ operationPromise .handle ((ex , failure ) -> null );
820
825
return new ExecuteNexusOperationOutput <>(result , operationPromise );
821
826
}
822
827
You can’t perform that action at this time.
0 commit comments