agenda
Version:
Light weight job scheduler for Node.js
14 lines (12 loc) • 352 B
JavaScript
const debug = require('debug')('agenda:maxConcurrency');
/**
* Set the concurrency for jobs (globally), type does not matter
* @param {Number} num max concurrency value
* @returns {exports} agenda instance
*/
module.exports = function(num) {
debug('Agenda.maxConcurrency(%d)', num);
this._maxConcurrency = num;
return this;
};
;