[英]Airflow scheduler fails to start tasks
My problem:我的问题:
Airflow scheduler is not assigning tasks. Airflow 调度程序未分配任务。
Background:背景:
I have Airflow running successfully on my local machine with sqlitedb.我的 Airflow 使用 sqlitedb 在我的本地机器上成功运行。 The sample dags as well as my custom DAGs ran without any issues.
示例 dag 以及我的自定义 DAG 运行没有任何问题。 When I try to migrate from sqlite database to Postgres (using this guide), the scheduler no longer seems to be assigning tasks.
当我尝试从 sqlite 数据库迁移到 Postgres(使用本指南)时,调度程序似乎不再分配任务。 The DAG get stuck on "running" state but no task in any DAGs ever gets assigned a state.
DAG 卡在“正在运行”的 state 上,但任何 DAG 中的任务都没有被分配 state。
Troubleshooting steps I've taken我已采取的故障排除步骤
Scheduler Log调度程序日志
The scheduler log keeps posting out this WARNING but I have not been able to use it to find any useful information aside form this other post with no responses.调度程序日志不断发布此警告,但我无法使用它来找到除此其他帖子之外的任何有用信息而没有回复。
[2020-04-08 09:39:17,907] {dag_processing.py:556} INFO - Launched DagFileProcessorManager with pid: 44144
[2020-04-08 09:39:17,916] {settings.py:54} INFO - Configured default timezone <Timezone [UTC]>
[2020-04-08 09:39:17,927] {settings.py:253} INFO - settings.configure_orm(): Using pool settings. pool_size=5, max_overflow=10, pool_recycle=1800, pid=44144
[2020-04-08 09:39:19,914] {dag_processing.py:663} WARNING - DagFileProcessorManager (PID=44144) exited with exit code -11 - re-launching
Environment环境
Postgres was installed using postgresapp . Postgres 是使用postgresapp安装的。 Updated postgresapp to version 2.3.3e.
将 postgresapp 更新到 2.3.3e 版本。 PostgresSQL is still version 12.1 but by updating the postgresapp, the issue was solved.
PostgresSQL 仍然是 12.1 版,但通过更新 postgresapp,问题得到了解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.