Closed masci closed 1 day ago
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
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.