Skip to content

Conversation

@aludwiko
Copy link
Contributor

References https://github.com/lightbend/akka-runtime/issues/4470

tested manually with a custom workflow implementation

@aludwiko aludwiko marked this pull request as draft November 11, 2025 09:22
@aludwiko aludwiko marked this pull request as ready for review November 11, 2025 09:32
@johanandren johanandren changed the title fix: handling workflow step call expections fix: handling workflow step call exceptions Nov 11, 2025
Copy link
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM, test coverage to messy to add?

.asInstanceOf[JFunc[Any, CompletionStage[Any]]]
.apply(decodedInput)
.asScala
}.flatten
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess wrapping is to make sure it always fails the future and doesn't throw on the calling thread?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly

@aludwiko aludwiko merged commit c47b4e4 into main Nov 11, 2025
55 checks passed
@aludwiko aludwiko deleted the 4470-kalix-workflow-asynccall-should-catch-exceptions-outside-the-future-composition branch November 11, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants