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

Execute tasks from another task in parallel. #1947

Open
ghost opened this issue Feb 15, 2019 · 0 comments
Open

Execute tasks from another task in parallel. #1947

ghost opened this issue Feb 15, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 15, 2019

Hi all! I have a problem with migration from fabric1 to fabric2 (as described in title).
I know I can run pre-defined command in parallel using fabric.group.ThreadingGroup, but what about tasks?
In fabric1 we could do something like this:

from fabric.api import execute, parallel

hosts = ['host1', 'host2']

def task(...):
   ""Logic here""

result = execute(parallel(task), hosts=hosts, **kwargs)

Is it possible to reimplement similar logic in fabric2?

@ghost ghost changed the title Execute task from another tas in parallel on a Group Execute tasks from another task in parallel. Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants