fabric.network.disconnect_all()
Ankur Agrawal
ankur.cse at gmail.com
Thu Dec 31 02:18:09 EST 2015
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_all()
In the console I see all the commands ran but I never saw
'Disconnecting message' in the console.
While if I remove @parallel decorator and then if I run the same code
then I do see 'Disconnecting messages' in the console.
Am I missing something or ?
Thanks,
Ankur
More information about the Python-list
mailing list