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

honor HTTP retry-after header for better success #33

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

manos
Copy link
Contributor

@manos manos commented Sep 4, 2019

Instead of backing off more after successive failures, it seems to work better to just honor the retry-after that slack sends (upload then succeeds on the next attempt).

Interesting tidbit: the upload endpoint seems to be limited to 20/min, as once you hit the limit, it's always waiting 3 seconds between uploads.

@smashwilson
Copy link
Owner

Neat, good find 👍

@smashwilson smashwilson merged commit cbc44fa into smashwilson:master Sep 4, 2019
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