jh242 commented on code in PR #27805:
URL: https://github.com/apache/airflow/pull/27805#discussion_r1036383024
##########
airflow/www/views.py:
##########
@@ -1895,6 +1895,20 @@ def trigger(self, session=None):
flash(f"Cannot create dagruns because the dag {dag_id} has import
errors", "error")
return redirect(origin)
+ recent_confs = (
+ session.query(DagRun.conf)
+ .filter(
+ DagRun.dag_id == dag_id,
+ DagRun.run_type == DagRunType.MANUAL,
+ DagRun.conf.isnot(None),
+ )
+ .order_by(DagRun.execution_date.desc())
+ .limit(5)
+ .all()
Review Comment:
I've tried this and it did not. Removing the .order_by made it work though.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]