From 5e376766ac7961529cd73a92fa035f8a125111d1 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Sat, 20 Jun 2020 20:33:12 +0300 Subject: [PATCH] Only attempt trial notifications once --- lib/workers/send_trial_notifications.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/workers/send_trial_notifications.ex b/lib/workers/send_trial_notifications.ex index bc4b3c65d..a1e7db083 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