@usine/orchestrator/schedule-triggers
Classes
Section titled “Classes”ScheduleAgentFailure
Section titled “ScheduleAgentFailure”A schedule loop whose agent is no longer in the loaded roster.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScheduleAgentFailure(…
args):ScheduleAgentFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”
readonlyagent:string&Brand<"AgentName">
readonlyloop:string&Brand<"LoopName">
message
Section titled “message”
readonlymessage:string
ScheduleCronFailure
Section titled “ScheduleCronFailure”A schedule whose cron boundaries could not be computed at this instant. Cron.prev and Cron.next fail inside a DST spring-forward gap even for a cron that parsed; the schedule retries next cycle and its siblings run.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScheduleCronFailure(…
args):ScheduleCronFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”
readonlycron:string
readonlyloop:string&Brand<"LoopName">
message
Section titled “message”
readonlymessage:string
readonlytz:string
ScheduleCycle
Section titled “ScheduleCycle”The result of evaluating every schedule loop at one instant.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScheduleCycle(…
args):ScheduleCycle
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”alreadyFired
Section titled “alreadyFired”
readonlyalreadyFired:number
failures
Section titled “failures”
readonlyfailures: readonly (ScheduleAgentFailure|ScheduleTickFailure|ScheduleCronFailure)[]
fanout
Section titled “fanout”
readonlyfanout:number
readonlyloops:number
nextTickAt
Section titled “nextTickAt”
readonlynextTickAt:Option<Utc>
skipped
Section titled “skipped”
readonlyskipped:number
submissions
Section titled “submissions”
readonlysubmissions: readonly (Claimed|Queued|Ignored|CycleBlocked)[]
ScheduleTickFailure
Section titled “ScheduleTickFailure”A selected repository whose Tick could not be evaluated or submitted.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScheduleTickFailure(…
args):ScheduleTickFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”errorTag
Section titled “errorTag”
readonlyerrorTag:string
readonlyloop:string&Brand<"LoopName">
message
Section titled “message”
readonlymessage:string
repository
Section titled “repository”
readonlyrepository:string&Brand<"RepositoryName">
scheduledAt
Section titled “scheduledAt”
readonlyscheduledAt:Utc
ScheduleTriggers
Section titled “ScheduleTriggers”Turns due schedule ticks into one Event per selected repository.
Extends
Section titled “Extends”Context.ServiceClass
Properties
Section titled “Properties”Service
Section titled “Service”
readonlyService:object
The service’s operations: what yield* ScheduleTriggers returns.
latest
Section titled “latest”
readonlylatest:Effect.Effect<Option.Option<ScheduleCycle>>
readonlyrun: (instance) =>Effect.Effect<never>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
instance |
LoadedInstance |
Returns
Section titled “Returns”Effect.Effect<never>
readonlytick: (instance) =>Effect.Effect<ScheduleCycle,EnginePersistenceError>
Evaluates the latest due Tick of every schedule. A repository’s failure is logged and reported without stopping its siblings; a cron failure in a DST gap fails only its own schedule.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
instance |
LoadedInstance |
Returns
Section titled “Returns”Effect.Effect<ScheduleCycle, EnginePersistenceError>
readonlystaticlayer:Layer<ScheduleTriggers,never,ConfigParser|ExpressionEngine|RunEngine|LoopControl>
Type Aliases
Section titled “Type Aliases”ScheduleFailure
Section titled “ScheduleFailure”ScheduleFailure = typeof
ScheduleFailure.Type
Variables
Section titled “Variables”ScheduleFailure
Section titled “ScheduleFailure”
constScheduleFailure:Schema.Union<readonly [typeofScheduleAgentFailure, typeofScheduleCronFailure, typeofScheduleTickFailure]>