From 4b48ee02cd0e06267a121dea01b0ee635303fb62 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 23 Oct 2024 16:58:15 +0200 Subject: [PATCH] fix(helpscout): limit retries to a few hours --- app/jobs/helpscout_create_conversation_job.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/jobs/helpscout_create_conversation_job.rb b/app/jobs/helpscout_create_conversation_job.rb index 85dda42a0..b7f59c043 100644 --- a/app/jobs/helpscout_create_conversation_job.rb +++ b/app/jobs/helpscout_create_conversation_job.rb @@ -2,6 +2,9 @@ class HelpscoutCreateConversationJob < ApplicationJob queue_as :critical # user feedback is critical + + def max_attempts = 15 # ~10h + class FileNotScannedYetError < StandardError end