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

Bot: catch and react to disconnection event #572

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

mistydemeo
Copy link
Contributor

Summary

As described in #536, hubot-slack sometimes appears to disconnect and never come back. There is a disconnect event which occurs specifically when the RTM client has disconnected and will not try again; this is currently not handled by the codebase, so that would explain why what we're seeing is going uncaught. In this PR, I've added a new handler for that method; right now I'm having that close the bot entirely, allowing the running process manager to clean up and restart Hubot.

Requirements (place an x in each [ ])

@CLAassistant
Copy link

CLAassistant commented Jul 30, 2019

CLA assistant check
All committers have signed the CLA.

@aoberoi
Copy link
Contributor

aoberoi commented Jul 30, 2019

@mistydemeo works for an organization that has signed the corporate CLA, so the individual CLA check can be safely ignored.

@aoberoi
Copy link
Contributor

aoberoi commented Jul 30, 2019

CodeCov has aggregated the coverage report for this PR here: https://codecov.io/gh/slackapi/hubot-slack/pull/572

The GitHub / Travis CI integration does not seem to be working as expected. The coverage is satisfactory, and we're clear to merge.

@aoberoi aoberoi merged commit ed96aca into slackapi:master Jul 30, 2019
@mistydemeo mistydemeo deleted the bot_disconnect_when_client_does branch July 30, 2019 17:03
@seratch seratch mentioned this pull request Apr 3, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants