Explorar o código

Fixed failing checks for async ActiveJob adapter (Rails 5 default)

Andrew Kane %!s(int64=8) %!d(string=hai) anos
pai
achega
8385f10fe8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lib/blazer.rb

+ 3 - 1
lib/blazer.rb

@@ -143,7 +143,9 @@ module Blazer
     end
 
     emails.each do |email, checks|
-      Blazer::CheckMailer.failing_checks(email, checks).deliver_later
+      Safely.safely do
+        Blazer::CheckMailer.failing_checks(email, checks).deliver_now
+      end
     end
   end
 end