CartoDB-SQL-API/batch/index.js
2015-12-09 20:17:45 +01:00

13 lines
357 B
JavaScript

'use strict';
var BatchLauncher = require('./batch_launcher');
var batchManagerFactory = require('./batch_manager_factory');
module.exports = function (interval, maxJobsPerHost) {
var batchManager = batchManagerFactory(maxJobsPerHost);
var batchLauncher = new BatchLauncher(batchManager);
// here we go!
batchLauncher.start(interval);
};