Documentation
¶
Overview ¶
Package runwatch finds runs that stopped without finishing, such as runs whose coordinator was killed, and records them for the Web inbox. A run's own process cannot report that it was killed; rotari web looks for such runs instead.
Index ¶
Constants ¶
const Interval = 30 * time.Second
Interval is how often rotari web looks for interrupted runs.
Variables ¶
This section is empty.
Functions ¶
func ReportInterrupted ¶
ReportInterrupted records a run.interrupted notification for each run in baseDirs that project.Inspect finds interrupted and that has none yet. A project whose state lock is held is looked at again on the next call. It returns how many runs it recorded; a project it cannot inspect or record is an error that does not stop the others.
Types ¶
This section is empty.