@cumulus/aws-client
Version:
Utilities for working with AWS
11 lines • 533 B
TypeScript
/**
* Introduces random jitter delay to stagger concurrent S3 operations.
* This helps prevent AWS S3 SlowDown errors when many operations occur simultaneously.
*
* @param maxJitterMs - Maximum jitter time in milliseconds (0-59000).
* If 0, no delay is applied.
* @param operation - Optional operation name for logging context
* @returns A Promise that resolves after the random delay
*/
export declare const applyS3Jitter: (maxJitterMs: number, operation?: string) => Promise<void>;
//# sourceMappingURL=s3-jitter.d.ts.map