MCPcopy Create free account
hub / github.com/evilsocket/cake / worker_setup

Function worker_setup

cake-core/src/cake/sharding/mod.rs:819–826  ·  view source on GitHub ↗
(
    worker_name: &str,
    cluster_key: &str,
    bind_address: &str,
    model_cache_dir: &Path,
)

Source from the content-addressed store, hash-verified

817pub type SetupProgressFn = dyn Fn(&str, &str, f64) + Send + Sync;
818
819pub async fn worker_setup(
820 worker_name: &str,
821 cluster_key: &str,
822 bind_address: &str,
823 model_cache_dir: &Path,
824) -> Result<(Vec<String>, PathBuf, TcpListener)> {
825 worker_setup_with_progress(worker_name, cluster_key, bind_address, model_cache_dir, None).await
826}
827
828pub async fn worker_setup_with_progress(
829 worker_name: &str,

Callers 1

run_as_workerFunction · 0.85

Calls 1

Tested by

no test coverage detected