You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (Jira)" <ji...@apache.org> on 2019/12/16 17:22:00 UTC

[jira] [Commented] (AIRFLOW-6218) PapermillOperator has no functional Jinja support

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

jack commented on AIRFLOW-6218:
-------------------------------

[~bolke] do you know what is the problem?

> 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
>            Priority: Major
>             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)