[ 
https://issues.apache.org/jira/browse/AIRFLOW-5400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923384#comment-16923384
 ] 

Julien Debbia commented on AIRFLOW-5400:
----------------------------------------

Find another way to achieve it. I am using a BranchPythonOperator that will 
define which queue I have to use and I set it manually on the other tasks.

> "queue" parameter can't interpret Jinja2 templated value
> --------------------------------------------------------
>
>                 Key: AIRFLOW-5400
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5400
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators, xcom
>    Affects Versions: 1.10.2
>            Reporter: Julien Debbia
>            Priority: Major
>
> Hello,
> I'm trying to manage dynamically the queue value by defining it with an 
> custom operator that push a XCOM with the correct value (example: "queue1").
> When I try to pull it from another operator (custom or native) with the 
> parameter "queue", it never interpret it and in the Task instance details, 
> instead of the string value, I can see the templated value (for example: \{{ 
> ti.xcom_pull(tasks_id="get_queue") }} instead of "queue1").
> I added a BashOperator to echo the xcom value and everything is fine, I can 
> see the value "queue1".
> This is a very big issue for me because I based all my development on this 
> and it is not working.
> In the documentation of the BaseOperator, the queue parameter documentation 
> indicates that only CeleryExecutor can handle queue dynamically, so I 
> switched from SequentialExecutor to CeleryExecutor but without success.
>  
> I asked on Slack about it and a nice guy told me that it is possible to pull 
> a XCOM value for the queue parameter and after many tries, I never succeed on 
> pulling XCOM for this parameter.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to