- πΊπΈUnited States bvoynick
A use case where I'm seeing this come up is importing a snapshot of a production environment elsewhere. I just had a content restoration process on a pre-production environment killed during its drush deploy, because runtime went over 15 minutes, due to the large amount of POSTs it was attempting to chew through. (The API key for this site is provided by environment variable, in Production only, and not stored in the Drupal database. Hence, even though I am using a production database with the processors enabled, there is nevertheless no API key in the context of restoring that database in this other environment.)
The site is set up so that `drush cim` / `drush deploy` will indeed uninstall all processors, and in fact all Purge & Fastly suite modules, when in a non-Production environment. But module installation state is in the database. When importing a Prod database elsewhere, the modules will have to be actively uninstalled during configuration import. Simply uninstalling these modules is triggering these POSTs, and resulting 404s, due to the lack of service ID and API key.
- π¬π§United Kingdom jrsouth
@bvoynick It's not the cleanest, but we've been using the below to manually invalidate the purge credentials in non-production deployments (mostly local environments).
drush sset fastly.state.valid_purge_credentials FALSE
May be of use in your case β perhaps before the drush cim?
(...Might be of no use at all!)
- Status changed to RTBC
7 months ago 11:56am 25 April 2024 - π©π°Denmark arnested
This is a good and useful improvement.
I have tested the code in our environments and reviewed the patch. All good!