CartoDB-SQL-API/batch/index.js

13 lines
357 B
JavaScript
Raw Normal View History

2015-12-09 07:02:08 +08:00
'use strict';
var BatchLauncher = require('./batch_launcher');
2015-12-10 03:17:45 +08:00
var batchManagerFactory = require('./batch_manager_factory');
2015-12-09 07:02:08 +08:00
module.exports = function (interval, maxJobsPerHost) {
2015-12-10 03:17:45 +08:00
var batchManager = batchManagerFactory(maxJobsPerHost);
2015-12-09 07:02:08 +08:00
var batchLauncher = new BatchLauncher(batchManager);
// here we go!
batchLauncher.start(interval);
};