Skip to content

[Fix #1226] Waiting for pending writes before close#1227

Merged
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1226
Mar 16, 2026
Merged

[Fix #1226] Waiting for pending writes before close#1227
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1226

Conversation

@fjtirado
Copy link
Copy Markdown
Collaborator

Fix #1226

Copilot AI review requested due to automatic review settings March 16, 2026 13:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #1226 by ensuring that when persistence is active and the application is closed, the close() method waits for all pending asynchronous writes to complete before returning control to the caller.

Changes:

  • Added futuresMap.values().forEach(future -> future.join()) in close() to block until all pending CompletableFuture writes are finished.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copilot AI review requested due to automatic review settings March 16, 2026 13:35
@fjtirado fjtirado force-pushed the Fix_#1226 branch 2 times, most recently from f8a30c3 to 8318ecf Compare March 16, 2026 13:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@fjtirado fjtirado merged commit bb585e9 into serverlessworkflow:main Mar 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Application close should wait for pending writes to finish before returning

2 participants