2023-06-05 18:22:33 +02:00
|
|
|
class Cron::ProcedureProcessSVASVRJob < Cron::CronJob
|
2024-06-13 16:40:08 +02:00
|
|
|
self.schedule_expression = "every day at 01:15"
|
2023-06-05 18:22:33 +02:00
|
|
|
|
|
|
|
def perform
|
|
|
|
Procedure.sva_svr.find_each do |procedure|
|
|
|
|
procedure.dossiers.state_en_construction_ou_instruction.find_each do |dossier|
|
|
|
|
ProcedureSVASVRProcessDossierJob.perform_later(dossier)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|