You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/04 16:16:22 UTC

[GitHub] [airflow] bbovenzi commented on a change in pull request #20455: Add a button to set all tasks to skipped

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



##########
File path: airflow/www/views.py
##########
@@ -4534,6 +4535,14 @@ def action_set_retry(self, tis):
         self.update_redirect()
         return redirect(self.get_redirect())
 
+    @action('set_skipped', "Set state to 'skipped'", '', single=False)
+    @action_has_dag_edit_access
+    def action_set_skipped(self, tis):
+        """Set state to skipped."""
+        self.set_task_instance_state(tis, TaskInstanceState.SKIPPED)

Review comment:
       ```suggestion
           self.set_task_instance_state(tis, State.SKIPPED)
   ```
   `TaskInstanceState` was undefined when I was testing locally
   




-- 
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-unsubscribe@airflow.apache.org

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