Rishabh00b opened a new pull request, #76696: URL: https://github.com/apache/airflow/pull/76696
Add airflowctl `triggers list` and `triggers get` commands. `GET /triggers` reports every trigger, whatever it runs for, with its status and failure history, which is what an operator needs when deferred tasks seem stuck. airflowctl had no command for it, so that check meant a hand-written REST call. - `triggers list` accepts `--kind`, `--status`, `--triggerer-hostname`, `--dag-id`, `--asset-id`, `--limit` (default 100), `--offset` and `--order-by`. Unset filters are not sent. - `triggers get <trigger_id>` returns one trigger. - The commands are generated from the new `TriggersOperations`; help texts, the help images and their hashes are updated. - The integration tests run `triggers list` only, and are skipped on servers older than 3.5.0 because the endpoint is recent. `triggers get` is excluded from the coverage check because the test environment has no trigger to fetch. Checks run: the airflow-ctl unit tests (new tests cover the paths and every query parameter), a run of the CLI against a local fake API to check the request URL and the output, the help-text and command-coverage scripts, ruff and mypy on the changed files. The integration tests and the breeze-based hooks were not run locally (no Docker); the help images were generated with the same rendering as the committed ones. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (Claude Code) -- 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]
