Queue Create
queue_createCreate a Drupal queue ready to accept items. The implementation is resolved via settings.php, not a class name.
Instructions
Create a queue and make it ready to accept items.
class_name is refused rather than silently dropped. Drupal resolves a
queue's implementation in settings.php - queue_service_<name>, else
queue_default, else the queue.database service - and that service
must already exist in the container, so no API accepts a class name when
a queue is created. Accepting it would let a caller believe they had a
custom queue implementation when they had the default one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"queue_name": "<queue_name>"
},
"name": "queue_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_name | No | Drupal\Core\Queue\DatabaseQueue | |
| queue_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||