adamspriggs commented on a change in pull request #20455:
URL: https://github.com/apache/airflow/pull/20455#discussion_r773917669



##########
File path: airflow/www/views.py
##########
@@ -4102,6 +4103,12 @@ def action_set_running(self, drs: List[DagRun]):
         """Set state to running."""
         return self._set_dag_runs_to_active_state(drs, State.RUNNING)
 
+    @action('set_skipped', "Set state to 'skipped'", '', single=False)
+    @action_has_dag_edit_access
+    def action_set_skipped(self, drs: List[DagRun]):
+        """Set state to skipped."""
+        return self._set_dag_runs_to_active_state(drs, State.SKIPPED)

Review comment:
       I Incorrectly implemented for DAGRuns instead of TaskInstance. Fixed 
this and tested it locally. Works as intended on the taskinstance/list/ page. 
   
   




-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to