FelixReuthlingerBMW opened a new issue #11080:
URL: https://github.com/apache/airflow/issues/11080
**Description**
I want to run Airflow DAGs triggered using the REST API in different queue
and want to set the queue name on calling the REST API.
**Use case / motivation**
Currently Airflow does support to set queues only on a per DAG deployment
level, but in a case where I have a DAG that I want once run with high-prio and
1000s of times with a lower prio, I don't have a chance to make this happen
using the REST API (which we need to use for doing programmatic integration
with other software / services.
A work around is to deploy the DAG twice with some different hard-coded
value for setting the queue, but this will cause huge amount of code and/or
code deployment duplications. Also probably causing naming conflicts, etc.
Applying work arounds for the part that a feature is missing that I can set the
queue for a DAG run using the REST API's data model.
I would want to just send a Json like this to Airflow and it will figure out
how to queue the DAG run:
{
"conf": {
... my application config for the DAG run...
}
"queue": "<queue name>"
}
**Related Issues**
Not aware of, yet.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]