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

Added auto reconnect and no team state flags #315

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

mitchmcdee
Copy link
Contributor

The slack client library we're using provides auto-reconnect logic for us that we weren't using. This PR adds that logic through setting the auto_reconnect flag and also sets the with_team_state flag to False for a lighter connection (which is recommended for larger teams such as ours)

See: https://slackapi.github.io/python-slackclient/real_time_messaging.html#rtm-start-vs-rtm-connect

@mitchmcdee
Copy link
Contributor Author

This was fixed in Mar 31 ish as can be seen here slackapi/python-slack-sdk#118

@mitchmcdee mitchmcdee requested a review from TRManderson June 13, 2018 01:53
@TRManderson
Copy link
Member

Didn't realise there was good shit in rtm.start! Doing data stores is probably a better long-term approach though. LGTM 👍

@mitchmcdee mitchmcdee merged commit 811ef19 into UQComputingSociety:master Jun 13, 2018
@mitchmcdee mitchmcdee deleted the reconnect_fix branch June 13, 2018 03:08
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.

2 participants