Skip to main content

stop_commands

Function stop_commands 

Source
pub fn stop_commands(
    engine: &Engine,
    registered: &[Registered],
    listing: &[Container],
) -> Vec<(String, Vec<EngineCommand>)>
Expand description

The commands that stop the containers of registered that listing shows as up in engine, one entry per container with its name and what is run for it, in that order.

Only names with QCode’s own prefix are ever considered, whatever the list says: the list is a file on disk and could hold anything by the time it is read.

A container the engine lists as paused is woken and then stopped. A stop of a paused container is refused by the engine, so a QCode that crashed with one frozen would leave it up for ever: it stays in the list, and every run after this one refuses it in the same way.