Skip to content

Commit

Permalink
Bump example deps
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Sep 29, 2024
1 parent 02808dc commit 675cbb3
Show file tree
Hide file tree
Showing 29 changed files with 2,375 additions and 2,977 deletions.
28 changes: 16 additions & 12 deletions examples/with-express-auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,22 @@ const redisOptions = {

const createQueueMQ = (name) => new QueueMQ(name, { connection: redisOptions });

async function setupBullMQProcessor(queueName) {
new Worker(queueName, async (job) => {
for (let i = 0; i <= 100; i++) {
await sleep(Math.random());
await job.updateProgress(i);
await job.log(`Processing job at interval ${i}`);

if (Math.random() * 200 < 1) throw new Error(`Random error ${i}`);
}

return { jobId: `This is the return value of job (${job.id})` };
});
function setupBullMQProcessor(queueName) {
new Worker(
queueName,
async (job) => {
for (let i = 0; i <= 100; i++) {
await sleep(Math.random());
await job.updateProgress(i);
await job.log(`Processing job at interval ${i}`);

if (Math.random() * 200 < 1) throw new Error(`Random error ${i}`);
}

return { jobId: `This is the return value of job (${job.id})` };
},
{ connection: redisOptions }
);
}

const run = async () => {
Expand Down
10 changes: 5 additions & 5 deletions examples/with-express-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"author": "felixmosh",
"license": "ISC",
"dependencies": {
"@bull-board/express": "^3.10.4",
"body-parser": "^1.20.0",
"bullmq": "^4.6.0",
"@bull-board/express": "^6.0.0",
"body-parser": "^1.20.3",
"bullmq": "^5.13.2",
"connect-ensure-login": "^0.1.1",
"express": "^4.21.0",
"express-session": "^1.17.2",
"passport": "^0.6.0",
"express-session": "^1.18.0",
"passport": "^0.7.0",
"passport-local": "^1.0.0"
}
}
Loading

0 comments on commit 675cbb3

Please sign in to comment.