mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Added logging
This commit is contained in:
parent
48597b0056
commit
5506c64ae4
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ class JobManager {
|
||||||
* @param {Object} [data] data to be passed into the job
|
* @param {Object} [data] data to be passed into the job
|
||||||
*/
|
*/
|
||||||
addJob(job, data) {
|
addJob(job, data) {
|
||||||
|
this.logging.info('Adding one off job to the queue');
|
||||||
|
|
||||||
this.queue.push(async () => {
|
this.queue.push(async () => {
|
||||||
await job(data);
|
await job(data);
|
||||||
}, handler);
|
}, handler);
|
||||||
|
|
Loading…
Add table
Reference in a new issue