Fix infinite loop in AccountsStatusesCleanupScheduler (#24840)

This commit is contained in:
Claire
2023-05-04 10:13:00 +02:00
committed by GitHub
parent f95125bd04
commit c3c7d59072
2 changed files with 15 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ class Scheduler::AccountsStatusesCleanupScheduler
# and start back after the last processed account otherwise
break if budget.zero? || (num_processed_accounts.zero? && !full_iteration)
full_iteration = false unless first_iteration
first_iteration = false
end
end