🔧 Bull + Redis task queue first draft

This commit is contained in:
2021-10-27 07:30:56 -07:00
parent 289b2ec3bd
commit 0ea5f78e98
3 changed files with 37 additions and 50 deletions

View File

@@ -91,7 +91,6 @@ export default class ImportService extends Service {
try {
const { extractionOptions, walkedFolders } =
ctx.params;
// map(walkedFolders, async (folder, idx) => {
let comicExists = await Comic.exists({
"rawFileDetails.name": `${walkedFolders.name}`,
});
@@ -127,12 +126,12 @@ export default class ImportService extends Service {
{}
);
return await dbImportResult;
} else {
logger.info(
`Comic: \"${walkedFolders.name}\" already exists in the database`
);
}
// });
} catch (error) {
logger.error(
"Error importing comic books",