airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Tyukin <>
Subject Re: Good jinja templating in airflow examples
Date Wed, 18 Jan 2017 19:31:10 GMT
Hi Guilherme,

I guess it depends what exactly you want to do as not everything works with

>From documentation:

You can use Jinja templating with every parameter that is marked as
“templated” in the documentation.

You can open source code for operators and see what parameters are actually

For example, if you open source code for BashOperator
you will see this line of code:
template_fields = ('bash_command', 'env')

It means only bash_command and env will work with jinja templates.

On Wed, Jan 18, 2017 at 12:45 PM, Guilherme Marthe <> wrote:

> Hey folks!
> I am trying to write a dag that works well with jinja templating, since
> through my study of the documentation, is the best way to ensure
> compatibility with the back-fill function.
> Are you guys aware of any examples online with this functionality working?
> The, documentation is still a bit dry on insightful examples, and I am a
> noobie developer, so I am trying to make the best use of the tool in the
> "correct way".
> Thank you in advance for any resources you guys can share!
> Gui
> Ps: I ve been told I can email you guys with questions like these :) Hope
> this is not a hassle ^_^

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message