6 ms·
Not sure if you have done this already but: If you rotate your database, redis and email provider passwords/tokens, the zombie process might still be running bu
by lorenzk 3y ago
Not sure if you have done this already but: If you rotate your database, redis and email provider passwords/tokens, the zombie process might still be running but will not have any effects any more.
- domh 3y agoThis is a really smart idea! If you can't kill the process, make it completely ineffective by making it's api calls fail.
- shibel 3y agoOP here: that’s a good idea that did come up to mind (specifically rotating the Redis queue credentials). I was just sure Heroku’s gonna take care of this shit by now. BTW, I’m not 100% sure it’ll work: if Heroku updates that zombie dyno’s environment variables, it may still have access to the new credentials :/ (My Redis instance is also a Heroku add-on)
- gsa 3y agoRotate a token, but also mangle it and change to the correct one in code. eg: change database url from `postgres://` to `invalid://` and replace it in code.
- neurostimulant 3y ago> BTW, I’m not 100% sure it’ll work: if Heroku updates that zombie dyno’s environment variables, it may still have access to the new credentials :/ (My Redis instance is also a Heroku add-on) If the configuration only read once during startup, the celery process won't use the new configuration unless it's restarted, right?
- DangitBobby 3y agoHeroku will automatically restart dynos if you change environment variables.