amelioration(ExpiredUsersDeletionService): limite le nombre d'envoie d'email sur le job de suppression des utilisateurs

This commit is contained in:
Martin 2023-11-04 08:45:40 +01:00 committed by mfo
parent 8790ac4978
commit b989af5b47
4 changed files with 24 additions and 13 deletions

View file

@ -2,7 +2,7 @@ class Cron::ExpiredUsersDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 11 pm"
def perform(*args)
return if ENV['EXPIRE_USER_DELETION_JOB_DISABLED'].present?
return if ENV['EXPIRE_USER_DELETION_JOB_LIMIT'].blank?
ExpiredUsersDeletionService.process_expired
end
end