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

Remote worker activation fails with the newly created RabbitMQ broker #209

Closed
marktwtn opened this issue Dec 6, 2019 · 0 comments · Fixed by #210
Closed

Remote worker activation fails with the newly created RabbitMQ broker #209

marktwtn opened this issue Dec 6, 2019 · 0 comments · Fixed by #210
Labels
bug Something isn't working

Comments

@marktwtn
Copy link
Collaborator

marktwtn commented Dec 6, 2019

If the RabbitMQ broker is newly created and the remote interface initialization is never called, the remote worker can not be activated successfully.
It prints out the message:

Set the consuming queue: server channel error 404,
message: NOT_FOUND - no queue 'incoming_queue' in vhost '/'

It shows that the corresponding queue does not exist.
In the current implementation, the queue is only declared in the remote interface initialization steps instead of declaring in the remote worker.
Once the initialization is called, the durable queue would exist even if the RabbitMQ broker is restarted.

To solve the problem, the queue should be declared in the remote worker, too.
Repeated declaration would be fine based on the description from the RabbitMQ website:

Before a queue can be used it has to be declared.
Declaring a queue will cause it to be created if it does not already exist.
The declaration will have no effect if the queue does already exist
and its attributes are the same as those in the declaration.
@marktwtn marktwtn added the bug Something isn't working label Dec 6, 2019
marktwtn added a commit that referenced this issue Dec 6, 2019
Declare queue in the remote worker source code to avoid queue missing
error when the new RabbitMQ broker is created and the remote worker
is activated right after it.

Close #209.
@jserv jserv closed this as completed in #210 Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant