foundry-kue-scheduler
Version:
Simple wrapper for kue/kue-scheduler that hooks it up with node-config and provides logical separation between job creation and job processing
32 lines (25 loc) • 676 B
JavaScript
;
const JobCreationServiceFactory = require('./creation/jobCreationServiceFactory');
const JobProcessingServiceFactory = require('./processing/jobProcessingServiceFactory');
const QueueFactory = require('./queueFactory');
class FoundryKueFactory {
/**
* @returns {JobCreationServiceFactory}
*/
static jobCreationServiceFactory() {
return JobCreationServiceFactory;
}
/**
* @returns {JobProcessingServiceFactory}
*/
static jobProcessingServiceFactory() {
return JobProcessingServiceFactory;
}
/**
* @returns {QueueFactory}
*/
static queueFactory() {
return QueueFactory;
}
}
module.exports = FoundryKueFactory;