pub fn register_worker(
    host_idx: Option<HostIdx>,
    hostname: Hostname
) -> Result<HostIdx, HostManagementError>