refactor(asset): optimize cleanup job and solidify GC with locking

This commit is contained in:
yiling
2026-05-25 09:57:46 +08:00
parent 5dc3bdb38e
commit 2e09ce6ab5
9 changed files with 147 additions and 85 deletions
+1 -5
View File
@@ -1311,11 +1311,7 @@ describe('AssetService', () => {
})
}
// 3. Trigger the purge job for the FIRST batch (100 items)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
await (assetService as any).purgePendingAssets()
// ...
// 3. Trigger the purge job
// eslint-disable-next-line @typescript-eslint/no-explicit-any
await (assetService as any).purgePendingAssets()