Michiel Ghyselinck created AIRFLOW-6218:
-------------------------------------------
Summary: PapermillOperator has no functional Jinja support
Key: AIRFLOW-6218
URL: https://issues.apache.org/jira/browse/AIRFLOW-6218
Project: Apache Airflow
Issue Type: Bug
Components: operators
Affects Versions: 2.0.0
Reporter: Michiel Ghyselinck
Fix For: 2.0.0
{color:#1d1c1d}I think there is something wrong with the PapermillOperator
({color}[https://github.com/apache/airflow/blob/master/airflow/operators/papermill_operator.py]{color:#1d1c1d}).
The jinja variables aren't replaced correctly. {color}
{color:#1d1c1d}For example, if I have a output notebook {color}{{/home/out-\{{
execution_date }}.ipynb}}{color:#1d1c1d} it will be replaced by
{color}{{/home/out-\{ execution_date }.ipynb}}{color:#1d1c1d} . I temporarily
fixed this by adding {color}{{template_fields = ('input_nb',
'output_nb')}}{color:#1d1c1d} to the PapermillOperator. {color}
{color:#1d1c1d}And I've changed the url parameter of the NoteBooks, also in the
PapermillOperator: {color}{{self.inlets.append(NoteBook(url=self.input_nb,
parameters=parameters))
self.outlets.append(NoteBook(url=self.output_nb))}}{color:#1d1c1d} but this is
probably not the correct fix... {color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)