Skip to content

Conversation

@kolaente
Copy link
Member

@kolaente kolaente commented Jan 8, 2026

Summary

  • Don't create the mail queue when the mailer is disabled to prevent SendMail() from blocking indefinitely
  • Add guard clause in SendMail() to return early when mailer is disabled or queue is nil
  • Add test to verify notifications don't block when mailer is disabled

This implements the changes from #1080 with the review feedback addressed (using package notifications instead of package notifications_test).

Test plan

  • Run mage test:filter TestNotifyDoesNotBlockWhenMailerDisabled - passes
  • Run mage test:filter TestNotify - all notification tests pass
  • Run mage lint - 0 issues

Closes #1080

When the mailer is disabled, don't create the mail queue to prevent
SendMail from blocking indefinitely. Add a guard in SendMail to return
early when the mailer is disabled or queue is nil.

Closes: #1080
@kolaente kolaente merged commit 8987f08 into main Jan 8, 2026
32 checks passed
@kolaente kolaente deleted the feat/disable-mail-queue-when-mailer-disabled branch January 8, 2026 14:51
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