astahlman commented on a change in pull request #4396: [AIRFLOW-3585] - Add
edges to database
URL: https://github.com/apache/airflow/pull/4396#discussion_r257091521
##########
File path: airflow/www/views.py
##########
@@ -920,10 +924,16 @@ def clear(self):
dag_id = request.args.get('dag_id')
task_id = request.args.get('task_id')
origin = request.args.get('origin')
- dag = dagbag.get_dag(dag_id)
+ orm_dag = models.DagModel.get_dagmodel(dag_id)
+ if not orm_dag:
+ flash("Dag '{}' does not exist".format(dag_id), 'error')
Review comment:
nitpick for consistency:
```suggestion
flash("DAG '{}' does not exist".format(dag_id), 'error')
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services