Open ngie-eign opened 10 years ago
I tried adding a conn.ensure_connection(max_retries=len(conn.alt))
before the SimpleQueue
call, but that failed too.
I figured it out. The "problem" is that Connection.switch always assumes it's dealing with a URL, not a hostname. I have a patch to enhance the code to allow alternates to be a list of hostnames that I'll provide in my open pull request.
alternatives support in kombu.Connection does not cycle through the next host when it tries to connect; instead the transport layer throws socket.errors and dies, which seems to defeat the purpose of failover support: