demarches-normaliennes/app/jobs/declarative_procedures_job.rb

8 lines
176 B
Ruby
Raw Normal View History

2020-03-28 16:49:40 +01:00
class DeclarativeProceduresJob < CronJob
self.schedule_expression = "every 1 minute"
def perform(*args)
Procedure.declarative.find_each(&:process_dossiers!)
end
end