-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Revert "Remove respawn after 50% memory exhaustion during batch proce… #3952
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
Conversation
|
Added new commit which fixes an error as it seems some more stuff changed in the meanwhile an only reverting that one commit didn't worked anymore. Also changed the memory limit to 60% as proposed. |
I'm not aware of batch code changing. What error did you see? |
|
@weitzman I'm not sure how it worked before in 9.5 (but it did..), but in So if the drush didn't finished (like in the case memory limit reached) it didn't returned anything, which now results in the following error (when only reverting that one commit) Now I return |
|
Could it be that #3117 is fixed with my latest commit and that some better error handling (AbstractListData, w/e) while calling new processes just made it clearer where the issue is? The issue there was created with 8.x and till than a lot of stuff changed, where you maybe have a better idea if some changes in the past could have changed the error from nothing and it stops to this validation error? |
|
Can't reproduce #2762 - see comment there. |
|
OK, thanks for following. Merged. |
…ssing. (#3909)"
This reverts #3909
Like @MarkCarver commented in the pull request
We currently have two scenarios where we depend on this.
I'm not sure if something like this should be removed, even if better ways for handling above cases are implemented (see https://www.drupal.org/project/drupal/issues/2577417). As the basic idea of using batches was to circumvent issues with memory limit (in cli) and max execution times (in browser). Removing this means I can't use batches anymore if I know I do something very memory consuming, meaning I need to reinvent something new for this case.
Maybe we could set the limit to 60% to not interfere with migrate batch?