Skip to content

Commit

Permalink
few more comment and style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shriramshankar committed Nov 10, 2016
1 parent bb888d4 commit 7d7828b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/v1/controllers/samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ module.exports = {
* POST /samples/upsert/bulk
*
* Upserts multiple samples. Returns "OK" without waiting for the upserts to
* happen. The bulk upsert is sent to the queue to be later processed by
* the workers, if they are enabled.
* happen. When "useWorkerProcess" is enabled, the bulk upsert is enqueued
* to be processed by a separate worker process.
*
* @param {IncomingMessage} req - The request object
* @param {ServerResponse} res - The response object
Expand Down
6 changes: 3 additions & 3 deletions jobQueue/jobWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function removeJobOnComplete(job) {
}, delayToRemoveJobs);
});
}
}
} // removeJobOnComplete

/**
* Creates a job to be prossed using the KUE api, when given the jobName and
Expand All @@ -60,10 +60,10 @@ function createJob(jobName, data) {
});
removeJobOnComplete(job);
return job;
}
} // createJob
module.exports = {

jobQueue,
createJob

};
}; // exports
2 changes: 1 addition & 1 deletion jobQueue/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ module.exports = {
BULKUPSERTSAMPLES: 'bulkUpsertSamples',
}

};
}; // exports

0 comments on commit 7d7828b

Please sign in to comment.