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

[master] Don't block when evaluating requisites of parallel states #66956

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

Conversation

lkubb
Copy link
Contributor

@lkubb lkubb commented Oct 10, 2024

What does this PR do?

Evaluates requisites between parallel states less synchronously.

What issues does this PR fix or reference?

Fixes #59959

Previous Behavior

A state with unmet requisites marked as parallel would block state execution until all requisites were met, i.e. its requisites would be evaluated synchronously.

New Behavior

Execution of a parallel state with unmet requisites is postponed, allowing other parallel states with met dependencies to be started immediately.

This does not implement complete parallelization of requisite checks. The stack of postponed parallel states is iterated over after each single state execution, meaning a non-parallel state in between causes parallel ones whose dependencies finish while it is executing to be started only after it has finished.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Don't block when evaluating requisites of parallel states [master] Don't block when evaluating requisites of parallel states Oct 10, 2024
@lkubb lkubb marked this pull request as ready for review October 10, 2024 19:22
@lkubb lkubb requested a review from a team as a code owner October 10, 2024 19:22
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.

[BUG] Parallel orchestration needs improvement
2 participants