5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 14:26:22 +00:00
panel/config/initializers/que.rb

9 lines
252 B
Ruby
Raw Permalink Normal View History

2023-04-10 16:28:01 +00:00
# frozen_string_literal: true
ActiveJob::Serializers.add_serializers ActiveJob::Serializers::ExceptionSerializer
# Notificar los errores
Que.error_notifier = proc do |error, job|
2023-06-14 16:39:26 +00:00
ExceptionNotifier.notify_exception(error, data: (job.dup || {}))
2023-04-10 16:28:01 +00:00
end