-
Notifications
You must be signed in to change notification settings - Fork 3
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
Ensure watcher can wait on run folder to appear #401
Conversation
…ed yet, this can take time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, have you tried this on a run yet?
Yup, I tried it on Mako's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a small test efficiency thought. Also the builds/tests aren't running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good!
What is the purpose of this PR?
Closes #377. The watcher is not currently designed to run until the run folder appears. This is problematic because this doesn't happen until about 15-30 minutes into the start of a run. The user needs to be able to spin up the watcher immediately after the run starts, otherwise it causes a significant inconvenience.
How did you implement your changes
fov_watcher.start_watcher
will now take a new argument,run_folder_timeout
, that controls how long the watcher waits for the run folder to appear. This allows implementation of timing logic similar to the timeout logic for waiting on.bin
and.json
files. The watcher will wait until either the run folder appears (in which case it listens for files inside run folder) orrun_folder_timeout
is reached (in which case it errors out with an informative message to the user).Occasionally, what happens is the CACs will change the casing and/or add extraneous characters (notably
"T"
as a timestamp marker) to run names. If the run folder specified by the user hasn't already written to the CAC, warn the user to double check the run folder doesn't already exist in theD:\\Data
folder under a slightly different name.Remaining issues
Should we instead include the warning in a cell prior?