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

fix: race condition when engine was not ready and terminate was called. #2567

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

barak007
Copy link
Collaborator

@barak007 barak007 commented Sep 12, 2024

In tests it's possible that the termination request was fired before main entry point was finished.
we used to only register to the termination event after it was finished and we missed the terminate event.

There is no test in this PR since there is a tech-debt to allow for such tests: #2569

@wixplosives wixplosives deleted a comment from barak007 Sep 12, 2024
@idoros idoros self-requested a review September 12, 2024 11:05
@barak007 barak007 merged commit 7d449e6 into master Sep 12, 2024
6 checks passed
@barak007 barak007 deleted the barak/fix-termination-race branch September 12, 2024 11:11
console.log('[${env.name}]: Terminating');
return engine.shutdown();
} catch (e) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

would this not swallow shutdown errors we would like to see?

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.

3 participants