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

2 rails app with the same instance of Faktory #34

Open
xponrails opened this issue Jan 25, 2019 · 5 comments
Open

2 rails app with the same instance of Faktory #34

xponrails opened this issue Jan 25, 2019 · 5 comments

Comments

@xponrails
Copy link

Hi.
I have 2 rails app in the same machine and I would like to enqueue jobs using the same instance of Faktory.
The problem is that when I run
bundle exec faktory-worker
on the first rails application, it loads also jobs enqueued by the other application and of course it crashes.
Is there a way to retrieve jobs only for a specific application? Or for an array of queues?
Thanks, Stefano

@mperham
Copy link
Contributor

mperham commented Jan 26, 2019

Use different queues for the different apps?

@xponrails
Copy link
Author

Sure, but the command
bundle exec faktory-worker
doesn't accept a list of queues, so if I run a worker for each rails app, the first one also gets jobs created for the other

@mperham
Copy link
Contributor

mperham commented Jan 26, 2019 via email

@xponrails
Copy link
Author

Ah great! I didn't see in the documentation.
Thanks for your work!

@kimrgrey
Copy link

kimrgrey commented Oct 8, 2019

Hi, @xponrails! 👋 This issue looks solved and stale. Can you please close it if solution was found and worked for you? Thanks! 🙏

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