Skip to main content

sync_studio_model

Function sync_studio_model 

Source
pub fn sync_studio_model(
    observers: &WorkerObservers,
    model_id: &str,
    kind: TaskKind,
    source: &ModelSource,
)
Expand description

Mirror a model seen on a studio job offer into the shared local catalog so the local API can serve it too. Persists atomically when the catalog changed; a local-origin entry of the same id is never clobbered. Best-effort: a persist failure is warn-logged but never fails the job.