You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2026/06/23 09:15:09 UTC
Re: [PR] Add partition clear support to REST API matching the CLI [airflow]
uranusjr commented on code in PR #68702:
URL: https://github.com/apache/airflow/pull/68702#discussion_r3458473307
##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -59,6 +59,54 @@ class BulkDAGRunBody(StrictBaseModel):
note: str | None = Field(None, max_length=1000)
+class PartitionSelectorMixin(StrictBaseModel):
+ """Partition filter fields shared by bulk-clear and clearPartitions bodies."""
+
+ partition_key: str | None = Field(
+ default=None,
+ description="Select runs by exact partition key match. Mutually exclusive with the other partition selectors.",
+ )
+ partition_date_start: datetime | None = Field(
+ default=None,
+ description="Inclusive start of the partition date window. The value is interpreted in the Dag's timetable timezone. Mutually exclusive with the other partition selectors.",
Review Comment:
Can we make these lines shorter by breaking the string please
--
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