Skip to main content

entry_fetch

Function entry_fetch 

Source
pub async fn entry_fetch(
    service_name: String,
    entry_id: usize,
    pool: &State<DbPool>,
) -> Result<EntryDownload, NotFound<String>>
Expand description

Downloads a converted document’s result archive (streamed, so a large archive never loads into memory). 404 when the task is unknown or the archive is missing/unreadable on /data — a hostile or unmounted filesystem yields a clean 404, never a panic or a 500.