mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
42e452b127
refs https://github.com/TryGhost/Ghost/issues/12496 By requiring the models layer the shared logging util was being required as a side-effect causing the open file descriptors problem to continue. Removing logging from the models layer isn't feasible due to deep require chains spreading across the codebase, it's much quicker to remove the need for models in the analytics job. - models layer was only needed because it's used by the session service - updated analytics job to create it's own instance of `EmailAnalyticsService` rather than the default instance in order to pass in custom dependencies - pass in custom `logging` object that uses `parentPort.postMessage` as a way of writing log output - pass in custom `settings` object that returns settings that have been manually fetched and cached during job instantiation |
||
---|---|---|
.. | ||
adapter-manager | ||
auth | ||
bulk-email | ||
email-analytics | ||
invitations | ||
invites | ||
jobs | ||
mega | ||
members | ||
notifications | ||
permissions | ||
settings | ||
webhooks | ||
labs.js | ||
oembed.js | ||
slack.js | ||
users.js | ||
xmlrpc.js |