Function brane_cli::run::process_instance
source · pub async fn process_instance(
api_endpoint: impl AsRef<str>,
proxy_addr: &Option<String>,
certs_dir: impl AsRef<Path>,
datasets_dir: impl AsRef<Path>,
result: FullValue,
) -> Result<(), Error>
Expand description
Post-processes the result of a workflow.
This does nothing unless it’s an IntermediateResult or a Dataset; it emits a warning in the first, attempts to download the referred dataset in the latter.
§Arguments
api_endpoint
: The remote endpoint where we can potentially download data from (or, that at least knows about it).proxy_addr
: If given, proxies all data transfers through the proxy at the given location.certs_dir
: The directory where certificates are stored. Expected to contain nested directories that store the certs by domain ID.datasets_dir
: The directory where we will download the data to. It will be added under a new folder with its own name.result
: The value to process.
§Returns
Nothing, but does print any result to stdout. It may also download a remote dataset if one is given.
§Errors
This function may error if the given result was a dataset and we failed to retrieve it.