Closed crabhi closed 6 years ago
The idea is to have a cached connection that we try to create when we create the application. If it fails, log the message and start a background thread that will try it in loop with some backoff.
When a task is submitted and the connection isn't created yet, try to create it before sending.
Fixed in e63def1925641d1531e69f21e4b31cb6a5709dc9
It makes it easier to handle connection failures. The client creation now depends on an established connection. The client should be created at any time but the task submission will fail if it can't connect to the queue.
Example: