Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101045
| From | Ankur Agrawal <ankur.cse@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | fabric.network.disconnect_all() |
| Date | 2015-12-31 07:18 +0000 |
| Message-ID | <mailman.103.1451554716.11925.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
fabric.network.disconnect_all() Ankur Agrawal <ankur.cse@gmail.com> - 2015-12-31 07:18 +0000
csiph-web