xinbinhuang commented on a change in pull request #7170: [AIRFLOW-6562]
mushroom cloud error when clicking 'mark failed/success' from graph view of dag
that has never been run yet
URL: https://github.com/apache/airflow/pull/7170#discussion_r369346353
##########
File path: airflow/api/common/experimental/mark_tasks.py
##########
@@ -102,6 +102,10 @@ def set_state(
if dag is None:
raise ValueError("Received tasks with no DAG")
+ latest_execution_date = dag.latest_execution_date
+ if latest_execution_date is None:
+ return []
+
Review comment:
Double-checked this. I agree that it should not throw an (internal?) error.
I am wondering what's the reason for this error handling @jmcarp @ashb @kaxil
@potiuk as this is only used by the frontend `airflow/www/views.py`.
----------------------------------------------------------------
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]
With regards,
Apache Git Services