demarches-normaliennes/app/jobs/declarative_procedures_job.rb
2020-03-31 12:25:46 +02:00

7 lines
167 B
Ruby

class DeclarativeProceduresJob < CronJob
self.cron_expression = "* * * * *"
def perform(*args)
Procedure.declarative.find_each(&:process_dossiers!)
end
end