UNPKG

@cumulus/aws-client

Version:
11 lines 533 B
/** * 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