lxndrslr opened a new issue, #56465: URL: https://github.com/apache/airflow/issues/56465
### Apache Airflow version 3.1.0 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? When trying to call ti.get_task_states from a DAG callback it gets stuck and does not return an error. [test_task_instances_dag.py.log](https://github.com/user-attachments/files/22752822/test_task_instances_dag.py.log) [attempt=1.log](https://github.com/user-attachments/files/22752827/attempt.1.log) [test_task_instances_dag.py](https://github.com/user-attachments/files/22752823/test_task_instances_dag.py) ### What you think should happen instead? I think it should throw an error if calling the API is not allowed, give an timeout error after some time or return the correct result. ### How to reproduce Use the following DAG and check the dag_processor logs. It starts executing but does not throw an error or return the done log. The task logs show how the output should be. [test_task_instances_dag.py](https://github.com/user-attachments/files/22752850/test_task_instances_dag.py) ### Operating System Debian GNU/Linux 12 (bookworm ### Versions of Apache Airflow Providers apache-airflow-providers-amazon==9.14.0 apache-airflow-providers-celery==3.12.3 apache-airflow-providers-cncf-kubernetes==10.8.1 apache-airflow-providers-common-compat==1.7.4 apache-airflow-providers-common-io==1.6.3 apache-airflow-providers-common-messaging==2.0.0 apache-airflow-providers-common-sql==1.28.1 apache-airflow-providers-docker==4.4.3 apache-airflow-providers-elasticsearch==6.3.3 apache-airflow-providers-fab==2.4.3 apache-airflow-providers-ftp==3.13.2 apache-airflow-providers-git==0.0.8 apache-airflow-providers-google==18.0.0 apache-airflow-providers-grpc==3.8.2 apache-airflow-providers-hashicorp==4.3.2 apache-airflow-providers-http==5.3.4 apache-airflow-providers-microsoft-azure==12.7.1 apache-airflow-providers-mysql==6.3.4 apache-airflow-providers-odbc==4.10.2 apache-airflow-providers-openlineage==2.7.1 apache-airflow-providers-postgres==6.3.0 apache-airflow-providers-redis==4.3.1 apache-airflow-providers-sendgrid==4.1.3 apache-airflow-providers-sftp==5.4.0 apache-airflow-providers-slack==9.3.0 apache-airflow-providers-smtp==2.2.1 apache-airflow-providers-snowflake==6.5.4 apache-airflow-providers-ssh==4.1.4 apache-airflow-providers-standard==1.8.0 ### Deployment Docker-Compose ### Deployment details Most recent docker compose file with 3.1 ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
