Ghost/core/server/services/email-analytics/jobs
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
..
fetch-all.js Migrated jobs to use parentPort.postMessage 2021-02-22 20:02:00 +13:00
fetch-latest.js Removed models require from analytics job (#12689) 2021-02-22 12:10:19 +00:00
index.js Bumped job-manager version to 0.7.0 2021-01-06 17:48:05 +13:00