Skip to content

Commit 79e7de1

Browse files
committed
Merge pull request #384 from alphagov/disable-appsignal-for-bulk-email
Disable Appsignal monitoring for bulk email sending
2 parents b417c30 + ecd7d7b commit 79e7de1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/jobs/concerns/email_all_petition_signatories.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ def perform(**args)
5959
# Batches the signataries to send emails to in groups of 1000
6060
# and enqueues a job to do the actual sending
6161
def enqueue_send_email_jobs
62-
signatures_to_email.find_each do |signature|
63-
email_delivery_job_class.perform_later(**mailer_arguments(signature))
62+
Appsignal.without_instrumentation do
63+
signatures_to_email.find_each do |signature|
64+
email_delivery_job_class.perform_later(**mailer_arguments(signature))
65+
end
6466
end
6567
end
6668

0 commit comments

Comments
 (0)