discard expert not found job error

This commit is contained in:
simon lehericey 2021-10-04 12:57:37 +02:00
parent 4c65e49950
commit e4484eb6d9

View file

@ -1,6 +1,8 @@
class ExportJob < ApplicationJob
queue_as :exports
discard_on ActiveRecord::RecordNotFound
def perform(export)
export.compute
end