Fokko closed pull request #4228: [AIRFLOW-1196][AIRFLOW-2399] Add templated field in TriggerDagRunOperator URL: https://github.com/apache/incubator-airflow/pull/4228
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/airflow/operators/dagrun_operator.py b/airflow/operators/dagrun_operator.py index 53814af410..8d339894f4 100644 --- a/airflow/operators/dagrun_operator.py +++ b/airflow/operators/dagrun_operator.py @@ -35,7 +35,7 @@ class TriggerDagRunOperator(BaseOperator): """ Triggers a DAG run for a specified ``dag_id`` - :param trigger_dag_id: the dag_id to trigger + :param trigger_dag_id: the dag_id to trigger (templated) :type trigger_dag_id: str :param python_callable: a reference to a python function that will be called while passing it the ``context`` object and a placeholder @@ -50,7 +50,7 @@ class TriggerDagRunOperator(BaseOperator): :param execution_date: Execution date for the dag :type execution_date: datetime.datetime """ - template_fields = tuple() + template_fields = ('trigger_dag_id',) template_ext = tuple() ui_color = '#ffefeb' ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services