Skip to main content

attach

Function attach 

Source
pub fn attach(
    store: &CloudStore,
    instance_id: &str,
    host_app: &str,
    role: &str,
) -> Result<Attachment, CloudError>
Expand description

Attach a session of host_app with role to a durable worker of the enrolled instance, adding it to the book when new. A full book (32, as Cloud allows per instance) gives up the longest-unused worker no active session holds, so a new role gets its own worker instead of sharing another one’s.