Python 为什么我的气流';谁是本地执行者?

Python 为什么我的气流';谁是本地执行者?,python,airflow,freebsd,airflow-scheduler,Python,Airflow,Freebsd,Airflow Scheduler,当尝试使用命令Airflow scheduler启动Airflow的计划程序时,如果executor=LocalExecutor在Airflow.cfg中,我会收到以下错误: File "/usr/local/lib/python3.6/site-packages/airflow/executors/local_executor.py", line 92, in run key, command = self.task_queue.get() File &qu

当尝试使用命令
Airflow scheduler
启动Airflow的计划程序时,如果
executor=LocalExecutor
Airflow.cfg
中,我会收到以下错误:

  File "/usr/local/lib/python3.6/site-packages/airflow/executors/local_executor.py", line 92, in run
    key, command = self.task_queue.get()
  File "<string>", line 2, in get
  File "/usr/local/lib/python3.6/multiprocessing/managers.py", line 753, in _callmethod
    self._connect()
  File "/usr/local/lib/python3.6/multiprocessing/managers.py", line 740, in _connect
    conn = self._Client(self._token.address, authkey=self._authkey)
  File "/usr/local/lib/python3.6/multiprocessing/connection.py", line 487, in Client
    c = SocketClient(address)
  File "/usr/local/lib/python3.6/multiprocessing/connection.py", line 614, in SocketClient
    s.connect(address)
ConnectionRefusedError: [Errno 61] Connection refused
文件“/usr/local/lib/python3.6/site packages/aiffort/executors/local_executor.py”,第92行,正在运行
key,command=self.task\u queue.get()
get中第2行的文件“”
文件“/usr/local/lib/python3.6/multiprocessing/managers.py”,第753行,在调用方法中
self._connect()
文件“/usr/local/lib/python3.6/multiprocessing/managers.py”,第740行,in\u connect
conn=self.\u客户端(self.\u token.address,authkey=self.\u authkey)
客户端中的文件“/usr/local/lib/python3.6/multiprocessing/connection.py”,第487行
c=SocketClient(地址)
SocketClient中的文件“/usr/local/lib/python3.6/multiprocessing/connection.py”,第614行
s、 连接(地址)
ConnectionRefusedError:[Errno 61]连接被拒绝
Python:3.6.13

气流:1.10.15(安装时有其限制)


OS:FreeBSD 12

这是因为在FreeBSD上,TCP套接字的默认接受队列非常短(128),因此如果有许多到套接字的连接,而服务器的速度不够快,内核将向多余的请求发送TCP RST

提高队列长度有助于防止出现以下情况:

sysctl kern.ipc.soacceptqueue=1024