2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-12-05 13:36:38 +01:00
|
|
|
class Cron::PurgeStaleBatchOperationJob < Cron::CronJob
|
|
|
|
self.schedule_expression = "every 5 minutes"
|
|
|
|
|
|
|
|
def perform
|
|
|
|
BatchOperation.stale.destroy_all
|
|
|
|
BatchOperation.stuck.destroy_all
|
|
|
|
end
|
|
|
|
end
|