demarches-normaliennes/app/jobs/export_job.rb

11 lines
206 B
Ruby

class ExportJob < ApplicationJob
queue_as :exports
discard_on ActiveRecord::RecordNotFound
def perform(export)
export.compute_with_safe_stale_for_purge do
export.compute
end
end
end