Skip to content

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

Closed

Description

@brannn

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.

Activity

  1. bitprophet commented on Dec 7, 2011

    @bitprophet
    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions