Add quant_purger drush commands

Created on 30 July 2023, over 1 year ago
Updated 22 January 2024, 10 months ago

Problem/Motivation

It is useful to handle the quant_purger configuration and registry clearing via drush.

Steps to reproduce

  1. Install and config quant, quant_api, quant_purger, purge, purge_ui
  2. Check drush commands
  3. Result: nothing shown for quant_purger
  4. Possible result: quant_purger commands such as clearing registry and adding/removing config items

Proposed resolution

At minimum, it would be useful to be able to clear the registry via drush. Adding and removing config items would be nice to have.

Remaining tasks

  1. Figure out what drush commands to add
  2. Update code
  3. Review and test
  4. Commit :)

User interface changes

API changes

Drush commands to interact with quant_purger.

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Kristen Pol
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Here are the purge drush commands. The most relevant to this issue is:p:queue-empty (pqe)

    p:                                                                                                                                                                
      p:debug-dis (pddis)                                              Disable debugging for all of Purge's log channels.                                             
      p:debug-en (pden)                                                Enable debugging for all of Purge's log channels.                                              
      p:diagnostics (pdia)                                             Generate a diagnostic self-service report.                                                     
      p:invalidate (pinv)                                              Directly invalidate an item without going through the queue.                                   
      p:processor-add (pradd)                                          Add a new processor.                                                                           
      p:processor-ls (prls)                                            List all enabled processors.                                                                   
      p:processor-lsa (prlsa)                                          List available processor plugin IDs that can be added.                                         
      p:processor-rm (prrm)                                            Remove a processor.                                                                            
      p:purger-add (ppadd)                                             Create a new purger instance.                                                                  
      p:purger-ls (ppls)                                               List all configured purgers in order of execution.                                             
      p:purger-lsa (pplsa)                                             List available plugin IDs for which purgers can be added.                                      
      p:purger-mvd (ppmvd)                                             Move the given purger DOWN in the execution order.                                             
      p:purger-mvu (ppmvu)                                             Move the given purger UP in the execution order.                                               
      p:purger-rm (pprm)                                               Remove a purger instance.                                                                      
      p:queue-add (pqa)                                                Add one or more items to the queue for later processing.                                       
      p:queue-browse (pqb)                                             Inspect what is in the queue by paging through it.                                             
      p:queue-empty (pqe)                                              Empty the entire queue.                                                                        
      p:queue-stats (pqs)                                              Retrieve the queue statistics.                                                                 
      p:queue-volume (pqv)                                             Count how many items are currently in the queue.                                               
      p:queue-work (pqw)                                               Process one or more chunks of items from the queue.                                            
      p:queuer-add (puadd)                                             Add a new queuer.                                                                              
      p:queuer-ls (puls)                                               List all enabled queuers.                                                                      
      p:queuer-lsa (pulsa)                                             List available queuer plugin IDs that can be added.                                            
      p:queuer-rm (purm)                                               Remove a queuer.                                                                               
      p:types (ptyp)                                                   List all supported cache invalidation types.                                                   
    
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Fix typo.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    See parent issue for some potential drush commands:

    https://www.drupal.org/project/quantcdn/issues/3378059#comment-15407698 πŸ“Œ META: Improve quant_purger UX Active

    Bumping to normal as this makes things harder for people.

Production build 0.71.5 2024