Skip to content
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

Add delay to Simulation Engine termination #3184

Merged
merged 3 commits into from Apr 1, 2024

Conversation

jafermarq
Copy link
Contributor

@jafermarq jafermarq commented Apr 1, 2024

If a Simulation terminates very soon after launching it there is not enough time for the ServerApp to initialise itself fully. This makes it complex to terminate it. This PR adds a small time delay (10 seconds) before raising an exception in the Simulation Engine that will shut down everything.

This is an effective solution to the issue when the path to the ClientApp module is not found (a check done before actually starting the simulation)

@jafermarq jafermarq added the simulation An issue related to Flower's simulation label Apr 1, 2024
@jafermarq jafermarq marked this pull request as ready for review April 1, 2024 09:45
@danieljanes danieljanes enabled auto-merge (squash) April 1, 2024 13:44
@danieljanes danieljanes merged commit 41b491b into main Apr 1, 2024
28 checks passed
@danieljanes danieljanes deleted the simple-handling-loadclientapp-error-simulation branch April 1, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simulation An issue related to Flower's simulation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants