Enable

job.enable()

The enable method sets a job's status to active, allowing it to be run by the job processing system. This is useful for resuming the execution of a job that was previously halted without removing it from the job queue.

This does NOT save the job in the database. you must explicitly declare save()if you want to save it

Example Usage

const job = pulse.create('test', {});
job.enable();
job.save(); // If you want to save it

Parameters

Returns

  • Job: Returns the job instance, enabling method chaining. This allows for further modifications to the job or chaining additional method calls.

Last updated