リモートファイルの削除が重い問題を修正

This commit is contained in:
syuilo
2019-07-01 21:12:14 +09:00
parent ed0070c470
commit 03e999875a
7 changed files with 116 additions and 27 deletions

View File

@@ -194,6 +194,13 @@ export function createDeleteObjectStorageFileJob(key: string) {
});
}
export function createCleanRemoteFilesJob() {
return objectStorageQueue.add('cleanRemoteFiles', {}, {
removeOnComplete: true,
removeOnFail: true
});
}
export default function() {
if (!program.onlyServer) {
deliverQueue.process(128, processDeliver);