ephraimbuddy commented on code in PR #31421:
URL: https://github.com/apache/airflow/pull/31421#discussion_r1200010264
##########
airflow/api_connexion/schemas/task_instance_schema.py:
##########
@@ -171,7 +171,7 @@ class SetSingleTaskInstanceStateFormSchema(Schema):
"""Schema for handling the request of updating state of a single task
instance."""
dry_run = fields.Boolean(dump_default=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:
You also need to update the state in the openapi specification
https://github.com/apache/airflow/blob/985f3501806980e6612ae7fbe81669b001e93597/airflow/api_connexion/openapi/v1.yaml#L4244-L4249
--
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]