Ghost/ghost
Naz 4b18cbcbdb Added support for worker threads in scheduled jobs
no issue

- When jobs are performing CPU intensive tasks they block main process'
event loop. They also can cause memory leaks or unexpected crashes
effectively crashing the parent proccess. To address these issues jobs need to be performed off of main
process. Worker Threads (https://nodejs.org/dist/latest-v12.x/docs/api/worker_threads.html)
are the best candidate for such work.
- These changes introduce an integration on top of bree
(https://github.com/breejs/bree/) which allows to run recurring
jobs in worker thereads. It falls back to child process execution for
Node v10 running without `--experimental-worker` flag.
- bree was chosen not only because it gives a polyfill for older Node
versions. It has support for some of the future use-cases Ghost is looking to
implement, like scheduled jobs.
- This changeset also includes a complete example of job running on an
interval with a possibility for graceful shutdown
2020-11-19 17:59:36 +13:00
..
adapter-manager Update dependency @types/mocha to v8.0.4 2020-11-11 01:41:25 +00:00
bootstrap-socket Published new versions 2020-11-05 17:38:41 +13:00
constants Published new versions 2020-11-05 17:38:41 +13:00
errors Published new versions 2020-11-05 17:38:41 +13:00
image-transform Published new versions 2020-11-05 17:38:41 +13:00
job-manager Added support for worker threads in scheduled jobs 2020-11-19 17:59:36 +13:00
moleculer-service-from-class Published new versions 2020-11-05 17:38:41 +13:00
mw-session-from-token Update dependency @types/mocha to v8.0.4 2020-11-11 01:41:25 +00:00
pretty-cli Published new versions 2020-11-05 17:38:41 +13:00
promise Published new versions 2020-11-05 17:38:41 +13:00
release-utils Published new versions 2020-11-05 17:38:41 +13:00
security Update dependency @tryghost/string to v0.1.14 2020-11-10 10:50:57 +00:00
session-service Update dependency @types/mocha to v8.0.4 2020-11-11 01:41:25 +00:00
vhost-middleware Published new versions 2020-11-05 17:38:41 +13:00
zip Switched symlink to symlinkSync 2020-11-10 10:48:25 +00:00
.gitkeep Initial commit 2019-01-21 22:07:40 +00:00