Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use two queues intances #33

Open
TeruyaHaroldo opened this issue Sep 3, 2018 · 2 comments
Open

Cannot use two queues intances #33

TeruyaHaroldo opened this issue Sep 3, 2018 · 2 comments

Comments

@TeruyaHaroldo
Copy link

TeruyaHaroldo commented Sep 3, 2018

Hello,

I want to create 2 instancies of Queue, like:

const queue = await queueFactory();
const tempQueue = await queueFactory();

But the tempQueue is not working with tempQueue.start(), he do not call my jobs and not print anything in the log.console after I call queue.stop().

Is this a bug?

@TeruyaHaroldo TeruyaHaroldo changed the title Two queues Cannot use two queues intances Sep 3, 2018
@sutefan1
Copy link

+1

@gruffT
Copy link

gruffT commented Feb 15, 2020

I'd have to double check but I would think this is due to the under lying realm database having a fixed name and hence file store. A second queue would try and connect to the same realm instance as the first, with obvious issues!

You could fork and make the ability to specify a realm name/file which would help you. Funnily enough, that seems to be baked in to the database file but not exposed through the queue options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants