Ghost/ghost
Simon Backx 69228b2947
🐛 Fixed race condition when sending email (#15829)
refs https://github.com/TryGhost/Team/issues/2246

- This change helps avoid race conditions due to a lack of a transaction
in the email job. It also moves the status check before creating the
email batches (can take a while) to prevent other timing issues in case
the job got scheduled multiple times.
- Sets the patch option to true when changing the status of an email
batch. If we don't do this, the bookshelf-relations plugin might try to
save relations too. This could have caused a 'no rows updated' error.
- Added a test that tests if the email job can only run once
- Added logging to batching logic
2022-11-17 13:36:52 +01:00
..
adapter-manager Update Test & linting packages 2022-11-07 20:39:48 +00:00
admin Added specific newsletter support for bulk unsubscribes (#15742) 2022-11-16 14:29:00 +07:00
api-framework Update Test & linting packages 2022-11-07 20:39:48 +00:00
api-version-compatibility-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
audience-feedback Update Test & linting packages 2022-11-07 20:39:48 +00:00
bootstrap-socket Update Test & linting packages 2022-11-07 20:39:48 +00:00
constants Update Test & linting packages 2022-11-07 20:39:48 +00:00
core 🐛 Fixed race condition when sending email (#15829) 2022-11-17 13:36:52 +01:00
custom-theme-settings-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
data-generator Update Test & linting packages 2022-11-07 20:39:48 +00:00
domain-events Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
email-analytics-provider-mailgun Update Test & linting packages 2022-11-07 20:39:48 +00:00
email-analytics-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
email-content-generator Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
express-dynamic-redirects Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
job-manager Update Test & linting packages 2022-11-07 20:39:48 +00:00
link-redirects Update Test & linting packages 2022-11-07 20:39:48 +00:00
link-replacer Update Test & linting packages 2022-11-07 20:39:48 +00:00
link-tracking Update Test & linting packages 2022-11-07 20:39:48 +00:00
magic-link Update Test & linting packages 2022-11-07 20:39:48 +00:00
mailgun-client Update dependency mailgun.js to v8.0.4 2022-11-16 17:46:29 +00:00
member-attribution 🐛 Fixed ref attribute in email links (#15775) 2022-11-08 11:24:00 +01:00
member-events Update Test & linting packages 2022-11-07 20:39:48 +00:00
members-api Added specific newsletter support for bulk unsubscribes (#15742) 2022-11-16 14:29:00 +07:00
members-csv Update Test & linting packages 2022-11-07 20:39:48 +00:00
members-events-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
members-importer 🐛 Fixed complimentary_plan Member imports 2022-11-08 11:47:00 +07:00
members-ssr Update Test & linting packages 2022-11-07 20:39:48 +00:00
minifier Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-api-version-mismatch Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-cache-control Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-error-handler Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-session-from-token Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-update-user-last-seen Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-vhost Update dependency supertest to v6.3.1 2022-10-26 02:54:43 +00:00
oembed-service Update metascraper to v5.32.0 2022-11-14 21:47:17 +00:00
offers Update Test & linting packages 2022-11-07 20:39:48 +00:00
package-json Update Test & linting packages 2022-11-07 20:39:48 +00:00
payments Fixed check for existing Stripe Prices 2022-11-09 14:56:16 +07:00
portal Updated portal tests 2022-11-17 13:16:12 +05:30
referrers Update Test & linting packages 2022-11-07 20:39:48 +00:00
security Update Test & linting packages 2022-11-07 20:39:48 +00:00
session-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
settings-path-manager Update Test & linting packages 2022-11-07 20:39:48 +00:00
staff-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
stats-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
stripe Update Test & linting packages 2022-11-07 20:39:48 +00:00
tiers 🐛 Fixed archiving Tiers (#15761) 2022-11-04 10:51:11 +07:00
update-check-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
verification-trigger Update Test & linting packages 2022-11-07 20:39:48 +00:00
version-notifications-data-service Update Test & linting packages 2022-11-07 20:39:48 +00:00