You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kamil Bregula (Jira)" <ji...@apache.org> on 2020/04/19 14:01:00 UTC

[jira] [Commented] (AIRFLOW-2153) Dataflow Operator doesn't allow multiple extra_packages

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

Kamil Bregula commented on AIRFLOW-2153:
----------------------------------------

I prepared fix: https://github.com/apache/airflow/pull/8394

> Dataflow Operator doesn't allow multiple extra_packages
> -------------------------------------------------------
>
>                 Key: AIRFLOW-2153
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2153
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: gcp
>    Affects Versions: 1.9.0
>            Reporter: Maximilian Roos
>            Priority: Minor
>
> If we have multiple `extra_packages` to pass to DataFlow - for example we'd want to pass:
> {{python run_dataflow.py --extra-package=a.whl --extra-package=b.whl}}
>  
> ...I don't think this currently isn't possible. Because the args are passed as dictionary, you can't have multiple identical keys. 
>  
> A hacky workaround is to append a key containing everything you need, with an empty value: 
>  
> {{arg_dict['--extra-package=a.whl --extra-package=b.whl'] = ' '}}
>  
> I think ideally we would be able to pass a list of 2-tuples as well as a dict, or pass a list as a dict value which would then be repeated 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)