CartoDB-SQL-API/batch/scheduler/capacity/fixed.js

12 lines
233 B
JavaScript
Raw Normal View History

2023-05-19 00:42:48 +08:00
'use strict';
function FixedCapacity(capacity) {
this.capacity = Math.max(1, capacity);
}
module.exports = FixedCapacity;
FixedCapacity.prototype.getCapacity = function(callback) {
return callback(null, this.capacity);
};