3 ms·
Even though the article sounds like it's written by educated person, it puzzles me that the author: > Installing packages with APT is not atomic: APTs updates
by skratlo 6y ago
Even though the article sounds like it's written by educated person, it puzzles me that the author:
> Installing packages with APT is not atomic: APTs updates files in-place one by one. Because we start Python processes many times per second, if one started during a deployment, it could import a mix of the old and new code. This regularly lead to puzzling bugs
Don't you stop all your services in preinstall and start them again in postinstall? Or, if you're packaging your python libs in deb pkgs, just stop the services before upgrading the system and start them again once you're done.
- ruuda 6y agoThis part is about batch jobs that we start, not about daemons. The APT package would take about a minute to install, but some of these batch jobs are started by a user interaction, and we can't delay them for that long.