Skip to main content
Version: Current

resolveAutocloseConfig

@rotorsoft/act-root


@rotorsoft/act-root / act/src / resolveAutocloseConfig

Function: resolveAutocloseConfig()

resolveAutocloseConfig(options): object

Defined in: libs/act/src/internal/autoclose-config.ts:149

Validate and apply defaults for the autoclose knobs on ActOptions. Called from act().build(). Out-of-range values throw ZodError at startup, not on the first cycle tick.

Parametersโ€‹

optionsโ€‹

ActOptions | undefined

Returnsโ€‹

object

autocloseCycleMinutesโ€‹

autocloseCycleMinutes: number

autocloseWindow?โ€‹

optional autocloseWindow?: object

autocloseWindow.endโ€‹

end: number

autocloseWindow.startโ€‹

start: number

autocloseWindow.timeZoneโ€‹

timeZone: string

closeBatchSizeโ€‹

closeBatchSize: number

closeOnErrorโ€‹

closeOnError: boolean

closeYieldMsโ€‹

closeYieldMs: number