Skip to main content

CronSchedule

@horizon-republic/nestjs-jetstream


@horizon-republic/nestjs-jetstream / CronSchedule

CronSchedule

Defined in: src/interfaces/schedule.interface.ts:22

A schedule that fires on a cron expression.

Properties​

cron​

cron: CronExpression

Defined in: src/interfaces/schedule.interface.ts:23


data?​

optional data?: unknown

Defined in: src/interfaces/schedule.interface.ts:35

Payload every tick carries, encoded with the connection codec.


timezone?​

optional timezone?: string

Defined in: src/interfaces/schedule.interface.ts:26

IANA zone the expression is read in. Default UTC.


ttlSeconds?​

optional ttlSeconds?: number

Defined in: src/interfaces/schedule.interface.ts:32

How long an unconsumed tick stays in the stream, in whole seconds. Defaults to the shortest gap between the next fires.