We have a custom Frappe based app. Often times we’re required to deploy quick fixes (e.g. fix to reports, tiny bug fixes in Py code) on Live Server under load. Currently we have to run sudo supervisorctl reload which sends out HTTP status 500 for 5-10 seconds to all users. Additionally there is risk due to abrupt restart of a worker servicing an active request.
Is there a way of gracefully deploying such tiny changes to Py files without having to do a full reload?
Yes. But when you have to deploy an emergency fix in production without downtime, in those cases graceful reload comes handy. E.g. of such scenarios are a fix in query of report, some misfiring validations, etc