Skip to main content

load_queue_with_repair_and_validate

Function load_queue_with_repair_and_validate 

Source
pub fn load_queue_with_repair_and_validate(
    path: &Path,
    done: Option<&QueueFile>,
    id_prefix: &str,
    id_width: usize,
    max_dependency_depth: u8,
) -> Result<(QueueFile, Vec<ValidationWarning>)>
Expand description

Load queue with JSON repair and semantic validation.

This API is pure with respect to the filesystem: it may repair parseable JSON mistakes in memory, but it never rewrites the queue file on disk.

Returns the queue file and any validation warnings (non-blocking issues).