0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core
Kevin Ansfield 42e452b127
Removed models require from analytics job (#12689)
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
2021-02-22 12:10:19 +00:00
..
client@919bf3931d Updated Ghost-Admin to v4.0.0-alpha.2 2021-02-16 19:53:52 +00:00
frontend Cleaned up global server events 2021-02-19 15:21:58 +00:00
server Removed models require from analytics job (#12689) 2021-02-22 12:10:19 +00:00
shared Changed DB path for SQLite tests 2021-02-19 12:21:00 +00:00
app.js Added Sentry to new boot process 2021-02-19 09:20:41 +00:00
boot.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00