Problem/Motivation

During a recent staging deployment from PROD to DEV on Acquia, the DEV site became unresponsive and the deployment failed.
Many attempts at recovery were made, but drush wasn't able to work due to an "The URL is invalid." error that persisted.

After pulling the DB to work on it locally, the error led me to discover that the purge queue from the live site was still full and causing URL invalidation errors.

After clearing the queue, drush and the deployments went back to normal.

Steps to reproduce

Sync the database between environments.

Proposed resolution

Add a Drush sanitize plugin to the Purge Drush module so the queue empties when drush sql:sanitize is ran.

Remaining tasks

Create a PR with this change.

Issue fork purge-3273264

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robertshell22 created an issue. See original summary.

robertshell22’s picture

StatusFileSize
new2.33 KB

This patch mirrors the same implementation as the purge_queuer_url module has.

robertshell22’s picture

a.hover’s picture

Thanks for this patch.
There was a small issue with the paths that meant it was being added to "/purge_drush/src/Drush/Commands" (i.e. straight in the project root) instead of "/modules/purge_drush/src/Drush/Commands" which I have resolved in the attached patch.

japerry made their first commit to this issue’s fork.

  • japerry committed 19647c23 on 8.x-3.x
    feat: #3273264 Empty the purge queue during drush sql:sanitize
    
japerry’s picture

Status: Active » Fixed

The commands moved, so I had to rebase this patch before getting it into an MR. Its only registered once so Drush 12/13 should only run the hook once.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.