Skip to main content

clean

Function clean 

Source
pub fn clean(
    out: &mut dyn Write,
    endpoint: &Endpoint,
    args: &CleanArgs,
) -> Result<(), CliError>
Expand description

Reclaims finished dataflows’ resources.

A named (rather than id’d) dataflow costs one List first: the wire’s ControlRequest::Clean takes an id or nothing at all, so the name a user types has to become an id somewhere, and doing it here keeps astrs clean my-flow working exactly like astrs stop my-flow.

§Errors

As Client::request, plus CliError::UnknownDataflow when a name resolves to nothing.