Skip to main content

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

ParameterTypeDescription
options{ minSeconds: number; maxSeconds: number; }

Returns:

ProcessingIntervalFunction

A ProcessingIntervalFunction that provides the next processing interval