Function pueue_lib::log::read_and_compress_log_file
source · pub fn read_and_compress_log_file(
task_id: usize,
pueue_dir: &Path,
lines: Option<usize>
) -> Result<(Vec<u8>, bool), Error>
Expand description
Return the output of a task.
Task output is compressed using snap to save some memory and bandwidth.
Return type is (Vec<u8>, bool)
Vec<u8>
the compressed task output.bool
Whether the full task’s output has been read.false
indicate that the log output has been truncated