SetShouldSaveResult
job.setShouldSaveResult(shouldSaveResult)
job.setShouldSaveResult(shouldSaveResult)
Example Usage
const job = pulse.create('test', {});
job.setShouldSaveResult(true);
job.save(); // If you want to save it
Parameters
shouldSaveResult
(boolean
): A boolean flag that determines if the job’s result should be saved upon completion. Setting this totrue
enables result persistence, whilefalse
disables it.
Returns
Job
: Returns the job instance, allowing for method chaining.
Last updated
Was this helpful?