New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fabric 3.0.0 locks main thread until timeout finish #2241
Comments
I am observing this issue as well. A timer thread is being held until the timeout expires, even when the command has finished within the allotted window. A The Timer thread is generated from within fabric when using timeout parameter. PR #2242 has resolved the issue on my end. |
Fabric3 is an unmaintained, unofficial fork. Please retry using fabric v2. |
@davidjmemmett I'm aware of the fork of Fabric3 and since 2018 is not longer maintenaed. But nobody is talking about that fork. |
Will be fixed in next bugfix release. |
Fabric 3.0.0 prevents the interpreter to exit if a timeout was specified when running a remote command
For example this small script:
will generate the following output:
but the interpreter will hang until the the timeout.
Hitting
ctrl-C
while hanging generates the following traceback:This happens no matter the server we connect.
This is a special problem since there are some commands that needs a huge timeout windows, and if the commands executes relatively fast, the program won't finish until the timeout is acomplished.
Expected behaviour
Program finish inmediatly
Environment
Python 3.9
Ubuntu Linux 5.4.0-126-generic #142-Ubuntu
Fabric 3.0.0
Paramiko 3.0.0
Invoke 2.0.0
The text was updated successfully, but these errors were encountered: