Skip to main content

Module watch

Module watch 

Source
Expand description

Change detection for DAG roots: polling, the settle time, and the content hash.

The agent scans each root on every poll. A changed scan isn’t hashed at once: the root must stay unchanged for the settle time, so half-written files are never parsed. Only a new content hash is reported; a scan that changed with the same contents (e.g. files touched) isn’t (see archive/PROJECT.md, Code versions and change detection). The first scan after start settles too.

Structs§

ChangeDetector
Decides when a changed root has settled.
RootWatcher
Watches one root: scans it, waits for it to settle and copies and hashes it.

Enums§

Observation
What a ChangeDetector decided about a scan.
Poll
The result of polling a root.