Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101045 > unrolled thread

fabric.network.disconnect_all()

Started byAnkur Agrawal <ankur.cse@gmail.com>
First post2015-12-31 07:18 +0000
Last post2015-12-31 07:18 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  fabric.network.disconnect_all() Ankur Agrawal <ankur.cse@gmail.com> - 2015-12-31 07:18 +0000

#101045 — fabric.network.disconnect_all()

FromAnkur Agrawal <ankur.cse@gmail.com>
Date2015-12-31 07:18 +0000
Subjectfabric.network.disconnect_all()
Message-ID<mailman.103.1451554716.11925.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web