class WatchmanReloader(BaseReloader): (source)
Undocumented
Class Method | check |
Undocumented |
Method | __init__ |
Undocumented |
Method | check |
Return True if the server is available. |
Method | request |
Undocumented |
Method | stop |
Undocumented |
Method | tick |
This generator is called in a loop from run_loop. It's important that the method takes care of pausing or otherwise waiting for a period of time. This split between run_loop() and tick() is to improve the testability of the reloader implementations by decoupling the work they do from the loop. |
Method | update |
Undocumented |
Method | watched |
Undocumented |
Instance Variable | client |
Undocumented |
Instance Variable | processed |
Undocumented |
Instance Variable | roots |
Undocumented |
Property | client |
Undocumented |
Method | _check |
Undocumented |
Method | _get |
Undocumented |
Method | _subscribe |
Undocumented |
Method | _subscribe |
Undocumented |
Method | _update |
Undocumented |
Method | _watch |
Watch a directory with a specific glob. If the directory doesn't yet exist, attempt to watch the parent directory and amend the patterns to include this. It's important this method isn't called more than one per directory when updating all subscriptions... |
Method | _watch |
Undocumented |
Inherited from BaseReloader
:
Method | notify |
Undocumented |
Method | run |
Undocumented |
Method | run |
Undocumented |
Method | wait |
Wait until Django reports that the apps have been loaded. If the given thread has terminated before the apps are ready, then a SyntaxError or other non-recoverable error has been raised. In that case, stop waiting for the apps_ready event and continue processing. |
Method | watch |
Undocumented |
Method | watched |
Yield all files that need to be watched, including module files and files within globs. |
Instance Variable | directory |
Undocumented |
Instance Variable | extra |
Undocumented |
Property | should |
Undocumented |
Instance Variable | _stop |
Undocumented |
This generator is called in a loop from run_loop. It's important that the method takes care of pausing or otherwise waiting for a period of time. This split between run_loop() and tick() is to improve the testability of the reloader implementations by decoupling the work they do from the loop.
Watch a directory with a specific glob. If the directory doesn't yet exist, attempt to watch the parent directory and amend the patterns to include this. It's important this method isn't called more than one per directory when updating all subscriptions. Subsequent calls will overwrite the named subscription, so it must include all possible glob expressions.