mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
feat: notificar errores de que
This commit is contained in:
parent
aaa4608cf7
commit
20e8e83ab6
1 changed files with 8 additions and 0 deletions
8
config/initializers/que.rb
Normal file
8
config/initializers/que.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
ActiveJob::Serializers.add_serializers ActiveJob::Serializers::ExceptionSerializer
|
||||||
|
|
||||||
|
# Notificar los errores
|
||||||
|
Que.error_notifier = proc do |error, job|
|
||||||
|
ExceptionNotifier.notify_exception(error, data: (job || {}))
|
||||||
|
end
|
Loading…
Reference in a new issue