At console you could do:
heroku restart
If you use puma, you can use puma_worker_killer. Another tool is called whacamole (intro). Note whacamole should NOT use together with Heroku’s preboot feature.
I’m still using puma_worker_killer
at the moment.