turbaszek commented on a change in pull request #11778:
URL: https://github.com/apache/airflow/pull/11778#discussion_r512725557



##########
File path: airflow/operators/dagrun_operator.py
##########
@@ -38,7 +38,8 @@ class TriggerDagRunLink(BaseOperatorLink):
     name = 'Triggered DAG'
 
     def get_link(self, operator, dttm):
-        return 
f"/graph?dag_id={operator.trigger_dag_id}&root=&execution_date={quote(dttm.isoformat())}"
+        query = {"dag_id": operator.trigger_dag_id, "root": "", 
"execution_date": dttm.isoformat()}
+        return build_airflow_url_with_query(query)

Review comment:
       This will work only if inside of application context and I'm not sure if 
this is necessary
   ```
   RuntimeError: Attempted to generate a URL without the application context 
being pushed. This has to be executed when application context is available.
   ```




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to