uranusjr commented on code in PR #66520:
URL: https://github.com/apache/airflow/pull/66520#discussion_r3272996988
##########
airflow-core/src/airflow/cli/cli_config.py:
##########
@@ -1018,6 +1018,36 @@ def string_lower_type(val):
ARG_ASSET_URI = Arg(("--uri",), default="", help="Asset URI")
ARG_ASSET_ALIAS = Arg(("--alias",), default=False, action="store_true",
help="Show asset alias")
+# partitions clear
+ARG_PARTITIONS_CLEAR_DAG_ID = Arg(
+ ("-d", "--dag-id"),
+ help="The id of the Dag whose DagRun partition fields should be cleared",
+ required=True,
+)
+ARG_PARTITIONS_CLEAR_START_DATE = Arg(
+ ("-s", "--start-date"),
+ help="Only clear DagRuns whose partition_date is on or after this date",
+ type=parsedate,
+)
+ARG_PARTITIONS_CLEAR_END_DATE = Arg(
+ ("-e", "--end-date"),
+ help="Only clear DagRuns whose partition_date is on or before this date",
+ type=parsedate,
+)
Review Comment:
I wonder if these can be merged into e.g. `--date 2025-01-01~2025-01-31`.
By the way, if I want to clear the entire January, what should the end date
be? `2025-01-31` would only clear until midnight 31st (right?) but `2026-02-01`
would incorrectly include midnight 1st Februrary. This is likely not what users
expect.
--
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]