Merge pull request #6520 from betagouv/discard_export_not_found_error

empèche les jobs d'export de réessayer indéfiniement les exports inexistants
This commit is contained in:
LeSim 2021-10-04 13:17:26 +02:00 committed by GitHub
commit c7344e5a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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