Skip to main content

Module detector

Module detector 

Source
Expand description

A print the detector paused, and the resume an adjustment earns it.

A detector that pauses a print reacts faster than any turn can, so the pause is left to it; what it cannot do is decide whether the print can be saved. When the supervising agent decides it can — and asks for an adjustment while the print is still held by the detector’s pause — the adjustment is applied at once and the print is resumed with it, so that the change takes effect as the print moves again rather than waiting for a person to notice the pause.

§The resume is the supervisor’s, through the policy

The agent is not granted resume: a print it may resume is a print whose pause it may overrule, and a pause a person made is not one it should. The resume here is requested as Actor::System, through Supervisor::request_action like every other action, so it is recorded with its reason and refused — and the print left paused — when the envelope does not grant the system resume.

§When the resume happens

CoreConfig::detector_resume_grace after the agent’s last such adjustment, or when its turn ends, whichever comes first — so that two or three changes asked for one after the other reach the print together. The grace is time passing, read off Clock::elapsed rather than off the wall clock, so a host’s time synchronisation stepping the wall clock under it neither cuts it short nor draws it out. An agent that acknowledges the detection with the disposition stop has decided a person should look, and the pause is then left alone; so is one somebody else has already resumed or cancelled.

§The detector is told

Once the print has resumed, the detector is told its detection was handled, which is what re-arms it for the rest of the print; a failure to tell it is recorded against the detection’s own event.