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

Dependent tasks are now executed per host. #1894

Open
wants to merge 2 commits into
base: 2.0
Choose a base branch
from
Open

Dependent tasks are now executed per host. #1894

wants to merge 2 commits into from

Conversation

StuartMacKay
Copy link

The run() and sudo() methods on a Connection give the expectation that the command will be run on the target host(s). However if a task is specified as a pre or post dependency then the command is run on the machine where the fab command was run.

This PR modifies the calls in the Executor.expand_calls() method to pass the value of allow_hosts to any dependent tasks. The result is that instead of the dependent tasks being executed only once on source machine they are executed on each target host.

The run() and sudo() methods on a Connection give the expectation that the
command will be run on the target host(s). However if a task is specified
as a pre or post dependency then the command is run on the machine where
the fab command was run.

This PR modifies the calls in the Executor.expand_calls() method to pass
the value of allow_hosts to any dependent tasks. The result is that instead
of the dependent tasks being executed only once on source machine they are
excuted on each target host.
@micahjsmith
Copy link

@StuartMacKay thanks for this fix, the referenced issues are still open as of fabric v3. would you want to change the base branch to main and see whether your patch still applies?

I'm not a maintainer, just hoping that this can still be merged.

@davidjmemmett
Copy link
Contributor

davidjmemmett commented Apr 7, 2023 via email

@micahjsmith
Copy link

@davidjmemmett sorry I'm a bit confused, the latest release of fabric is v3.0.0. the version on main branch is 3.0.0. are you suggesting these are no longer maintained?

@davidjmemmett
Copy link
Contributor

You're correct - @bitprophet sneaked that out of the door!

@micahjsmith
Copy link

@davidjmemmett okay, interesting, thanks -- created #2258 to continue discussion to avoid hijacking this thread

in that case, my comment about rebasing on main/v3 no longer applies, and I'd love to see this fix reviewed/merged. let me know if there is anything I can do to push this along, though I'm a new contributor to fabric

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

Successfully merging this pull request may close these issues.

None yet

3 participants