kopalsinha09 opened a new issue, #37960: URL: https://github.com/apache/airflow/issues/37960
### Apache Airflow version Other Airflow 2 version (please specify below) ### If "Other Airflow 2 version" selected, which one? 2.2.5 ### What happened? If there are 2 near simultaneous DAG runs triggered, xcom_pull gets variables from the task instance of the first run is picked up by the second instance. ### What you think should happen instead? xcom variables of the current dag_run should be returned. ### How to reproduce 1. Create 2 instance runs at almost the same time R1: Run = 2024-03-04, 15:02:00 (as pulled from the UI) run_id = manual__2024-03-04T15:02:00.639557+00:00 R2: Run = 2024-03-04, 15:02:00 (as pulled from the UI) run_id = manual__2024-03-04T15:02:00.993278+00:00 2. context["task_instance"].xcom_pull from R2 picks up details from R1 ### Operating System Amazon Linux 2 (variant of CentOS) ### Versions of Apache Airflow Providers apache-airflow-backport-providers-postgres==2021.3.17 apache-airflow-backport-providers-slack==2021.3.3 apache-airflow-backport-providers-amazon==2021.3.3 apache-airflow-backport-providers-google==2021.3.3 apache-airflow-backport-providers-snowflake==2021.3.13 apache-airflow-backport-providers-mysql==2021.3.3 apache-airflow-backport-providers-ssh==2021.3.3 apache-airflow-backport-providers-apache-hdfs==2021.3.17 apache-airflow-backport-providers-sftp==2021.3.3 apache-airflow-backport-providers-oracle==2021.3.17 apache-airflow-backport-providers-apache-cassandra==2021.3.17 apache-airflow-providers-amazon==2.4.0 apache-airflow-providers-apache-cassandra==2.1.0 apache-airflow-providers-apache-hdfs==2.2.0 apache-airflow-providers-apache-hive==2.1.0 apache-airflow-providers-apache-spark==2.0.2 apache-airflow-providers-celery==2.1.0 apache-airflow-providers-docker==2.3.0 apache-airflow-providers-ftp==2.0.1 apache-airflow-providers-google==6.2.0 apache-airflow-providers-http==2.0.1 apache-airflow-providers-imap==3.0.0 apache-airflow-providers-jdbc==2.0.1 apache-airflow-providers-microsoft-azure==3.4.0 apache-airflow-providers-microsoft-mssql==2.0.1 apache-airflow-providers-mysql==2.1.1 apache-airflow-providers-odbc==2.0.1 apache-airflow-providers-oracle==2.0.1 apache-airflow-providers-pagerduty==2.1.0 apache-airflow-providers-postgres==2.4.0 apache-airflow-providers-redis==2.0.1 apache-airflow-providers-sftp==2.3.0 apache-airflow-providers-slack==4.1.0 apache-airflow-providers-snowflake==2.3.1 apache-airflow-providers-sqlite==2.0.1 apache-airflow-providers-ssh==2.3.0 ### Deployment Other Docker-based deployment ### Deployment details Using CeleryExecutor and using ECS to provision ### 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]
