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:
commit
f5bd129218
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue