Continue after ConnectionErrorException

12 views
Skip to first unread message

Konstantin Ivanov

unread,
Jul 9, 2015, 4:35:41 PM7/9/15
to parall...@googlegroups.com
Hey guys,

I have simple script that connects to 200 servers 20 at a time and runs a bash script to collect some stats. It all works fine except when one of the servers is down and it throws ConnectionErrorException.
I rely on the output object for the result:

output = client.run_command(command, sudo=True)

The problem is that once the ConnectionErrorException is caught the output object does not exist. Any way around this?

Here's a gist:


Reply all
Reply to author
Forward
0 new messages