Function bootstrap

Source
pub async fn bootstrap() -> Error
Expand description

Entry point to processes managed by hyperactor_mesh. This advertises the process to a bootstrap server, and receives instructions to manage the lifecycle(s) of procs within this process.

If bootstrap returns any error, it is defunct from the point of view of hyperactor_mesh, and the process should likely exit:

let err = hyperactor_mesh::bootstrap().await;
tracing::error("could not bootstrap mesh process: {}", err);
std::process::exit(1);

Use bootstrap_or_die to implement this behavior directly.