docs icon indicating copy to clipboard operation
docs copied to clipboard

[Content]: Queue Channels

Open AugustMiller opened this issue 2 years ago • 3 comments

Product

Craft CMS

Description

The Queue article doesn't mention “channels,” why you would configure them, or how to push jobs into specific channels.

AugustMiller avatar Nov 09 '23 18:11 AugustMiller

@timkelty was looking into supporting queue channels via flags on the CLI (i.e. --channel heavy); otherwise, I'm not sure we really have a smart way of handling this (beyond creating a second queue component and associated runner actions)…

AugustMiller avatar Nov 28 '23 17:11 AugustMiller

https://discord.com/channels/456442477667418113/1171428607831318550

I talked to Brandon, and here's the plan:

  • add --queue=queue and --channel=default options to queue cli commands (defaults shown)
  • For the CP Utility:
    • instead of just showing the Craft->$app->getQueue() component, we would get any components that implements craft\queue\QueueInterface.
    • If more than 1, we would show a dropdown to switch between components to show queue items

timkelty avatar Nov 28 '23 18:11 timkelty

Ben Croker published an article this morning that suggests custom queues provide their own console controllers, so this may be solvable without any changes to Craft!

AugustMiller avatar Dec 12 '23 16:12 AugustMiller