Aller au contenu
Français

CoordinatedStartupOptionsType

Ce contenu n’est pas encore disponible dans votre langue.

CoordinatedStartupOptionsType = object

Defined in: src/CoordinatedStartupOptions.ts:62

Plain options-object shape of the startup graph.

Layered over actor-ts.coordinated-startup — see readCoordinatedStartupOptionsFromConfig — and over the built-in defaults, field by field.

readonly optional defaultPhaseTimeoutMs?: number

Defined in: src/CoordinatedStartupOptions.ts:64

Budget of every phase that does not name its own, in milliseconds.


readonly optional phases?: ReadonlyArray<PhaseDefinition>

Defined in: src/CoordinatedStartupOptions.ts:76

Phases to retime or to add. An entry named after a phase of StartupPhases merges into it: its timeoutMs and recover replace the seeded ones and its dependsOn is added to the seeded edge, never a replacement — so the two canonical phases cannot be re-ordered. Any other name declares a new phase, which must say what it runs after.

An entry is complete, so it wins over the configuration’s child for the same phase as a whole; the children for the phases it does not name still apply.


readonly optional tasks?: ReadonlyArray<StartupTaskRegistration>

Defined in: src/CoordinatedStartupOptions.ts:78

The tasks the graph runs.