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_droponly 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, seeChildReaper::stop_runtime. Until it got reaped, the ID of the group is still the one of the runtime. - Runtime
Call ๐ - How
ChildReaper::create_childruns a runtime. - Runtime
Deadline ๐ - When the runtime of a call gets killed, and how long it got for the error of one which took longer.
- Runtime
Failure ๐ - A runtime call which failed before its runtime exited, see
ChildReaper::stop_runtime. - Runtime
Output ๐ - 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.
- Started
Child ๐ - The process a runtime started, see
ChildReaper::create_child.
Functionsยง
- wait_
unless_ ๐stopped - Wait for
futurefor at mostlimit, and only forstoppedmore once the shutdown stopped the call throughstop, seeChildReaper::STOP_BUDGET. None if it did not finish by then.
Type Aliasesยง
- Stderr
Tail ๐