tooptoop4 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_r368826713
##########
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:
user is doing simple click from UI, nothing selected so why should they see
nasty error?
----------------------------------------------------------------
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