GitHub user rahidzeynal added a comment to the discussion: Airflow :
filedescriptor out of range in select
We ran into the same `ValueError: filedescriptor out of range in select()`
issue with our Airflow 3 SSH operator. Setting `get_pty=True` on the operator
resolved it for us:
```python
SSHOperator(
task_id='my_task',
ssh_conn_id='my_ssh_conn',
command='my_command',
get_pty=True,
)
```
This works because `get_pty=True` makes paramiko use a PTY channel that reads
output via `recv()` in a loop instead of relying on `select()`, which fails
when the file descriptor number exceeds the system limit of 1024.
Hope this helps someone.
GitHub link:
https://github.com/apache/airflow/discussions/30085#discussioncomment-15855955
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]