jayvdb added a comment.
I was thinking it should be in HttpProcessor.run , which has a try..finally , .. but not catch. depending on how bad the exception is (and it is best to assume the worst, like some state has been irreparably altered: https://gerrit.wikimedia.org/r/#/c/178789/ ), it would be sensible to replace the dead http worker with a new one.
TASK DETAIL https://phabricator.wikimedia.org/T78123
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, valhallasw, pywikipedia-bugs