Merge pull request #9250 from mfo/feat-active-storage-queues-purge

tech(active-storage.queues.purge): place les jobs de purge ds low_priority
This commit is contained in:
mfo 2023-06-27 16:58:50 +02:00 committed by GitHub
commit f5bd129218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,7 @@ class Cron::ExpiredDossiersTermineDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 7 am"
def perform(*args)
ExpiredDossiersDeletionService.new.process_expired_dossiers_termine
# ExpiredDossiersDeletionService.new.process_expired_dossiers_termine
return "until we purge stock"
end
end

View file

@ -58,6 +58,7 @@ module TPS
# Set the queue name for the analysis jobs to 'active_storage_analysis'
config.active_storage.queues.analysis = :active_storage_analysis
config.active_storage.queues.purge = :expires
config.to_prepare do
# Make main application helpers available in administrate