createRandomProcessingInterval()
Home > @backstage/plugin-catalog-backend
> createRandomProcessingInterval
Creates a function that returns a random processing interval between minSeconds and maxSeconds.
Signature:
function createRandomProcessingInterval(options: {
minSeconds: number;
maxSeconds: number;
}): ProcessingIntervalFunction;
Parameters
Parameter | Type | Description |
---|---|---|
options | { minSeconds: number; maxSeconds: number; } |
Returns:
A ProcessingIntervalFunction that provides the next processing interval