agenda
Version:
Light weight job scheduler for Node.js
15 lines (13 loc) • 379 B
JavaScript
const humanInterval = require('human-interval');
const debug = require('debug')('agenda:processEvery');
/**
* Set the default process interval
* @param {Number} time time to process
* @returns {exports} agenda instance
*/
module.exports = function(time) {
debug('Agenda.processEvery(%d)', time);
this._processEvery = humanInterval(time);
return this;
};
;