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

Fix multiprocessing process after fork and finalize regression #55065

Merged
merged 2 commits into from
Oct 30, 2019

Conversation

s0undt3ch
Copy link
Collaborator

What does this PR do?

Fix multiprocessing process after fork and finalize regression

PR #54277 introduced a regression where salt.utils.process.Process
subclasses which override their run() method would not have the
_after_fork_methods and _finalize_methods executed.

What issues does this PR fix or reference?

This PR must be merged after #55043 since it relies on the new class names.

Previous Behavior

Classes which sub-classed salt.utils.process.Process or salt.utils.process.SignalHandlingProcess which also defined a run() method would not run through the _after_fork_methods and _finalize_methods.

New Behavior

Classes which subclass salt.utils.process.Process or salt.utils.process.SignalHandlingProcess which also defines a run() will run through the _after_fork_methods and _finalize_methods.

Tests written?

Yes

Commits signed with GPG?

Yes

@s0undt3ch s0undt3ch requested a review from dwoz October 20, 2019 09:50
@s0undt3ch s0undt3ch requested a review from a team as a code owner October 20, 2019 09:50
salt/utils/process.py Outdated Show resolved Hide resolved
@s0undt3ch s0undt3ch force-pushed the hotfix/process-after-fork-regression branch from 2140e98 to f230cac Compare October 20, 2019 13:05
@s0undt3ch
Copy link
Collaborator Author

Not Ready.

@s0undt3ch s0undt3ch force-pushed the hotfix/process-after-fork-regression branch from f230cac to 4046e54 Compare October 20, 2019 21:19
@s0undt3ch
Copy link
Collaborator Author

PR is now ready.

@s0undt3ch s0undt3ch force-pushed the hotfix/process-after-fork-regression branch 7 times, most recently from 37c6f35 to 3992d79 Compare October 23, 2019 12:00
@s0undt3ch s0undt3ch force-pushed the hotfix/process-after-fork-regression branch 2 times, most recently from 247c9da to bf8b8c5 Compare October 28, 2019 18:20
PR saltstack#54277 introduced a regression where `salt.utils.process.Process`
subclasses which override their `run()` method would not have the
`_after_fork_methods` and `_finalize_methods` executed.
@s0undt3ch s0undt3ch force-pushed the hotfix/process-after-fork-regression branch from bf8b8c5 to b41259c Compare October 29, 2019 19:59
@s0undt3ch s0undt3ch force-pushed the hotfix/process-after-fork-regression branch from b41259c to d60060c Compare October 30, 2019 07:43
@dwoz dwoz merged commit c054c0a into saltstack:master Oct 30, 2019
@s0undt3ch s0undt3ch deleted the hotfix/process-after-fork-regression branch October 30, 2019 21:32
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.

4 participants