Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Only attempt trial notifications once

Uku Taht5e376766ac79
diff --git a/lib/workers/send_trial_notifications.ex b/lib/workers/send_trial_notifications.ex
index bc4b3c65d3..a1e7db0839 100644
--- a/lib/workers/send_trial_notifications.ex
+++ b/lib/workers/send_trial_notifications.ex
@@ -1,6 +1,8 @@
defmodule Plausible.Workers.SendTrialNotifications do
use Plausible.Repo
- use Oban.Worker, queue: :trial_notification_emails
+ use Oban.Worker,
+ queue: :trial_notification_emails,
+ max_attempts: 1
require Logger
@impl Oban.Worker