core.medplumclientoptions.maxretrytime
Home > @medplum/core > MedplumClientOptions > maxRetryTime
MedplumClientOptions.maxRetryTime property
The maximum time in milliseconds to wait between retries for failed requests.
When the client encounters a rate-limited response (HTTP 429) or a server error (HTTP 5xx), it will automatically retry the request after a delay. The delay is calculated using an exponential backoff strategy, and this setting defines the maximum delay time.
If the retry delay exceeds this maximum time, the client will not retry the request and will return the error response to the caller immediately. Setting this value to zero disables retries for failed requests.
Default value is 2000 (2 seconds).
Signature:
maxRetryTime?: number;