Skip to content
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

'transfers.rsync' hangs if host not accessible #32

Open
jgarbers opened this issue Feb 12, 2019 · 0 comments
Open

'transfers.rsync' hangs if host not accessible #32

jgarbers opened this issue Feb 12, 2019 · 0 comments

Comments

@jgarbers
Copy link

In a simple Fabric task that uses transfers.rsync to update a file on a host, everything works well if the host is accessible. If the host is down for some reason, though, rsync seems to hang indefinitely (well, I've waited 10 minutes or so) rather than time out and raise an exception. This task runs on a schedule, so it's important that it fail cleanly.

As a workaround, I just do a

c.run("pwd")

before the rsync step. If the host is inaccessible, run fails quickly as expected and gives me my exception.

Thank you for your time and consideration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant