-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
MC-39718: Process Manager always exits successfully #31368
Conversation
Hi @engcom-Golf. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
@@ -114,6 +114,9 @@ private function multiThreadsExecute($userFunctions) | |||
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock,Magento2.Functions.DiscouragedFunction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this ignoring of empty block could be removed?
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock,Magento2.Functions.DiscouragedFunction | |
// phpcs:ignore Magento2.Functions.DiscouragedFunction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
public function closureFunctionsProvider(): array | ||
{ | ||
return [ | ||
'more_threads_than_functions' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add coverage for cases when it's mess threads than functions and when it's equal? Just to make sure it works fine as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for looking into it, will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added variations
…functions(i.e. indexer dimensions) is lower than the MAGE_INDEXER_THREADS_COUNT env variable
7896526
to
e45a944
Compare
@magento run all tests |
@magento run Functional Tests B2B Looks good. Let's wait for test results |
Hi @ihor-sviziev, thank you for the review. |
@magento import code to https://github.com/magento-tsg/magento2ce |
@zakdma the branch with code successfully imported into |
Hi @engcom-Golf, thank you for your contribution! |
if the amount of functions(i.e. indexer dimensions) is lower than the MAGE_INDEXER_THREADS_COUNT env variable
Description (*)
Added logic to check if child process has exit code >0 then mark parent process as failed
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected result:
The message "reindex successfully finished" is not shown
Reindex is not marked as valid in admin
Questions or comments
Contribution checklist (*)