IamJasonBian opened a new pull request, #68776:
URL: https://github.com/apache/airflow/pull/68776
Adds a `tasks state` command to `airflowctl` and supports `--map-index` so
the
state of a specific mapped task instance can be retrieved through the CLI:
```
airflowctl tasks state --dag-id=example_bash_operator \
--dag-run-id="manual__..." --task-id=runme_0 [--map-index=N]
```
Also fixes the airflowctl integration test that exercised this area: it had
invoked the auto-generated `taskinstances get` command with `--dag-id`/
`--dag-run-id`/`--task-id` flags, which that command does not accept (it
takes
positional args), causing argparse to exit 2. The entry now uses `tasks
state`
(flags) to cover the new command, plus a correctly-formed positional
`taskinstances get` entry so both commands are exercised.
Supersedes #66509 (closed; could not be reopened via the API). Same branch
and
commits, with the integration-test fix added on top.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.8)
Generated-by: Claude Code (Opus 4.8) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
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]