pub fn task_temp_dir(temp_root: &str, task_id: i64) -> String
Returns the temporary directory for a background task.