Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
rsync port is reset when using @parallel #494
When I use rsync_project() in a task that is running under @parellel, I receive the following error:
However, running non-parallel works fine.
Hm, it's odd that parallel makes this not work, offhand I don't see why it'd cause problems. I'll have to look into it, hopefully it will be reproducible on my end.
Do you have a copy of the fabfile code causing this?
It's possible this is also related to #445 though that makes no mention of the parallel angle. I may tackle both at the same time.
referenced this issue
Dec 17, 2011
Came up with a simple test case that illustrates this problem. The following two tasks will return different values. Both should print '22', however when @parallel is enabled, it prints None.
from fabric.colors import cyan from fabric.api import * @task #@parallel @roles('webapp') def tester(): print cyan(env.port)
from fabric.colors import cyan from fabric.api import * @task @parallel @roles('webapp') def tester(): print cyan(env.port)