Added concurrency of 30 to import queue

This commit is contained in:
2021-12-04 09:34:33 -08:00
parent 2c16de674f
commit ecd5d155fc
3 changed files with 4 additions and 2 deletions

View File

@@ -99,15 +99,15 @@ export default class ApiService extends Service {
console.log("Client connected via websocket!");
client.on("action", async (action) => {
console.log("ACCCCCTION", action);
switch (action.type) {
case "LS_IMPORT":
// 1. Send task to queue
const result = await this.broker.call(
await this.broker.call(
"import.newImport",
action.data,
{}
);
client.emit("LS_COVER_EXTRACTED", result);
break;
}
});