TheChyeahhh opened a new pull request, #67754:
URL: https://github.com/apache/airflow/pull/67754

   ## Summary
   
   Implements AIP-94: adds a `airflowctl tasks state` CLI subcommand that 
displays the state of a specific task instance.
   
   Fixes #66174
   
   ## Usage
   
   ```
   airflowctl tasks state <dag_id> <dag_run_id> <task_id> [--output 
table|json|yaml|plain]
   ```
   
   ## Description
   
   This new subcommand fetches a task instance via the Airflow REST API (`GET 
/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}`) and displays its 
state (e.g. success, failed, running, queued, etc.) along with full task 
instance details.
   
   ## Files Changed
   
   - **`airflow-ctl/src/airflowctl/ctl/commands/task_command.py`** — new file 
with the `state` function
   - **`airflow-ctl/src/airflowctl/ctl/cli_config.py`** — added `ARG_TASK_ID`, 
`ARG_DAG_RUN_ID`, `TASK_COMMANDS`, and registered the `tasks` group


-- 
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]

Reply via email to