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

Improve our slack api error handling and backoff #4878

Merged
merged 12 commits into from
Jun 27, 2024

Conversation

kevgliss
Copy link
Contributor

Removes sleep, defaults to exponential backoff. Respect slack API rate limiting.

@kevgliss kevgliss requested review from jschroth and wssheldon June 25, 2024 22:17
@kevgliss kevgliss added the enhancement New feature or request label Jun 25, 2024
Copy link
Contributor

@jschroth jschroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nits

src/dispatch/plugins/dispatch_slack/service.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_slack/service.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_slack/service.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_slack/service.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_slack/service.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jschroth jschroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there is a small logic error

src/dispatch/plugins/dispatch_slack/service.py Outdated Show resolved Hide resolved
@kevgliss kevgliss merged commit aa168c9 into master Jun 27, 2024
7 checks passed
@kevgliss kevgliss deleted the chore/improve-slack-backoff branch June 27, 2024 18:19
metroid-samus pushed a commit that referenced this pull request Sep 25, 2024
* Improve our slack api error handling and backoff

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: David Whittaker <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: Jason Schroth <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: David Whittaker <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: Jason Schroth <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: Jason Schroth <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: Jason Schroth <[email protected]>

* Changes based on feedback

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: Jason Schroth <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/service.py

* Update src/dispatch/plugins/dispatch_slack/service.py

Co-authored-by: Will Sheldon <[email protected]>

---------

Co-authored-by: David Whittaker <[email protected]>
Co-authored-by: Jason Schroth <[email protected]>
Co-authored-by: Will Sheldon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants