➿ Added concurrency of 30 to import queue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user