RetryOptions
interface RetryOptions
attempts caps the tries, delay is the wait before the second one, multiplier grows each later wait and maxDelay caps a single one.
shouldRetry receives the error and the attempt that failed and decides whether repeating is worth it at all; sleep performs the wait, defaulting to Utilities.sleep where it exists, which is what lets a test run without waiting.
Examples
Shape
const options = {
attempts: 4,
delay: 500,
multiplier: 2,
maxDelay: 10000
};
See also
Source
23 September 2026
This documentation was generated with AI (Claude) from the library's source code.