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