Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In Cron
:
$this->queueFactory->get($queue_name)->createQueue();
$queue_worker = $this->queueManager->createInstance($queue_name);
whee, what? That needs to be documented.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2359037-queue-worker-docs-10.patch | 1.91 KB | jhodgdon |
Comments
Comment #1
joachim CreditAttribution: joachim commentedLooks good.
Comment #2
jhodgdonCan we clean up the writing here a bit?
the id => the ID
and sentence is a bit hard to parse by human readers...
Comment #3
jhodgdonHow about this? Ended up rewriting most of the QueueWorker plugin docs... did not bother with an interdiff since both of the lines in the previous patch were changed in this new patch (plus more), so it is kind of pointless.
Comment #4
jhodgdonAmazingly, this patch still applies and still needs review after a year... uploading newly rolled patch to bring to attention of new test bot.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedLooks great overall. One minor question:
Can we remove the "or" in that sentence? Parallel processing is only possible outside of the cron process, right?
Comment #6
jhodgdonGood point. I think the parallel part is kind of irrelevant, so removed.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedI just wanted to note that I looked around for a better example of a queue, preferably one that doesn't use workers, but I find the cron run to be the easiest to understand (conceptually).
Anyway:
I missed it the previous time, but the 80 chars rule is not respected here.
Comment #8
jhodgdonUm... dreditor doesn't agree with #7? I think it's under 80 characters, by a few...
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedUnder but not wrapped as close to, no?
Comment #10
jhodgdonAh, right. Rewrapped that Worker plugins paragraph. Did not make an interdiff file. Only a rewrap.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedLooks good to me. I think it's a vast improvement.
Comment #13
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!