Roblox / tarmac

Command line tool to manage Roblox assets
MIT License
111 stars 25 forks source link

Add retry behavior to work around rate limiting #43

Closed ZoteTheMighty closed 4 years ago

ZoteTheMighty commented 4 years ago

The Roblox upload endpoint will rate-limit, which can cause problems when running Tarmac on large sets of assets. This can be especially troublesome when integrating with CI.

The upload API returns a 429 error when rate limiting occurs, and the budget is per-minute. We should be able to provide Tarmac an optional retry count, so that when it receives a 429 it will wait for one minute, then retry with the last file it was attempting to upload.