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

Update deploy:hook command to use batch system #4800

Merged
merged 4 commits into from
Aug 6, 2021

Conversation

bircher
Copy link
Contributor

@bircher bircher commented Jul 28, 2021

The original deploy:hook implementation passed the $sandbox variable to the deploy hooks to have the same signature as the post_update hooks. But we faked the batch process. However after using this for a while we found that it is necessary to do the batching in order to reduce the memory consumption that is unavoidable due to lots of static caches not being able to be cleared.

Copy link
Member

@weitzman weitzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Lets give folks a day or two to comment, and then we merge.

@rafatwork
Copy link

Just wanted to mention that I tested this with a deploy hook of mine that was causing out of memory issue. This PR fixed it :) Thanks!

@weitzman weitzman merged commit 844c3cc into drush-ops:10.x Aug 6, 2021
richardbporter pushed a commit to richardbporter/drush that referenced this pull request Oct 14, 2021
* Update deploy:hook command to use batch system

* fix coding standards 🙈

* strip tags from the exception translation so that it can be json encoded on windows :shurg:

* try one last time to apease php on windows
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