How to continue a task when Fabric receives an error

后端 未结 7 1506
迷失自我
迷失自我 2020-12-04 23:16

When I define a task to run on several remote servers, if the task runs on server one and exits with an error, Fabric will stop and abort the task. But I want to make fabric

7条回答
  •  悲&欢浪女
    2020-12-04 23:39

    In my case, on Fabric >= 1.4 this answer was the correct one.

    You can skip bad hosts by adding this:

    env.skip_bad_hosts = True
    

    Or passing the --skip-bad-hosts flag/

提交回复
热议问题