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
Requirements is I want to setup several KubernetesPodOperators base on input parameters, for example, podNumber.
Currently, I add podNumber as airflow Variables, and create DAG as following code.
for i in range(pod_number):
KubernetesPodOperator(...)
The question is if I want to run task by API and pass podNumber in configuration JSON which can only be parsed by jinja template {{ dag_run.conf }}.
How can I do that? If there are some hooks? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Requirements is I want to setup several KubernetesPodOperators base on input parameters, for example, podNumber.
Currently, I add podNumber as airflow Variables, and create DAG as following code.
The question is if I want to run task by API and pass podNumber in configuration JSON which can only be parsed by jinja template {{ dag_run.conf }}.
How can I do that? If there are some hooks? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions