You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by mi...@apache.org on 2025/10/16 19:17:49 UTC
(datafusion-ballista) branch main updated: fix: update REST API route syntax for axum 0.8 compatibility (#1330)
This is an automated email from the ASF dual-hosted git repository.
milenkovicm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-ballista.git
The following commit(s) were added to refs/heads/main by this push:
new aed4b7a0 fix: update REST API route syntax for axum 0.8 compatibility (#1330)
aed4b7a0 is described below
commit aed4b7a022bee3d36776585f504872ead38ec11d
Author: Thomas Santerre <th...@santerre.xyz>
AuthorDate: Thu Oct 16 16:17:45 2025 -0300
fix: update REST API route syntax for axum 0.8 compatibility (#1330)
Change route parameter syntax from :param to {param} to fix runtime
panics when starting scheduler with REST API enabled.
---
ballista/scheduler/src/api/mod.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ballista/scheduler/src/api/mod.rs b/ballista/scheduler/src/api/mod.rs
index 94bc3640..05cf2718 100644
--- a/ballista/scheduler/src/api/mod.rs
+++ b/ballista/scheduler/src/api/mod.rs
@@ -29,24 +29,24 @@ pub fn get_routes<
.route("/api/state", get(handlers::get_scheduler_state::<T, U>))
.route("/api/executors", get(handlers::get_executors::<T, U>))
.route("/api/jobs", get(handlers::get_jobs::<T, U>))
- .route("/api/job/:job_id", patch(handlers::cancel_job::<T, U>))
+ .route("/api/job/{job_id}", patch(handlers::cancel_job::<T, U>))
.route(
- "/api/job/:job_id/stages",
+ "/api/job/{job_id}/stages",
get(handlers::get_query_stages::<T, U>),
)
.route(
- "/api/job/:job_id/dot",
+ "/api/job/{job_id}/dot",
get(handlers::get_job_dot_graph::<T, U>),
)
.route(
- "/api/job/:job_id/stage/:stage_id/dot",
+ "/api/job/{job_id}/stage/{stage_id}/dot",
get(handlers::get_query_stage_dot_graph::<T, U>),
)
.route("/api/metrics", get(handlers::get_scheduler_metrics::<T, U>));
#[cfg(feature = "graphviz-support")]
let router = router.route(
- "/api/job/:job_id/dot_svg",
+ "/api/job/{job_id}/dot_svg",
get(handlers::get_job_svg_graph::<T, U>),
);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org