You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow jinja templates to be used in task params #7910
At present when defining an Operator it isn't possible to reference template variables such as ds in the params block.
Enabling this makes it easier to reuse Operators with very similar configurations. An example of this might be a BashOperator which runs a large (possibly external) script that only has a couple of configuration changes used between different runs.
Use case / motivation
For example, you might have something like this:
Hey @dimberman, I am very late to the party but the 2 PRs has been closed and the issue is marked as resolved.
Is there a reason why jinja template cannot be used within params ? Or is it just waiting for someone to do it ?
Activity
a-jumani commentedon Mar 27, 2020
If you don't mind, I'd like to take stab at it. Have been using Airflow for the past few months, would love to contribute.
dmateusp commentedon Dec 15, 2020
hi folks! I was looking for this feature and I'm seeing both this issue and 2 PRs closed, but it does not seem resolved?
elephantmetropolis commentedon Jun 8, 2023
Hey @dimberman, I am very late to the party but the 2 PRs has been closed and the issue is marked as resolved.
Is there a reason why jinja template cannot be used within
params? Or is it just waiting for someone to do it ?