Skip to main content

spawn_and_init

Function spawn_and_init 

Source
async fn spawn_and_init(
    component: &str,
    entry: &PackageEntry,
    log_dir: &Path,
    cache_root: &Path,
    instances_dir: &Path,
    manifest_dir: &Path,
    atlas: &mut AtlasClient,
) -> Result<Spawned>
Expand description

Spawn one primitive / service package and wait for it to register at least one capability with atlas. If the new provider has a */driver gRPC capability, also drive Driver(CMD_INIT) and pass the entry’s config: as config_json. Packages that don’t declare a driver (e.g. system packages or new packages that just don’t need init-time wiring) are deployed as-is once their first provider appears in atlas.