uranusjr commented on code in PR #31421:
URL: https://github.com/apache/airflow/pull/31421#discussion_r1206424030


##########
airflow/api_connexion/schemas/task_instance_schema.py:
##########
@@ -158,7 +158,9 @@ class SetTaskInstanceStateFormSchema(Schema):
     include_downstream = fields.Boolean(required=True)
     include_future = fields.Boolean(required=True)
     include_past = fields.Boolean(required=True)
-    new_state = TaskInstanceStateField(required=True, 
validate=validate.OneOf([State.SUCCESS, State.FAILED]))
+    new_state = TaskInstanceStateField(
+        required=True, validate=validate.OneOf([State.SUCCESS, State.FAILED, 
State.SKIPPED])

Review Comment:
   Let’s change these to use TaskInstanceState instead (also the one below)



-- 
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]

Reply via email to