Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linewise output not automatically enabled for parallel task using decorator #492

Closed
brannn opened this issue Dec 4, 2011 · 1 comment
Closed
Milestone

Comments

@brannn
Copy link

brannn commented Dec 4, 2011

brandon@deskk ~ > fab --version
Fabric 1.3.3

brandon@deskk ~ > python --version
Python 2.7.2

brandon@deskk ~ > uname -a
Darwin deskk.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

Given a parallel task:

@parallel
def uptime():
run("uptime")

bytewise output is seen:

[10.10.10.9] out: . 15:292:26 1up 54,7 d1a.y8s0,, 116.:7447

If the --linewise or -P options are specified this condition can't be reproduced.

From the 1.3.3 documentation:

"Fabric’s option for linewise output is automatically enabled whenever parallelism is active"

Apologies if this is working as intended (i.e. enabled only when Fabric is invoked with the -P option or env.parallel), but it wasn't clear to me.

@bitprophet
Copy link
Member

Hm, no, you're right that the intent and language were both supposed to include the decorator, so probably an oversight on our end. Thanks for the tip!

@ghost ghost assigned bitprophet Dec 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants