How do I configure a Django Celery task to use a different queue, and set the…
- User
How do I configure a Django Celery task to use a different queue, and set the concurrency different for each queue?
Assistant
To configure a Django Celery task to use a different queue, you can use the
task_queuesandtask_default_queuesettings.For example, in your Django settings file, you can add the following:
CELERY_TASK_QUEUES = { 'default': { 'name': 'default', 'routing_key': 'default', }, 'high_priority': { 'name': 'high_priority', 'routing_key': 'high_priority', }, } CELERY_TASK_DEFAULT_QUEUE = 'default'
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.