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:
commit
c7344e5a60
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
class ExportJob < ApplicationJob
|
||||
queue_as :exports
|
||||
|
||||
discard_on ActiveRecord::RecordNotFound
|
||||
|
||||
def perform(export)
|
||||
export.compute
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue