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

拟墨画扇 提交于 2019-12-05 09:20:35

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/29156098/is-there-a-way-to-force-a-heroku-dyno-to-sleep

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!