0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Moved job metadata attribute to global bree config

no issue

- Because every job is getting this attribute anyways there's no need to keep it nested on per-job bases
This commit is contained in:
Naz 2020-11-19 18:15:52 +13:00
parent 4b18cbcbdb
commit 986a59abda
2 changed files with 2 additions and 2 deletions

View file

@ -4,8 +4,7 @@ const assemble = (when, job, data, name) => {
const breeJob = {
name: name,
// NOTE: both function and path syntaxes work with 'path' parameter
path: job,
outputWorkerMetadata: true
path: job
};
if (data) {

View file

@ -32,6 +32,7 @@ class JobManager {
this.bree = new Bree({
root: false, // set this to `false` to prevent requiring a root directory of jobs
hasSeconds: true, // precission is needed to avoid task ovelaps after immidiate execution
outputWorkerMetadata: true,
logger: logging
});