Skip to main content
zerotal

Documentation


Documentation / zerotal / scheduler / OverlapLockOptions

Interface: OverlapLockOptions

Defined in: packages/scheduler/src/ScheduledTask.ts:44

Properties

crossProcess?

optional crossProcess?: boolean

Defined in: packages/scheduler/src/ScheduledTask.ts:49

Take a cross-process lock (via the configured lock driver) in addition to the in-process guard. Default: true. Set false to guard within this process only.


expiresAfterMinutes?

optional expiresAfterMinutes?: number

Defined in: packages/scheduler/src/ScheduledTask.ts:52

Lock TTL safety net, in minutes, so a crashed run can't deadlock the key. Default: 1440 (24h).