ashb commented on code in PR #30478:
URL: https://github.com/apache/airflow/pull/30478#discussion_r1166552971
##########
airflow/www/views.py:
##########
@@ -2458,6 +2458,38 @@ def _mark_task_instance_state(
flash(f"Marked {state} on {len(altered)} task instances")
return redirect(origin)
+ def _mark_task_group_state(
+ self,
+ *,
+ dag_id: str,
+ run_id: str,
+ group_id: str,
+ origin: str,
+ upstream: bool,
+ downstream: bool,
+ future: bool,
+ past: bool,
+ state: TaskInstanceState,
+ ):
+ dag: DAG = get_airflow_app().dag_bag.get_dag(dag_id)
+
+ if not run_id:
+ flash(f"Cannot mark tasks as {state}, seem that DAG {dag_id} has
never run", "error")
Review Comment:
```suggestion
flash(f"Cannot mark tasks as {state}, as DAG {dag_id} has never
run", "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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]