Skip to content

Commit

Permalink
fix processorfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav Gautam authored and Abhinav Gautam committed Oct 8, 2024
1 parent 5ffcd6a commit 4ef3e87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/queue-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ checkQueueHealth(queue).then(jobCounts => {
const processorFile = path.join(__dirname, 'sandbox_worker.js');

function createSandboxedWorker() {
return new Worker('pdfQueue', processorFile,{
connection:bullConnection.connection,
concurrency:parseInt(workerConcurrency)
});
return new Worker('pdfQueue', processorFile,{...bullConnection,concurrency:parseInt(workerConcurrency)});
}

// Start multiple sandboxed workers
Expand Down

0 comments on commit 4ef3e87

Please sign in to comment.