uranusjr commented on code in PR #42404:
URL: https://github.com/apache/airflow/pull/42404#discussion_r1848746052
##########
airflow/api_connexion/schemas/task_instance_schema.py:
##########
@@ -212,8 +210,8 @@ class SetTaskInstanceStateFormSchema(Schema):
@validates_schema
def validate_form(self, data, **kwargs):
"""Validate set task instance state form."""
- if not exactly_one(data.get("logical_date"), data.get("dag_run_id")):
- raise ValidationError("Exactly one of logical_date or dag_run_id
must be provided")
+ if not data.get("dag_run_id"):
+ raise ValidationError("dag_run_id must be provided")
Review Comment:
We don’t need this if we set `dag_run_id = fields.Str(required=True)`.
--
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]