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: make SimpleMessageQueue server cancellable #394

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

masci
Copy link
Member

@masci masci commented Nov 29, 2024

Several services don't shutdown properly, and while this is not a problem when you tear down the whole process, it's becoming an issue while we start moving towards a more distributed architecture, where services are expected to come and go (think of orchestrators).

This PR makes SimpleMessageQueue.launch_server() cancellable, more to come.

@coveralls
Copy link

Coverage Status

coverage: 72.924% (-0.06%) from 72.985%
when pulling 8dc684a on massi/simplequeue-shutdown
into d396260 on main.

Copy link
Collaborator

@logan-markewich logan-markewich left a comment

Choose a reason for hiding this comment

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

Ah, so basically anything with a lifespan will need this change?

@masci
Copy link
Member Author

masci commented Nov 29, 2024

Ah, so basically anything with a lifespan will need this change?

It would work anyways, but I'd say, unless the lifespan is needed for also other purposes, keeping the cancelling logic close to the "server launch" logic is easier to maintain

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