Re: Error handling with @parallel decorator

2016-01-19 Thread Ankur Agrawal
sooner. Thanks, Ankur On Sun, Jan 17, 2016 at 11:16 PM Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Monday 18 January 2016 17:15, Ankur Agrawal wrote: > > > I am trying to catch Abort exception. When I use fabric's run(...) > method, > >

Error handling with @parallel decorator

2016-01-17 Thread Ankur Agrawal
I am trying to catch Abort exception. When I use fabric's run(...) method, the host it tries to connect is not available and so it aborts with connect time out exception. I am not able to catch it. Following is a two different ways of code snippet- First I try following - class FabricException(Ex

fabric.network.disconnect_all()

2015-12-31 Thread Ankur Agrawal
hi team, I am not sure that disconnect_all() works correctly for task marked as @parallel Following is code snippet - @parallel def diagnoseTransaction(): with hide('stdout', 'stderr'): output = run(command) main.py: execute(diagnoseTransaction,hosts=hosts_transaction) disconnect_a