有时候,而我的布脚本运行的基本运行在远程机器上的几个命令,我会遇到这样的错误:面料插座例外:连接超时
ERROR:paramiko.transport:Socket exception: Connection timed out (110)
!!! Parallel execution exception under host 'xyz'
....
.... (several logs here)
error: [Errno 110] Connection timed out
我的代码是这样的:
with settings(....):
execute(tasks,...)
有没有一种方法可以让织物在遇到这种超时时重试旧命令而不是跳过它,例如在上述设置中可以选择重试?