Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 气流计划程序无法启动任务_Postgresql_Airflow_Airflow Scheduler_Postgresql 12 - Fatal编程技术网

Postgresql 气流计划程序无法启动任务

Postgresql 气流计划程序无法启动任务,postgresql,airflow,airflow-scheduler,postgresql-12,Postgresql,Airflow,Airflow Scheduler,Postgresql 12,我的问题: 气流计划程序未分配任务 背景: 我已使用sqlitedb在本地计算机上成功运行气流。示例DAG以及我的自定义DAG运行时没有任何问题。 当我尝试从sqlite数据库迁移到Postgres(使用指南)时,调度程序似乎不再分配任务。DAG处于“运行”状态,但任何DAG中的任务都不会被分配状态 我已采取的故障排除步骤 web服务器和计划程序正在运行 DAG设置为“开” 运行airflow initdb后,将使用所有airflow表填充公共模式 我的连接字符串中的用户拥有数据库以及公共模式

我的问题:

气流计划程序未分配任务

背景:

我已使用sqlitedb在本地计算机上成功运行气流。示例DAG以及我的自定义DAG运行时没有任何问题。 当我尝试从sqlite数据库迁移到Postgres(使用指南)时,调度程序似乎不再分配任务。DAG处于“运行”状态,但任何DAG中的任务都不会被分配状态

我已采取的故障排除步骤

  • web服务器和计划程序正在运行
  • DAG设置为“开”
  • 运行airflow initdb后,将使用所有airflow表填充公共模式
  • 我的连接字符串中的用户拥有数据库以及公共模式中的每个表
调度程序日志

调度程序日志不断发布此警告,但除了没有响应的其他帖子外,我无法使用它查找任何有用的信息

[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
[2020-04-08 09:39:17907]{dag_processing.py:556}INFO-已启动带有pid:44144的DagFileProcessorManager
[2020-04-08 09:39:17916]{settings.py:54}信息-配置的默认时区
[2020-04-08 09:39:17927]{settings.py:253}INFO-settings.configure_orm():使用池设置。池大小=5,最大溢出=10,池回收=1800,pid=44144
[2020-04-08 09:39:19914]{dag_processing.py:663}警告-DagFileProcessorManager(PID=44144)已退出,退出代码为-11-重新启动
环境

  • PostgreSQL 12.1版
  • 气流v1.10.9
  • 这一切都是在康达虚拟环境中的MacBookPro(Catalina)上运行的

Postgres是使用安装的。将postgresapp更新为2.3.3e版。PostgresSQL仍然是12.1版,但通过更新postgresapp,问题得到了解决。

Postgres是使用安装的。将postgresapp更新为2.3.3e版。PostgresSQL仍然是12.1版,但通过更新postgresapp,问题得到了解决