You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[AIP-94] airflowctl tasks: add TasksOperations and TaskInstancesOperations to operations.py #66173
Add TasksOperations and TaskInstancesOperations classes to airflowctl/api/operations.py.
These return the API response directly with no transformation — CLI commands are auto-generated
by CommandFactory. Also unblocks Issue C (custom task commands), which reuses the same operations.
All REST API endpoints already exist.
Operations to add
On top of #61547, verify the existence, and please don't duplicate
Note
anything work with single endpoint under operation.py
anything needs multiple endpoint or transformation goesn ctl/commands
including unit and integration test under airflow-ctl-tests/
Committer
I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Hi @bugraoz93, I'd like to work on this. I see PR #63889 is a stale draft covering similar ground — I'll implement just the 5 operations listed here following the existing pattern in operations.py (like DagsOperations, PoolsOperations). Will submit a PR shortly.
Activity
riyanmohmmeed-dev commentedon Apr 30, 2026
Hi @bugraoz93, I'd like to work on this. I see PR #63889 is a stale draft covering similar ground — I'll implement just the 5 operations listed here following the existing pattern in operations.py (like DagsOperations, PoolsOperations). Will submit a PR shortly.
csrinivas2130 commentedon May 2, 2026
Hi @riyanmohmmeed-dev are you working on this? let me know I can take up incase you did n't complete.
awadhesh14 commentedon May 3, 2026
@bugraoz93
Please review #66318
One thing to note:
Implemented TaskInstancesOperations.clear using:
POST /api/v2/dags/{dag_id}/clearTaskInstances
Validated that task instances are successfully cleared and re-executed by the scheduler.
While testing via airflowctl, the command executes successfully but fails during output handling with:
AttributeError: 'Namespace' object has no attribute 'output'
This appears to be a CLI formatting issue after execution, not related to the API behavior itself.
Ryota-Di commentedon Aug 27, 2026
Hi, I'd like to work on this issue. Is it still available?
jasperjonkhans commentedon Aug 29, 2026
Hi! I’d be interested in contributing to this issue.
Zuhaibkhan100 commentedon Oct 25, 2026
I'd be happy moving forward with this issue ! feel free to assign it to me !
gitPratikSingh commentedon Oct 31, 2026
Working on this — opened #76145 adding TasksOperations.get/list.
Add airflowctl tasks get and list operations
Add airflowctl tasks get and list operations (#76145)