- 🇩🇪Germany dercheffe Sersheim, Germany
So would it be possible to stop queue processing when e.g. during my process() function a variable gets a specific value?
I want to achieve that a process only runs until e.g. 10 jobs in a queue are done successfully in one (cron) run. So I could use a kind of counter. - 🇩🇪Germany dercheffe Sersheim, Germany
Is there a workaround to suspend/stop processing a queue until the issue is fixed?
All I want to achieve is following:
If a variable has value x then don't process the queue during cron. Tried to do this with a preprocess event listener but don't know how to stop the queue processing.
- First commit to issue fork.
- last update
about 1 year ago Composer require failure I added a property to the Queue called 'suspended'. You can conditionally set this to suspended depending on your use-case. I think it's better to keep it separate from the Job result.
- last update
about 1 year ago Composer require failure I added a property to the JobResult for success and failure which will allow you to break from current processing. You can separately set the queue to suspended.
- Status changed to Needs review
about 1 year ago 8:05pm 1 February 2024 - last update
about 1 year ago Composer require failure - last update
about 1 year ago Composer require failure - last update
11 months ago Composer require failure - last update
11 months ago 19 pass - last update
11 months ago Composer require failure - last update
11 months ago 19 pass - Assigned to rowrowrowrow
Hi, can I get some feedback on the development for this feature?
- Status changed to RTBC
12 days ago 5:58pm 24 February 2025 - 🇬🇧United Kingdom c_archer Cumbria
Latest patch works as expected, am able to suspend a queue
- First commit to issue fork.
- 🇭🇷Croatia valic Osijek
Updated the MR, $result variable had been undefined. And there is no reason to check if $job exist, at that point because of earlier check's it should exist https://git.drupalcode.org/project/advancedqueue/-/merge_requests/10/dif...
And unit tests are passing again