Skip to content

Commit

Permalink
Merge pull request #384 from alphagov/disable-appsignal-for-bulk-email
Browse files Browse the repository at this point in the history
Disable Appsignal monitoring for bulk email sending
  • Loading branch information
alanth committed Sep 8, 2015
2 parents b417c30 + ecd7d7b commit 79e7de1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/jobs/concerns/email_all_petition_signatories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def perform(**args)
# Batches the signataries to send emails to in groups of 1000
# and enqueues a job to do the actual sending
def enqueue_send_email_jobs
signatures_to_email.find_each do |signature|
email_delivery_job_class.perform_later(**mailer_arguments(signature))
Appsignal.without_instrumentation do
signatures_to_email.find_each do |signature|
email_delivery_job_class.perform_later(**mailer_arguments(signature))
end
end
end

Expand Down

0 comments on commit 79e7de1

Please sign in to comment.