Repository navigation
K8S tests are flaky with test_integration_run_dag_with_scheduler_failurE tests #45145
Copy link
Copy link
Closed
Closed
Copy link
Labels
QuarantineIssues that are occasionally failing and are quarantinedIssues that are occasionally failing and are quarantinedarea:CIAirflow's tests and continious integrationAirflow's tests and continious integrationprovider:cncf-kubernetesKubernetes (k8s) provider related issuesKubernetes (k8s) provider related issues
Description
Activity
- converted this from a draft issue
on Dec 22, 2024 - addedarea:CIAirflow's tests and continious integrationAirflow's tests and continious integrationprovider:cncf-kubernetesKubernetes (k8s) provider related issuesKubernetes (k8s) provider related issues
on Dec 22, 2024 Hi @potiuk I can investigate this issue, could you assign to me? Thanks!
Assigned! Cool !
Reacted by Jason(Zhe-You) Liu- addedQuarantineIssues that are occasionally failing and are quarantinedIssues that are occasionally failing and are quarantined
on Dec 29, 2024 @jason810496 some ideas for you to start with:
- One of the issues could be that the scheduler is getting killed before the tasks enter the executor, leading to tasks remaining in
queuedstate. - Some ideas that might be useful:
- Tweak around with the timeouts here so that we can have enough time after the scheduler restart.
- Wait for few seconds for the tasks to enter the executor, and then kill the scheduler.
- Add api calls that can check for status of the task in the
monitor_taskloop. So that we can wait appropriately.
- One of the issues could be that the scheduler is getting killed before the tasks enter the executor, leading to tasks remaining in
Thanks, @amoghrajesh! I just reproduced the issue using Breeze, and it turns out that the scheduler is stuck in a
CrashLoopBackOffstate. I'll take a closer look and try out the approach you suggested.Reacted by Amogh Desai, Jarek Potiuk and GPK- moved this from In progress to Done in CI / DEV ENV planned work
on Feb 6, 2025 - added a commit that references this issue
on May 17, 2026 - added 4 commits that reference this issue
on May 18, 2026
Metadata
Metadata
Assignees
Labels
QuarantineIssues that are occasionally failing and are quarantinedIssues that are occasionally failing and are quarantinedarea:CIAirflow's tests and continious integrationAirflow's tests and continious integrationprovider:cncf-kubernetesKubernetes (k8s) provider related issuesKubernetes (k8s) provider related issues
Type
Projects
- StatusShow more project fieldsDone
THE test_integration_run_dag_with_scheduler_failure is flaky and fails sometimes.
For example https://github.com/apache/airflow/actions/runs/12452312988/job/34761457306