Closed melalj closed 8 years ago
Reading this now.
Just talked to @melalj via chat.
He wanted the ability to attempt reconnects on connection errors.
Coworkers was designed to crash upon receiving any connection
or channel
errors. This is because the coworkers
application
could be left in an irrecoverable state. Coworkers expects that you have a process manager (or container manager) that will restart/substitute the process when it crashes.
See where errors are thrown: https://github.com/tjmehta/coworkers/blob/master/lib/rabbit-utils/create-app-connection.js#L59 https://github.com/tjmehta/coworkers/blob/master/lib/rabbit-utils/create-app-channel.js#L79
I'm starting an amq connection and exchange following this code:
AMQ started
.I looked at the documentation and it seems that the following lines would catch the exception:
But it doesn't seem that this code is catching any error.
Any idea about what's happening?