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 18:37:02 UTC

[GitHub] [airflow] o-nikolas commented on a change in pull request #19410: Use XCom to correctly display the execution date from triggered DAG in TriggerDagOperator's extra link

o-nikolas commented on a change in pull request #19410:
URL: https://github.com/apache/airflow/pull/19410#discussion_r758635517



##########
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:
       Hey @ashb, Sure I can make this change, but I'm curious, why do you want the run id pushed as well? Is there some other feature that depends on it? It isn't required for this feature as far as I can tell.




-- 
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