Minor improvement in job runner creation
This commit is contained in:
parent
f89c44586c
commit
44d4fd1bb8
@ -11,14 +11,13 @@ function JobRunner(metadataBackend, userDatabaseMetadataService) {
|
||||
this.metadataBackend = metadataBackend;
|
||||
this.userDatabaseMetadataService = userDatabaseMetadataService;
|
||||
this.jobPublisher = new JobPublisher();
|
||||
|
||||
this.jobQueue = new JobQueue(this.metadataBackend);
|
||||
this.userIndexer = new UserIndexer(this.metadataBackend);
|
||||
}
|
||||
|
||||
JobRunner.prototype.run = function (job_id) {
|
||||
var self = this;
|
||||
var jobQueue = new JobQueue(this.metadataBackend);
|
||||
var userIndexer = new UserIndexer(this.metadataBackend);
|
||||
var jobBackend = new JobBackend(this.metadataBackend, jobQueue, this.jobPublisher, userIndexer);
|
||||
var jobBackend = new JobBackend(this.metadataBackend, this.jobQueue, this.jobPublisher, this.userIndexer);
|
||||
|
||||
jobBackend.get(job_id, function (err, job) {
|
||||
if (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user