diff --git a/ballista/scheduler/src/scheduler_server/grpc.rs b/ballista/scheduler/src/scheduler_server/grpc.rs index 053dffdbc..b03a99307 100644 --- a/ballista/scheduler/src/scheduler_server/grpc.rs +++ b/ballista/scheduler/src/scheduler_server/grpc.rs @@ -18,9 +18,6 @@ use axum::extract::ConnectInfo; use ballista_core::config::BALLISTA_JOB_NAME; use ballista_core::serde::protobuf::execute_query_params::{OptionalSessionId, Query}; -use ballista_core::utils::SessionConfigExt; -use std::net::SocketAddr; - use ballista_core::serde::protobuf::scheduler_grpc_server::SchedulerGrpc; use ballista_core::serde::protobuf::{ execute_query_failure_result, execute_query_result, AvailableTaskSlots, @@ -34,16 +31,17 @@ use ballista_core::serde::protobuf::{ UpdateTaskStatusParams, UpdateTaskStatusResult, }; use ballista_core::serde::scheduler::ExecutorMetadata; +use ballista_core::utils::SessionConfigExt; use datafusion_proto::logical_plan::AsLogicalPlan; use datafusion_proto::physical_plan::AsExecutionPlan; use log::{debug, error, info, trace, warn}; +use std::net::SocketAddr; use std::ops::Deref; use crate::cluster::{bind_task_bias, bind_task_round_robin}; use crate::config::TaskDistributionPolicy; use crate::scheduler_server::event::QueryStageSchedulerEvent; -use datafusion::prelude::SessionContext; use std::time::{SystemTime, UNIX_EPOCH}; use tonic::{Request, Response, Status};