mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
4b0ca9399d
refs https://github.com/TryGhost/Team/issues/2482 This change adds a small sleep in between dispatching events in the worker thread that reads the events from Mailgun. That should reduce the amount of queries we fire parallel to each other and could cause the connection pool to run out of connections. It also reduces the amount of concurrent sending to 2 from 10. Also to make sure the connection pool doesn't run out of connections while sending emails, and to reduce the chance of new connections falling back on a (delayed) replicated database. |
||
---|---|---|
.. | ||
email-templates | ||
batch-sending-service.js | ||
email-controller.js | ||
email-event-processor.js | ||
email-event-storage.js | ||
email-renderer.js | ||
email-segmenter.js | ||
email-service.js | ||
mailgun-email-provider.js | ||
sending-service.js |