I'm using Airflow 1.9.0. And we realized that the scheduler get stuck sometimes waiting for a long running task to finish before starting a new set of tasks. When that happens all airflow tasks are defunct, except the long jobs.
root 5111 1 0 17:58 ? 00:00:02 /usr/bin/python2 /bin/airflow scheduler -n 5 --pid /run/airflow/scheduler.pid
root 5489 5119 0 17:58 ? 00:00:11 /usr/bin/python2 /usr/bin/airflow run ....
root 5522 5489 0 17:59 ? 00:00:01 /usr/bin/python2 /usr/bin/airflow run ....
root 5118 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5119 5111 0 17:58 ? 00:00:00 /usr/bin/python2 /bin/airflow scheduler -n 5 --pid /run/airflow/scheduler.pid
root 5120 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5121 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5122 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5123 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5124 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5125 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
root 5126 5111 0 17:58 ? 00:00:00 [airflow] <defunct>
Any idea what we're doing wrong?
Thanks,