Skip to main content

Module runtime_call

Module runtime_call 

Source
Expand description

Running a runtime for a call: its output, its process group and the cleanup after a failure.

Structsยง

Runtime ๐Ÿ”’
A runtime whose process group gets killed if it is dropped before it got reaped, like a call in progress which the shutdown drops once it stops waiting for it. kill_on_drop only kills the runtime, its helpers in its group, like hooks or a runc init which did not set up the container yet, would be left running, see ChildReaper::stop_runtime. Until it got reaped, the ID of the group is still the one of the runtime.
RuntimeCall ๐Ÿ”’
How ChildReaper::create_child runs a runtime.
RuntimeDeadline ๐Ÿ”’
When the runtime of a call gets killed, and how long it got for the error of one which took longer.
RuntimeFailure ๐Ÿ”’
A runtime call which failed before its runtime exited, see ChildReaper::stop_runtime.
RuntimeOutput ๐Ÿ”’
The stdout and stderr of a runtime with pipes of its own, read in the background until they end. Only the end of stderr is kept, it holds the error, stdout is not of interest.
StartedChild ๐Ÿ”’
The process a runtime started, see ChildReaper::create_child.

Functionsยง

wait_unless_stopped ๐Ÿ”’
Wait for future for at most limit, and only for stopped more once the shutdown stopped the call through stop, see ChildReaper::STOP_BUDGET. None if it did not finish by then.

Type Aliasesยง

StderrTail ๐Ÿ”’