LeaseStatus interface

Lease-protected jobs (protocol 1.6): whether leases are paused, and every lease held now (getLeaseStatus, pauseLeases, resumeLeases).

Signature:

export interface LeaseStatus

Properties

Property Type Description

by

string

changedAt?

Date

(Optional) When leases were last paused or resumed, by whom and why.

defaultGraceMs

number

The deployment’s grace, for a job that does not set its own.

leases

Array<{ jobId: string; nodeId: string; lastAliveAt: Date; graceMs: number; blockedUntil?: Date; holderRunning: boolean; }>

paused

boolean

reason

string

resumedAt?

Date

(Optional) When they were last resumed: every grace runs from here too.