isRunning
pulse.isRunning(useRealStatus?)
pulse.isRunning(useRealStatus?)
The isRunning
method checks if a job is currently active (i.e., running). A job is considered running if it has started but not yet finished, or if it has restarted after its last completion.
Example Usage
Parameters
useRealStatus
(boolean
- optional): Iftrue
, the job will query the database to refresh its status before determining if it is running. This ensures the method uses the most current data available. Defaults tofalse
, which uses the status as currently loaded in the job object.
Returns
boolean
: Returnstrue
if the job is currently running, otherwisefalse
.
Last updated