Add airflowctl tasks state command#66213
Conversation
|
@PrithviBadiga Hi! It looks like we've opened overlapping PRs for the same issue. It would be great if we could discuss our differences and see how to best combine our work. |
|
@PrithviBadiga Why don't you check out my PR and share your thoughts? Then, we could look into making a co-authored commit together. |
|
@PrithviBadiga — Removing the The label's contract is that the PR is ready for maintainer review — a regression like this means the PR temporarily isn't. Rebase your branch onto the latest
No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
a9b8826 to
00f5566
Compare
@potiuk xRebased onto the latest |
ea341c5 to
b9835a3
Compare
bugraoz93
left a comment
There was a problem hiding this comment.
Could you please move the logic to operations.py? You can check out examples there
Adds
airflowctl tasks stateto theairflow-ctlCLI.Updates:
airflowctl.ctl.commands.task_command.stateGET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}AirflowConsolecli_config.pyairflowctl-testscommand listVerification:
PYTHONPATH=/Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/src /Users/prith/Desktop/Codex/airflow/.venv/bin/python -m pytest /Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/tests/airflow_ctl/ctl/commands/test_task_command.py /Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py -qPYTHONPATH=/Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/src /Users/prith/Desktop/Codex/airflow/.venv/bin/python -m ruff check /Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/src/airflowctl/ctl/commands/task_command.py /Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/src/airflowctl/ctl/cli_config.py /Users/prith/Desktop/Codex/airflow-66174/airflow-ctl/tests/airflow_ctl/ctl/commands/test_task_command.py /Users/prith/Desktop/Codex/airflow-66174/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.pyThis closes: #66174