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 repair and semantic validation.

JSON repair is followed by semantic validation via validate_queue_set. Callers should log warnings if needed. This ensures repaired-but-invalid queues fail early with descriptive errors.

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