isRunning
pulse.isRunning(useRealStatus?)
pulse.isRunning(useRealStatus?)Example Usage
const pulse = new Pulse();
pulse.define('test', async (job) => {
if (job.isRunning()) {
console.log('The job is currently running.');
} else {
console.log('The job is not running.');
}
});
Parameters
Returns
Last updated