GitHub user nehemias-bedrockanalytics added a comment to the discussion: 
`dag_run.get_task_instances` alternative in airflow 3

> @nehemias-bedrockanalytics you could use the Airflow REST API to get task 
> instances without DB access. [This 
> endpoint](https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_task_instances)
>  of the API returns task instances if you provide a dag_id and run_id.

Thank you for this suggestion, I am trying to avoid the REST API as much as I 
can just because I would need to provide user credentials from within the Dag 
Run, which seems odd given we are already inside Airflow, an approach like 
`SUPERVISOR_COMMS` would be ideal. Or perhaps there's a way to authenticate to 
the REST API from within a Dag Run ?

GitHub link: 
https://github.com/apache/airflow/discussions/56726#discussioncomment-15631733

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to