mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 08:56:21 +00:00
fix: indicar que no hay que reportar el error
closes #15621 closes #15622 closes #15623 closes #15729 closes #15730 closes #15731 closes #15735 closes #15736 closes #15824 closes #15838 closes #15839
This commit is contained in:
parent
34a858f26a
commit
c501107856
1 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,9 @@ class ActivityPub
|
|||
|
||||
# Al generar una excepción, en lugar de seguir intentando, enviamos
|
||||
# el reporte.
|
||||
#
|
||||
# @param error [Exception]
|
||||
# @return [Bool]
|
||||
def handle_error(error)
|
||||
case error
|
||||
when ActiveRecord::RecordInvalid then retry_in(ApplicationJob.random_wait)
|
||||
|
@ -44,6 +47,8 @@ class ActivityPub
|
|||
message: 'Esta acción se canceló automáticamente, para regenerarla, volver a correr el proceso con los mismos parámetros.'
|
||||
})
|
||||
end
|
||||
|
||||
false
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue