class documentation

class StatReloader(BaseReloader): (source)

View In Hierarchy

Undocumented

Class Method check_availability Undocumented
Method snapshot_files 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.
Constant SLEEP_TIME Undocumented

Inherited from BaseReloader:

Method __init__ Undocumented
Method notify_file_changed Undocumented
Method run Undocumented
Method run_loop Undocumented
Method stop Undocumented
Method wait_for_apps_ready 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_dir Undocumented
Method watched_files Yield all files that need to be watched, including module files and files within globs.
Instance Variable directory_globs Undocumented
Instance Variable extra_files Undocumented
Property should_stop Undocumented
Instance Variable _stop_condition Undocumented
def snapshot_files(self): (source)

Undocumented

def tick(self): (source)

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.

SLEEP_TIME: int = (source)

Undocumented

Value
1