Repository navigation
Added dagrun delete command to airflowctl - #68046
Conversation
f18223f to
81db712
Compare
potiuk
left a comment
There was a problem hiding this comment.
Clean, well-scoped addition — delete() follows the existing get/list operation pattern, the generated help artifacts are properly regenerated (not hand-edited), and the unit test covers the 204 path. Correctly no newsfragment for airflow-ctl.
The CI failure was just main-branch drift (Static checks / end-of-file-fixer on generated/provider_dependencies.json.sha256sum, which isn't part of this PR). I've rebased the branch onto latest main to clear it — once CI re-runs green, this looks good to merge.
This review was drafted by an AI-assisted tool and confirmed by an Apache Airflow maintainer. The findings below are observations, not blockers; an Apache Airflow maintainer — a real person — will take the next look at the PR. If you think a finding is mis-applied, please reply on the PR and a maintainer will weigh in.
More on how Apache Airflow handles maintainer review: contributing-docs/05_pull_requests.rst.
Drafted-by: Claude Code (Opus 4.8); reviewed by @potiuk before posting
81db712 to
447e86d
Compare
|
Would appreciate a review on this. Thanks. |
447e86d to
d84837b
Compare
|
Would appreciate a review on this. |
4acaa2f to
296a5a4
Compare
296a5a4 to
641a66f
Compare
|
Thank justin :) |
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 3570a75 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 in #69263 |
…ache#68046) * Add dagrun delete command to airflowctl * Adjust docstring to Dag (cherry picked from commit 3570a75) Co-authored-by: Justin Pakzad <[email protected]>
…8046) (#69263) * Add dagrun delete command to airflowctl * Adjust docstring to Dag (cherry picked from commit 3570a75) Co-authored-by: Justin Pakzad <[email protected]>
…8046) (#69263) * Add dagrun delete command to airflowctl * Adjust docstring to Dag (cherry picked from commit 3570a75) Co-authored-by: Justin Pakzad <[email protected]>
Added dagrun delete command to airflowctl. Updated the
DagRunOperationsclass with a newdelete()method. Corresponding unit test was added. Updated the integration tests with the new command as well. I placed the delete after the xcom commands run in the test since they rely on a dag run.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.