mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:46:23 +00:00
fix: informar la tarea que falló de forma genérica
closes #16052 closes #16058 closes #16059
This commit is contained in:
parent
7a71e1de88
commit
4ccf37c370
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ class ApplicationJob < ActiveJob::Base
|
|||
attr_reader :site
|
||||
|
||||
# Si falla por cualquier cosa informar y descartar
|
||||
discard_on(Exception) do |error|
|
||||
ExceptionNotifier.notify_exception(error, data: { site: @site&.name })
|
||||
discard_on(Exception) do |job, error|
|
||||
ExceptionNotifier.notify_exception(error, data: { job: job })
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue