Skip to content

Fix and improve EngineRunning state #3911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged

Conversation

andimarek
Copy link
Member

@andimarek andimarek commented Apr 10, 2025

Because the engine state updates are side effects, it can happen that the last "NOT_RUNNING" happens after the overall CompletableFuture<ExecutionResult> is completed.
As this is very counterintuitive this PR fixes that edge case with observing the CompletableFuture<ExecutionResult> explicitly.

It also make explicit states for Start and finish the engine.

fixes cases where the CF<ER> is finished before the observer is called for the last time
Copy link
Contributor

Test Results

  313 files    313 suites   53s ⏱️
3 588 tests 3 583 ✅ 5 💤 0 ❌
3 677 runs  3 672 ✅ 5 💤 0 ❌

Results for commit 71c8032.

@bbakerman bbakerman merged commit 04a359a into master Apr 14, 2025
2 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.

2 participants