AirFlow SQLite3.OperationalError 数据库被锁定,然后调度程序崩溃



我在 Linux 服务器上运行气流,它运行良好几个小时,然后气流调度失败。

这是日志的输出:

OperationalError: (sqlite3.OperationalError) database is locked [SQL: u'SELECT connection.conn_id AS connection_conn_id nFROM connection GROUP BY connection.conn_id'] (Background on this error at: http://sqlalche.me/e/e3q8)
[2019-08-14 11:20:20 +0000] [14173] [INFO] Worker exiting (pid: 14173)
[2019-08-14 11:20:20 +0000] [14011] [INFO] Worker exiting (pid: 14011)
[2019-08-14 11:20:20 +0000] [14068] [INFO] Worker exiting (pid: 14068)
[2019-08-14 11:20:20 +0000] [14150] [INFO] Worker exiting (pid: 14150)
[2019-08-14 11:20:20 +0000] [13955] [INFO] Worker exiting (pid: 13955)
[2019-08-14 11:20:20 +0000] [32013] [INFO] Shutting down: Master
[2019-08-14 11:20:20 +0000] [32013] [INFO] Reason: Worker failed to boot.
[2019-08-14 11:20:21,813] {cli.py:808} ERROR - [0 / 0] some workers seem to have died and gunicorndid not restart them as expected
[2019-08-14 11:22:31,885] {cli.py:815} ERROR - No response from gunicorn master within 120 seconds
[2019-08-14 11:22:31,886] {cli.py:816} ERROR - Shutting down webserver

我怎样才能阻止这种情况发生?

当您在 sqlite 仍在处理另一个请求时向 sqlite 发出请求时,可能会发生此错误。它发生在我身上,我只是等了一会儿再提出另一个请求。

相关内容

最新更新