perf: limit indexed cleanup task batches (#1107)

Limit mail, sent-mail, and indexed address cleanup to configurable batches. Includes E2E coverage and documentation.
This commit is contained in:
Dream Hunter
2026-08-09 23:32:05 +08:00
committed by GitHub
parent a09ede8944
commit 12152fc893
9 changed files with 140 additions and 6 deletions
+2
View File
@@ -17,6 +17,8 @@ keep_vars = true
# enable cron if you want set auto clean up
# [triggers]
# crons = [ "0 0 * * *" ]
# Per-run limit for mail, sent-mail, and creation/activity-based address cleanup. Defaults to 3000, maximum 5000.
# CLEANUP_BATCH_SIZE = 3000
# send_email = [
# { name = "SEND_MAIL" },