[
https://issues.apache.org/jira/browse/AIRFLOW-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kamil Bregula resolved AIRFLOW-2153.
------------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
> 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
> Fix For: 2.0.0
>
>
> 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)