Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 78 forks source link

Add retry support in v4 #1150

Closed dolauli closed 1 year ago

dolauli commented 1 year ago

There are two kinds of retries.

  1. Retry on error Default retry time is 3, but can be overridden by env variable PS_HTTP_MAX_RETRIES and AZURE_PS_HTTP_MAX_RETRIES (most high priority)
  2. retry on 429 with retry-after Default retry time will be max(int), but can be overridden by env variable PS_HTTP_MAX_RETRIES_FOR_429 and AZURE_PS_HTTP_MAX_RETRIES_FOR_429 (most high priority)