Improve messaging for drush quant-run-queue command

Created on 5 February 2023, about 2 years ago
Updated 8 February 2023, about 2 years ago

Problem/Motivation

It isn't clear that the queue will be processed upon cron when running drush quant-run-queue.

Old problem

Running drush quant-run-queue isn't processing queue items.

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant_api module
  • Use devel_generate to generate content including image files
  • Go to Seed tab (/admin/config/services/quant/seed)
  • Check: Export nodes (Article, Basic page), Export taxonomy terms, Export theme assets, Export Views, Custom routes (/node)
  • Click Save configuration button
  • From command-line, run drush quant-queue-info and you should see items in the queue
  • From command-line, run drush quant-run-queue
  • From command-line, run drush quant-queue-info and you should see items in the queue
  • Result: The number of items in the queue doesn't change after running drush quant-run-queue
  • Expected result: The items in the queue should be processed when running drush quant-run-queue
  • Example:

    Kristens-MacBook-Pro:quantcdn kristenpol$ ddev drush quant-run-queue
    Running Quant operation for kristentesting: drupal7rc4                                                                                       [ok]
    Quant: Forking seed worker with 5 threads.                                                                                                   [ok]
    Kristens-MacBook-Pro:quantcdn kristenpol$ ddev drush quant-queue-info
    36 items in the queue.                                                                                                                       [ok]
    Kristens-MacBook-Pro:quantcdn kristenpol$ ddev drush quant-run-queue
    Running Quant operation for kristentesting: drupal7rc4                                                                                       [ok]
    Quant: Forking seed worker with 5 threads.                                                                                                   [ok]
    Kristens-MacBook-Pro:quantcdn kristenpol$ ddev drush quant-queue-info
    36 items in the queue.    
    

    Proposed resolution

    Update message when command runs to make how it works more clear.

    Old resolution

    Get drush command working.

    Remaining tasks

    1. Update messaging
    2. Review and test
    3. Commit :)

    User interface changes

    The command messaging will be changed.

    API changes

    Data model changes

    πŸ“Œ Task
    Status

    Fixed

    Version

    1.0

    Component

    Documentation

    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

    Production build 0.71.5 2024