-
Notifications
You must be signed in to change notification settings - Fork 16.8k
airflow tasks test triggers a dag run with a run_id like: __airflow_temporary_run_2023-08-29T07:39:51.001501+00:00__ but doesn't delete it when done #33869
Description
Apache Airflow version
2.7.0
What happened
I tested Airflow tasks with:
airflow tasks test DAGNAME TASKNAME 2023-08-29 and airflow tasks test DAGNAME TASKNAME
on a running Airflow server. In both cases I see that this triggers a dag run of DAGNAME with the following run_id:
__airflow_temporary_run_2023-08-29T07:39:51.001501+00:00__
But the dag run isn't removed after the task is done AND the other tasks in the same DAG are being executed (and clogg up the pool)
What you think should happen instead
Only a test of the task, but without a triggering of the dag.
How to reproduce
Use airflow tasks test etc. on a running Airflow server (airflow webserver and airflow scheduler)
Operating System
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Versions of Apache Airflow Providers
apache-airflow-providers-amazon==8.5.1
apache-airflow-providers-celery==3.3.2
apache-airflow-providers-cncf-kubernetes==7.4.2
apache-airflow-providers-common-sql==1.7.0
apache-airflow-providers-daskexecutor==1.0.0
apache-airflow-providers-docker==3.7.3
apache-airflow-providers-elasticsearch==5.0.0
apache-airflow-providers-ftp==3.5.0
apache-airflow-providers-google==10.6.0
apache-airflow-providers-grpc==3.2.1
apache-airflow-providers-hashicorp==3.4.2
apache-airflow-providers-http==4.5.0
apache-airflow-providers-imap==3.3.0
apache-airflow-providers-microsoft-azure==6.2.4
apache-airflow-providers-mysql==5.2.1
apache-airflow-providers-odbc==4.0.0
Editable install with no version control (apache-airflow-providers-onesecondbefore==71.0.0)
-e /home/airflow/logs/.hidden/providers/apache-airflow-providers-onesecondbefore
apache-airflow-providers-openlineage==1.0.1
apache-airflow-providers-postgres==5.6.0
apache-airflow-providers-redis==3.3.1
apache-airflow-providers-sendgrid==3.2.1
apache-airflow-providers-sftp==4.5.0
apache-airflow-providers-slack==7.3.2
apache-airflow-providers-snowflake==4.4.2
apache-airflow-providers-sqlite==3.4.3
apache-airflow-providers-ssh==3.7.1
Deployment
Other 3rd-party Helm chart
Deployment details
The executor is the LocalExecutor
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct