Shopify / shipit-engine

Deployment coordination
https://shopify.engineering/introducing-shipit
MIT License
1.41k stars 144 forks source link

Convert retry-after header string to seconds #1345

Closed ruionweb closed 4 months ago

ruionweb commented 4 months ago

Retry header returns a string. Convert it to an int and then seconds. Following this: https://api.rubyonrails.org/v4.2.5/classes/ActiveJob/Enqueuing.html guide

Retry header is the number seconds: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#exceeding-the-rate-limit