Ghost/ghost/job-manager/lib
Naz b0581c778e Added execution progress updates for one off jobs
refs https://github.com/TryGhost/Toolbox/issues/357

- Job persisted in the database need to track job's execution status such as completion, failure, execution start and end times. This changeset allows to hook into job/bree lifecycle to track job's progress.
- NOTE: only supports "offloaded" jobs at the moment. Support for "inline" jobs will be added once there's a clear usecase for it.
- The "started" status and "started_at" timestamp are assigned to a job at the moment when the worker thread is created inside of bree
- The "finished" status and "finished_at" timestamp are assigned to a job when a "done" event is passed from the job script (NOTE: using process.exit(0) will not trigger the "finished" state")
- The "failed" status is assigned when the job execution is interrupted with an error
2022-07-22 16:43:15 +01:00
..
assemble-bree-job.js Added jsdoc to bree job builder 2020-12-09 19:34:04 +13:00
is-cron-expression.js 🐛 Fixed cron expression to read seconds parameter 2020-11-24 16:37:46 +13:00
job-manager.js Added execution progress updates for one off jobs 2022-07-22 16:43:15 +01:00
jobs-repository.js Added execution progress updates for one off jobs 2022-07-22 16:43:15 +01:00