Airflow偶尔不会运行排队的任务,有些任务甚至不会被排队状态。我在调度程序日志中不断看到以下内容:
[2018-02-28 02:24:58,780] {jobs.py:1077} INFO - No tasks to consider for execution.
我在数据库中看到一些任务没有状态或者状态为queued,但它们从未开始执行。
Airflow的设置正在ECS上使用Redis运行https://github.com/puckel/docker-airflow。有4个调度线程和4个Celery worker任务。对于那些没有运行的任务,在悬停在任务图标上时显示为queued状态(灰色图标),运算符为null,任务详细信息如下:
All dependencies are met but the task instance is not running. In most cases this just means that the task will probably be scheduled soon unless:- The scheduler is down or under heavy load
调度程序的指标没有显示出重载。DAG非常简单,仅有2个独立任务依赖于上次运行。同一DAG中还有一些任务无状态(白色图标)。
值得注意的是,当我重新启动调度程序时,任务会变为运行状态。