5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 05:26:22 +00:00

fix: informar la tarea que falló de forma genérica

closes #16052

closes #16058

closes #16059
This commit is contained in:
f 2024-04-15 11:54:28 -03:00
parent 7a71e1de88
commit 4ccf37c370
No known key found for this signature in database

View file

@ -7,7 +7,7 @@ class ApplicationJob < ActiveJob::Base
attr_reader :site attr_reader :site
# Si falla por cualquier cosa informar y descartar # Si falla por cualquier cosa informar y descartar
discard_on(Exception) do |error| discard_on(Exception) do |job, error|
ExceptionNotifier.notify_exception(error, data: { site: @site&.name }) ExceptionNotifier.notify_exception(error, data: { job: job })
end end
end end