isExpired
pulse.isExpired(useRealStatus?)
pulse.isExpired(useRealStatus?)
The isExpired
method determines whether a job's lock has expired, indicating that the job may be considered stalled or failed if it has not been updated within the expected lock lifetime.
Example Usage
Parameters
useRealStatus
(boolean
- optional): Iftrue
, the job's current status will be refreshed from the database before checking if the lock is expired. Defaults tofalse
.
Returns
boolean
: Returnstrue
if the job's lock has expired, otherwisefalse
.
Last updated