WPB-27255: move email sending to background-worker - #5448
Open
blackheaven wants to merge 3 commits into
Open
Conversation
blackheaven
force-pushed
the
gdifolco/WPB-27255-email-background-job
branch
2 times, most recently
from
August 14, 2026 17:41
17dab2a to
f603ac2
Compare
blackheaven
force-pushed
the
gdifolco/WPB-27255-email-background-job
branch
from
August 25, 2026 14:34
f603ac2 to
9737671
Compare
Rework of the email background-worker move: brig now inserts send-email jobs into the new `emails` Arbiter queue (PostgreSQL, default Arbiter schema) instead of publishing BackgroundJobSendEmail messages to the RabbitMQ `background-jobs` queue. - Wire.API.Jobs: new `emails` queue with EmailsJobPayload/SendEmailJobPayload (request id + SerializableMail), added to JobRegistry; the RabbitMQ BackgroundJobPayload loses its send-email variant and the SendEmailJob wrapper type is dropped. - Wire.EmailSending.Queueing: the EmailSending interpreter now runs ArbiterCore.insertJob against the shared hasql pool (self-contained, Embed IO only; maxAttempts = 3). - brig: wires the Arbiter-backed interpreter and runs the Arbiter job migrations at startup, mirroring galley. - background-worker: new emails worker pool (Wire.EmailJobsWorker) sends the mail via the configured SES/SMTP transport; malformed payloads are rejected with a warning, send failures rethrow as retryable so Arbiter retry/backoff and the DLQ apply. The RabbitMQ runner's email handling and its exception wrapper are reverted. - docs/changelog updated for the Arbiter semantics, including rollout ordering and the at-rest sensitivity of the emails/DLQ tables.
blackheaven
force-pushed
the
gdifolco/WPB-27255-email-background-job
branch
from
August 25, 2026 16:50
a62eb6f to
4011dbf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://wearezeta.atlassian.net/browse/WPB-27255
Checklist
changelog.d