- Issue created by @swirt
- π©πͺGermany osopolar π©πͺ GER π
There was once a command for drupal console: #2920030: Add a Drupal Console command for clearing a queue β
- πΈπͺSweden johnwebdev
I suggest βadvancedqueue:queue:clear [queue_name]β
- πΈπͺSweden johnwebdev
I think these kind of commands should have a confirm/are you sure step, running this by mistake and clearing the queue by mistake is rough. And those things happen.
- π΅π°Pakistan Qaiser iqbal
@johnwebdev is right there should be a confirmation message before deleting it. I have applied the patch #6 and its now deleting the queue.
- Status changed to Needs work
12 months ago 10:22am 21 August 2024 - Status changed to Needs review
12 months ago 11:12am 21 August 2024 - πΊπ¦Ukraine rollins
I created MR where a confirmation message before deleting added
- Status changed to Needs work
9 months ago 7:14pm 4 November 2024 - πΈπͺSweden johnwebdev
This assumes incorrectly that the queue uses a database backend.
We shouldnβt assume that, and instead add a clear method to the backend interface and then call it.
- π¬π§United Kingdom alexpott πͺπΊπ
There's an interface we should be using to checking whether this is possible from a queue backend POV - see \Drupal\advancedqueue\Plugin\AdvancedQueue\Backend\SupportsDeletingJobsInterface - we could also consider adding another interface \Drupal\advancedqueue\Plugin\AdvancedQueue\Backend\SupportsClearingInterface and add a clear method to \Drupal\advancedqueue\Plugin\AdvancedQueue\Backend\Database that does the truncate.
- π¬π§United Kingdom alexpott πͺπΊπ
Note that π Integration with views bulk operations so actions can be selected against multiple jobs in the UI Active provides bulk functionality that can do this via the UI...