同步处理

This commit is contained in:
tianmo committed 2026-10-17 18:15:42 +08:00
1 parent 9939943e31
commit 6494ad2918
26 files changed
+970 -40

No files matched your search

+12
View File
@@ -8,6 +8,7 @@ import { ensureDefaultBackends } from '../utils/storage-backends'
import { cleanupLocalAtomicTempFiles } from '../utils/storage/local'
import { cleanupExpiredSiteSyncArtifacts } from '../utils/site-sync/artifacts'
import { recoverInterruptedBackupJobs } from '../utils/backup/jobs'
import { cleanupExpiredSiteSyncChunkSessions } from '../utils/site-sync/chunks'
import {
cleanupTranscodedSources,
killOrphanFfmpeg,
@@ -49,6 +50,17 @@ export default defineNitroPlugin(() => {
}
})()
void (async () => {
try {
const removed = await cleanupExpiredSiteSyncChunkSessions()
if (removed > 0) {
logInfo('清理过期站点同步分块', { removed })
}
} catch (error) {
logException('清理站点同步分块失败', error)
}
})()
void (async () => {
try {
const result = await cleanupExpiredSiteSyncArtifacts()