Is there a way to force a Heroku Dyno to sleep?

jeffjv picture jeffjv · Mar 19, 2015 · Viewed 10.2k times · Source

I'm trying to debug an API issue I have that occurs when my app tries to access a sleeping Heroku Dyno. The problem is it takes a while for a dyno to naturally sleep so it really slows down the debug process.

I know how to turn off a dyno but the bug I'm try to fix seems to happen when the app makes a request to a sleeping dyno that doesn't immediately respond, yet eventually responds.

Answer

jeffjv picture jeffjv · Mar 21, 2015

I got the definitive answer from a Heroku engineer. It's no, you can't force a dyno to sleep.