Automattic / Automattic/kue

A process cannot open multiple redis instances?

Open
#888 9 comments 1 reaction 0 assignees View on GitHub
Feature Question
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

Hi, I want to create two queue in my process.But only the first queue created is useful.0

``` js
var kue = require('kue');
var queue2 = kue.createQueue({
redis: {
post: 6379,
host: "127.0.0.1",
db: 2,
}
});
var queue3 = kue.createQueue({
redis: {
post: 6379,
host: "127.0.0.1",
db: 3,
}
});
// create job
queue2.create('test2', {x: 2}).save()
queue3.create('test3', {x: 3}).save()
```

when I check the queue, the `queue2` has two job. `queue3` has none job;
How can I create multiple queue in one process? Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the supplied two-queue script and inspect the kue.createQueue Redis options path, comparing the connection details for db 2 and db 3. Done means jobs created through queue2 and queue3 are stored and visible in their respective Redis databases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, redis
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.