demarches-normaliennes/app/jobs/cron/procedure_external_url_check_job.rb
2023-07-06 10:27:43 +02:00

7 lines
238 B
Ruby

class Cron::ProcedureExternalURLCheckJob < Cron::CronJob
self.schedule_expression = "every week on monday at 1 am"
def perform
Procedure.with_external_urls.find_each { ::ProcedureExternalURLCheckJob.perform_later(_1) }
end
end