Closed charleschang0531 closed 9 months ago
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
I've been able to reproduce this. Interacting with a task via the database (e.g. clearing or marking the task as failed) during a backfill DAG run results in tasks no longer being scheduled.
Apache Airflow version
Other Airflow 2 version (please specify below)
What happened
We are running airflow 2.6.2 with
KubernetesExecutor
, and we have two dagsdag_test.py
(dag_rerun.py)I'm trying to mock a situation when the job still failed when running airflow dag backfill, and there is a problem i cant solve when I try to backfill, the
dag_test.py
Run
showsrunning
forever when some task indag_test.py
are infailed
statefrom common.airflow import create_dag_by_common from common.kubernetes import ( CONTAINER_RESOURCES, NODE_AFFINITY, get_config )
def create_dag(dag_id: str) -> DAG:
dag_id = "dag_test"
create_dag_by_common( dag_id=dag_id, create_dag_func=create_dag )
What you think should happen instead
The backfill jobs should rerun
failed
Runs
, and if rerun is still failed, we hope that can just markRun
failed
status, and keep going on next jobHow to reproduce
No response
Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
apache-airflow 2.6.2 apache-airflow-providers-amazon 8.1.0 apache-airflow-providers-celery 3.2.0 apache-airflow-providers-cncf-kubernetes 7.0.0 apache-airflow-providers-common-sql 1.5.1 apache-airflow-providers-docker 3.7.0 apache-airflow-providers-elasticsearch 4.5.0 apache-airflow-providers-ftp 3.4.1 apache-airflow-providers-google 10.1.1 apache-airflow-providers-grpc 3.2.0 apache-airflow-providers-hashicorp 3.4.0 apache-airflow-providers-http 4.4.1 apache-airflow-providers-imap 3.2.1 apache-airflow-providers-microsoft-azure 6.1.1 apache-airflow-providers-mysql 5.1.0 apache-airflow-providers-odbc 3.3.0 apache-airflow-providers-postgres 5.5.0 apache-airflow-providers-redis 3.2.0 apache-airflow-providers-sendgrid 3.2.0 apache-airflow-providers-sftp 4.3.0 apache-airflow-providers-slack 7.3.0 apache-airflow-providers-snowflake 4.1.0 apache-airflow-providers-sqlite 3.4.1 apache-airflow-providers-ssh 3.7.0 google-cloud-orchestration-airflow 1.9.0 pytest-airflow 0.0.3
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct