amelioration(ExpiredUsersDeletionService): limite le nombre d'envoie d'email sur le job de suppression des utilisateurs
This commit is contained in:
parent
8790ac4978
commit
b989af5b47
4 changed files with 24 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue