cletus/node_modules/agenda/lib/job/repeat-at.ts
2025-05-09 15:53:19 -05:00

12 lines
290 B
TypeScript

import { Job } from ".";
/**
* Sets a job to repeat at a specific time
* @name Job#repeatAt
* @function
* @param time time to repeat job at (human readable or number)
*/
export const repeatAt = function (this: Job, time: string): Job {
this.attrs.repeatAt = time;
return this;
};