You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pushed the bot to Heroku. It works ok for a while. But when left unused, it kinda goes to sleep. It doesnot respond at all after a while. No error or exceptions are shown in the logs either.
Have you faced this issue?
Srini
The text was updated successfully, but these errors were encountered:
If an app has a web dyno, and that web dyno receives no traffic in a 30 minute period, the web dyno will sleep. In addition to the web dyno sleeping, the worker dyno (if present) will also sleep.
Free dynos do not consume Free dyno hours while sleeping.
If a sleeping web dyno receives web traffic, it will become active again after a short delay. If the app has a worker dyno that was scaled up before sleeping, it will be scaled up again too.
...
Accounts are given a base of 550 hours each month in which your Free dynos can run. In addition to these base hours, accounts which verify with a credit card will receive an additional 450 hours of Free dyno quota.
An idea, if you only have 550 hours, you can game it a bit with cron and curl to 'ping' your web app during the day, and leave it idle during the night.
Hi Matt,
I pushed the bot to Heroku. It works ok for a while. But when left unused, it kinda goes to sleep. It doesnot respond at all after a while. No error or exceptions are shown in the logs either.
Have you faced this issue?
Srini
The text was updated successfully, but these errors were encountered: