Revert "Revert "Export de tous les dossier d'une démarche""

This reverts commit d9a588b52e.
This commit is contained in:
Christophe Robillard 2021-04-29 17:29:47 +02:00
parent 533fa903bc
commit f40d96fbd2
32 changed files with 675 additions and 36 deletions

View file

@ -0,0 +1,7 @@
class ArchiveCreationJob < ApplicationJob
def perform(procedure, archive, instructeur)
ProcedureArchiveService
.new(procedure)
.collect_files_archive(archive, instructeur)
end
end

View file

@ -0,0 +1,7 @@
class Cron::PurgeStaleArchivesJob < Cron::CronJob
self.schedule_expression = "every 5 minutes"
def perform
Archive.stale.destroy_all
end
end