Skip to main content
Version: Next

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:**

ProcessingIntervalFunction

A ProcessingIntervalFunction that provides the next processing interval