You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/29 11:22:11 UTC
[GitHub] [airflow] ashb commented on a change in pull request #19410: Use XCom to correctly display the execution date from triggered DAG in TriggerDagOperator's extra link
ashb commented on a change in pull request #19410:
URL: https://github.com/apache/airflow/pull/19410#discussion_r758268190
##########
File path: airflow/operators/trigger_dagrun.py
##########
@@ -156,6 +166,11 @@ def execute(self, context: Dict):
else:
raise e
+ # Store the execution date from the dag run (either created or found above) to
+ # be used when creating the extra link on the webserver.
+ ti = context['task_instance']
+ ti.xcom_push(key=XCOM_EXECUTION_DATE_ISO, value=dag_run.execution_date.isoformat())
Review comment:
```suggestion
ti.xcom_push(key=XCOM_EXECUTION_DATE_ISO, value=dag_run.execution_date.isoformat())
ti.xcom_push(key="run_id", value=dag_run.run_id)
```
Too plese
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org