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

REST API does not suppress KeyboardInterrupt #259

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

maxfischer2781
Copy link
Member

@maxfischer2781 maxfischer2781 commented Aug 15, 2022

This PR is a workaround for a bug in uvicorn that suppresses KeyboardInterrupt. It allows clean shutdown in both the current cobald release and master version.

There is no thorough test for this change. The required integration test seemed a bit much considering that this workaround will become obsolete once the upstream fix is released.

Closes MatterMiners/cobald#113.

@giffels giffels requested review from giffels, a team and eileen-kuehn and removed request for a team August 15, 2022 15:42
Copy link
Member

@eileen-kuehn eileen-kuehn left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Copy link
Member

@giffels giffels left a comment

Choose a reason for hiding this comment

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

It simply works! Thanks for working on this! Let's keep fingers crossed that your upstream PR will be accepted.

@giffels giffels merged commit bcbfdd0 into MatterMiners:master Aug 15, 2022
giffels added a commit to giffels/tardis that referenced this pull request Feb 24, 2023
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.

CTRL+C not working anymore on current master
3 participants