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

Add polling options for remote file systems #10

Merged
merged 1 commit into from
May 8, 2015

Conversation

carsongee
Copy link
Contributor

This add the default polling observer if --poll is given to the command. Something worth noting, is that even for one of my smallest projects there is a bit of a lag in startup time before it starts getting file changes, so when testing I had to wait a few seconds after the first test ran before it would register file changes. After that lag, it worked pretty well.

Closes #9

@@ -15,6 +15,7 @@
--onpass=<cmd> Run arbitrary programs on pass.
--onfail=<cmd> Run arbitrary programs on failure.
--nobeep Do not beep on failure.
--poll Use polling instead of events (useful in VMs)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good idea to call out why this is here! 👍

@joeyespo
Copy link
Owner

joeyespo commented May 8, 2015

This looks good! The lag is interesting. I wonder if it's the observer setting up the complete map of file polling services before having any one of them report a chance. Without --poll, you only need to set up one since the OS can do recursive checks for you.

Thanks for taking this on, @carsongee!

joeyespo added a commit that referenced this pull request May 8, 2015
Add polling options for remote file systems
@joeyespo joeyespo merged commit cd236e6 into joeyespo:master May 8, 2015
@carsongee
Copy link
Contributor Author

No problem, thanks for the merge, and I'll go ahead and make an issue on watchdog

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

Successfully merging this pull request may close these issues.

Added feature to poll files for help with virtual machines/docker
2 participants