2023-06-29 12:58:38 +02:00
|
|
|
class Cron::ProcedureExternalURLCheckJob < Cron::CronJob
|
2024-06-13 16:40:08 +02:00
|
|
|
self.schedule_expression = "every week on monday at 01:00"
|
2023-06-29 12:58:38 +02:00
|
|
|
|
|
|
|
def perform
|
|
|
|
Procedure.with_external_urls.find_each { ::ProcedureExternalURLCheckJob.perform_later(_1) }
|
|
|
|
end
|
|
|
|
end
|