agenda
Version:
Light weight job scheduler for Node.js
11 lines (9 loc) • 343 B
text/typescript
import { Job } from ".";
/**
* Sets the flag if the return value of the job should be persisted
* @param shouldSaveResult flag if the return value of the job should be persisted
*/
export const setShouldSaveResult = function (this: Job, shouldSaveResult: boolean): Job {
this.attrs.shouldSaveResult = shouldSaveResult;
return this;
};