Skip to content

Commit a157581

Browse files
Add setter for executor slots policy
1 parent b606c77 commit a157581

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ballista/scheduler/src/config.rs

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ impl SchedulerConfig {
9090
self.advertise_flight_sql_endpoint = endpoint;
9191
self
9292
}
93+
94+
pub fn with_executor_slots_policy(mut self, policy: SlotsPolicy) -> Self {
95+
self.executor_slots_policy = policy;
96+
self
97+
}
9398
}
9499

95100
// an enum used to configure the executor slots policy

0 commit comments

Comments
 (0)