Исправления LimitedQueue, исправления багов, добавлена проверка флага abort

This commit is contained in:
Book Pauk
2020-01-27 18:57:42 +07:00
parent 3da6befe10
commit f8b7b8b698
4 changed files with 64 additions and 45 deletions

View File

@@ -14,7 +14,7 @@ class ConvertBase {
this.calibrePath = `${config.dataDir}/calibre/ebook-convert`;
this.sofficePath = '/usr/bin/soffice';
this.pdfToHtmlPath = '/usr/bin/pdftohtml';
this.queue = new LimitedQueue(2, 20, 3);
this.queue = new LimitedQueue(2, 20, 3*60*1000);
}
async run(data, opts) {// eslint-disable-line no-unused-vars