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

Should Uploading to S3 automatically retry when receiving a HTTP Error 503: Slow Down? #241

Open
Ahuge opened this issue Jan 28, 2021 · 1 comment

Comments

@Ahuge
Copy link

Ahuge commented Jan 28, 2021

Hey,

Just hit this myself when trying to create a Shotgun PublishedFile and include a thumbnail image with it.

It appears that the sg-media-usor-01 got a bit overloaded with traffic and S3 told us (python api) to slow down.

Because I was naively using the create method to also handle my "image" field, I now get an error after the entity has been created, however I don't know what id the created entity has.

My workaround has been to copy out the upload logic from the create method and wrap it in a retry loop with some sleeping, but it is not ideal.

Is this something that I could propose and get merged in if I wrote a proper implementation for it?

Thanks
-Alex

@Ahuge
Copy link
Author

Ahuge commented Jan 28, 2021

Cross posting from the community
https://community.shotgunsoftware.com/t/http-error-503-slow-down/11392

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

No branches or pull requests

1 participant