demarches-normaliennes/app/jobs/archive_creation_job.rb
Paul Chavard 48dca8bad1 Execute AchiveCreationJob in exports queue
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2021-06-24 17:49:58 +02:00

9 lines
221 B
Ruby

class ArchiveCreationJob < ApplicationJob
queue_as :exports
def perform(procedure, archive, instructeur)
ProcedureArchiveService
.new(procedure)
.collect_files_archive(archive, instructeur)
end
end