Skip to content

Commit 4ca0102

Browse files
DandandanDaniël Heres
and
Daniël Heres
authored
Mark SchedulerState as pub (apache#688) (#38)
* Mark as pub * Fmt --------- Co-authored-by: Daniël Heres <[email protected]>
1 parent 7331506 commit 4ca0102

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ballista/scheduler/src/scheduler_server/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub(crate) type SessionBuilder = fn(SessionConfig) -> SessionState;
6464
pub struct SchedulerServer<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> {
6565
pub scheduler_name: String,
6666
pub start_time: u128,
67-
pub(crate) state: Arc<SchedulerState<T, U>>,
67+
pub state: Arc<SchedulerState<T, U>>,
6868
pub(crate) query_stage_event_loop: EventLoop<QueryStageSchedulerEvent>,
6969
query_stage_scheduler: Arc<QueryStageScheduler<T, U>>,
7070
executor_termination_grace_period: u64,

ballista/scheduler/src/state/executor_manager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub const DEFAULT_EXECUTOR_TIMEOUT_SECONDS: u64 = 180;
8989
pub const EXPIRE_DEAD_EXECUTOR_INTERVAL_SECS: u64 = 15;
9090

9191
#[derive(Clone)]
92-
pub(crate) struct ExecutorManager {
92+
pub struct ExecutorManager {
9393
// executor slot policy
9494
slots_policy: SlotsPolicy,
9595
task_distribution: TaskDistribution,

ballista/scheduler/src/state/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ pub fn encode_protobuf<T: Message + Default>(msg: &T) -> Result<Vec<u8>> {
8585
}
8686

8787
#[derive(Clone)]
88-
pub(super) struct SchedulerState<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan>
89-
{
88+
pub struct SchedulerState<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> {
9089
pub executor_manager: ExecutorManager,
9190
pub task_manager: TaskManager<T, U>,
9291
pub session_manager: SessionManager,

0 commit comments

Comments
 (0)