Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hubot doesn't wakeup #32

Open
WaleedAshraf opened this issue Apr 29, 2017 · 4 comments
Open

Hubot doesn't wakeup #32

WaleedAshraf opened this issue Apr 29, 2017 · 4 comments

Comments

@WaleedAshraf
Copy link

Hubot doesn't wakeup after going to sleep.
My config is

HUBOT_HEROKU_KEEPALIVE_URL:      https://caari.herokuapp.com/
HUBOT_HEROKU_SLEEP_TIME:         1:10
HUBOT_HEROKU_WAKEUP_TIME:        1:40
TZ:                              Asia/Karachi

Logs:

» 29 Apr 2017 01:34:04.684  102 <45>1 2017-04-28T20:34:04.324911+00:00 heroku web.1 - - Idling
» 29 Apr 2017 01:34:04.749  125 <45>1 2017-04-28T20:34:04.325568+00:00 heroku web.1 - - State changed from up to down
» 29 Apr 2017 01:34:05.201  131 <45>1 2017-04-28T20:34:05.130888+00:00 heroku web.1 - - Stopping all processes with SIGTERM
» 29 Apr 2017 01:34:05.812  124 <45>1 2017-04-28T20:34:05.430702+00:00 heroku web.1 - - Process exited with status 0
» 29 Apr 2017 02:27:02.404  104 <45>1 2017-04-28T21:27:02.008938+00:00 heroku web.1 - - Unidling
» 29 Apr 2017 02:27:02.471  131 <45>1 2017-04-28T21:27:02.009285+00:00 heroku web.1 - - State changed from down to starting

There was HTTP post request at 2:27, which started the dyno again.
I think bot should have been up at 1:40, is there something I'm missing?

@treby
Copy link
Collaborator

treby commented Apr 29, 2017

Hi :) Do you use any service to wake hubot up?
Hubot can not wake up by hisself, so you should request hubot by your hand or any services. (see https://github.com/hubot-scripts/hubot-heroku-keepalive#waking-hubot-up )

@WaleedAshraf
Copy link
Author

@treby Thanks I got it,
and If I set
HUBOT_HEROKU_KEEPALIVE_INTERVAL: 0
Does it mean this keepalive script would keep dyno up all the time?

@treby
Copy link
Collaborator

treby commented May 1, 2017

@WaleedAshraf
Copy link
Author

And If I keep wakeup time equal to sleeptime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants