The following test case runs test.sh which returns an error exit code. Without the @parallel decorator fabric aborts and exits as expected after the first failure on the first host (there are two hosts in the 'web_workers' role). With the @parallel decorator the test_thing task exits before running date but test_thing2 is then run.
def test():
execute(test_thing)
execute(test_thing2)
@roles('web_workers')
@parallel
def test_thing():
run('./test.sh')
run('date')
@roles('web_workers')
@parallel
def test_thing2():
run('date')
I'm assuming this isn't the intended workflow, if it is or I'm making a mistake I'd be interested to know what it is.
The following test case runs
test.shwhich returns an error exit code. Without the@paralleldecorator fabric aborts and exits as expected after the first failure on the first host (there are two hosts in the 'web_workers' role). With the@paralleldecorator thetest_thingtask exits before runningdatebuttest_thing2is then run.I'm assuming this isn't the intended workflow, if it is or I'm making a mistake I'd be interested to know what it is.