From ddb97e11f3e262c4e73f2dcb14072987c79dc579 Mon Sep 17 00:00:00 2001 From: f Date: Sun, 3 May 2020 16:33:47 -0300 Subject: [PATCH] enviar notificaciones cuando fallan tareas --- config/initializers/sucker_punch.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 config/initializers/sucker_punch.rb diff --git a/config/initializers/sucker_punch.rb b/config/initializers/sucker_punch.rb new file mode 100644 index 0000000..d7db14c --- /dev/null +++ b/config/initializers/sucker_punch.rb @@ -0,0 +1,4 @@ +# Enviar una notificación cuando falla una tarea +SuckerPunch.exception_handler = -> (ex, klass, args) do + ExceptionNotifier.notify_exception(ex) +end