herokudyno

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


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.


Solution

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