I’ve tracked this down to the instances being killed due to memory issues. It seems that WEB_CONCURRENCY
is being set to "28"
for whatever reason.
I’m still having issues with secrets but the reversion to the original Heroku values doesn’t seem to be happening.