Uh oh!
There was an error while loading. Please reload this page.
Add airflowctl tasks clear command - #69320
Conversation
henry3260
commented
Jul 3, 2026
reopen to trigger full ci test |
Uh oh!
There was an error while loading. Please reload this page.
bc74659 to
bd41f17Compare
henry3260
left a comment
There was a problem hiding this comment.
LGTM! need another pair of eyes
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
19a531b to
7524cecCompare7524cec to
d5d026eCompare
henry3260
left a comment
There was a problem hiding this comment.
That's really nice! It will be merged when ci greens
d5d026e to
865e1adCompareSigned-off-by: PoAn Yang <payang@apache.org>
865e1ad to
5485a1bCompareUh oh!
There was an error while loading. Please reload this page.
Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 41613f2 airflow-ctl/v0-1-testThis should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 41613f2 v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
Signed-off-by: PoAn Yang <payang@apache.org>
airflowctl tasks clear <dag_id>.TasksOperations.clearinoperations.py(POST /dags/{dag_id}/clearTaskInstances), from which the CLI command is auto-generated.ClearTaskInstancesBodyfield defaults.--task-idsas comma-separated ids or a JSON list oftask_id/[task_id, map_index].@deprecated_for_airflowctl("airflowctl tasks clear")and register it intest_command_deprecations.py.Add
TasksOperations.clear()inoperations.pycallingPOST /dags/{dag_id}/clearTaskInstances.airflowctl tasks clearis auto-generated from it. Bool flags ofClearTaskInstancesBodyfollow the datamodel field defaults: a baretasks cleardry-runs,--no-dry-runactually clears, and--run-on-latest-versionkeeps its tri-state fallback semantics.--task-idsaccepts comma-separated ids or a JSON list oftask_id/[task_id, map_index].Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.