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

Routing tasks to a specific process for debugging #46

Open
alexklibisz opened this issue Feb 3, 2016 · 1 comment
Open

Routing tasks to a specific process for debugging #46

alexklibisz opened this issue Feb 3, 2016 · 1 comment

Comments

@alexklibisz
Copy link

We have a node.js app running on AWS with Firebase Queue listening to our firebase. At times we want to debug some things or develop new features and it's easier to run the node app locally to see log statements

Is there any way to guarantee that tasks being sent to a queue will be handled by the local process of the running servers without killing the process on the servers? It would also be ok to completely re-route all queues to the local instance if doing just single queues isn't possible.

@cbraynor
Copy link
Contributor

There's nothing that's built-in to the queue to do this. I'm not sure in your situation if you have access to the client code, but if you do you could always change the _state value for new items on the queue - then the prod workers wouldn't pick up the new tasks and your local instance could.

If you don't have access to change the client code then I'm not sure of a solution that doesn't involve disabling the deployed workers

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

2 participants