0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/web/api
Hannah Wolfe bbbd011074 Added job-manager & wired up shutdown and testmode
- Bottom line - we need to manage shutting down gracefully when doing long-running tasks
- To achieve that, we're going to use job queues

In this commit:
- added new @tryghost/job-manager dependency
- added a minimal job service, that handles in passing things like logging and (maybe later) config
- job service is wired up to server shutdown, so that the queue finishes before the server exits
- also added a new job endpoint to testmode so that it's easy to test job behaviour without needing to do real work
2020-08-11 21:31:34 +01:00
..
canary Moved canary/v3 webhooks API to "stable" group 2020-08-03 23:40:15 +12:00
middleware Replaced constants file with @tryghost/constants 2020-08-11 12:51:16 +01:00
v2 Updated stability index comments around Admin API v2 endpoints 2020-08-03 23:46:23 +12:00
app.js Added a server testmode to help test behaviour 2020-08-10 16:38:49 +01:00
index.js Renamed app related files+variables for clarity 2020-04-27 17:50:08 +01:00
testmode.js Added job-manager & wired up shutdown and testmode 2020-08-11 21:31:34 +01:00