Skip to main content

open_work_store

Function open_work_store 

Source
fn open_work_store(
    identity_store: &Arc<Store>,
    shared_store: Option<Arc<Store>>,
    db_dir: &Path,
) -> (Arc<Store>, Option<Arc<Store>>)
Expand description

The stores the work queue and scheduled jobs use. Installed and task package builds share the host’s (the identity store and the shared store, as before); a task dev build gets a work-store.db of its own, so it never reads or changes the operator’s real queue or jobs. If that store can’t be opened srv exits, as it does for objects.db: falling back to the host’s files would be the leak this exists to close.