Skip to content

Emails: Make EmailDrainer batch size configurable - #118

Open
helpful-sam wants to merge 1 commit into
mainfrom
sam-batch-size
Open

helpful-sam wants to merge 1 commit into
mainfrom
sam-batch-size

Conversation

@helpful-sam

@helpful-sam helpful-sam commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Make the email drainer's batch size configurable via "app.email.drain-batch-size", default = 50.
  • Reject values below 1 at startup with "@validated" + "@min(1)" on "EmailProperties"
  • Test that the drainer takes batches of the configured size until the outbox is empty

@helpful-sam
helpful-sam requested a review from a team October 2, 2026 07:15
@graphite-app

graphite-app Bot commented Oct 2, 2026

Copy link
Copy Markdown

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (10/02/26)

2 reviewers were added to this PR based on Henry Chen's automation.

Comment thread src/main/java/org/patinanetwork/patchats/email/EmailProperties.java Outdated
Comment thread src/main/resources/application.yml Outdated
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

@helpful-sam helpful-sam changed the title Emails: make EmailDrainer batch size configurable Emails: Make EmailDrainer batch size configurable Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants