diff --git a/ballista/scheduler/Cargo.toml b/ballista/scheduler/Cargo.toml index a34721576..b11b091f5 100644 --- a/ballista/scheduler/Cargo.toml +++ b/ballista/scheduler/Cargo.toml @@ -56,7 +56,7 @@ datafusion-proto = { workspace = true } etcd-client = { version = "0.12", optional = true } flatbuffers = { version = "23.5.26" } futures = "0.3" -graphviz-rust = "0.6.1" +graphviz-rust = "0.8.0" http = "0.2" http-body = "0.4" hyper = "0.14.4" diff --git a/ballista/scheduler/src/api/handlers.rs b/ballista/scheduler/src/api/handlers.rs index 94b2c90d3..0645147c7 100644 --- a/ballista/scheduler/src/api/handlers.rs +++ b/ballista/scheduler/src/api/handlers.rs @@ -345,6 +345,7 @@ pub(crate) async fn get_job_svg_graph( &mut PrinterContext::default(), vec![CommandArg::Format(Format::Svg)], ) + .map(|bytes| String::from_utf8_lossy(&bytes).to_string()) .map_err(|_| warp::reject()) } else { Ok("Cannot parse graph".to_string())