同步处理
This commit is contained in:
1 parent
9939943e31
commit
6494ad2918
26 files changed
+970
-40
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user