pub struct AdvancedJobScheduler { /* private fields */ }Expand description
Advanced job scheduler with gang scheduling
Implementations§
Source§impl AdvancedJobScheduler
impl AdvancedJobScheduler
Sourcepub fn gang_schedule(
&mut self,
jobs: &[DistributedJob],
nodes: &HashMap<String, ClusterNode>,
) -> Result<Vec<SchedulingDecision>, DistributedError>
pub fn gang_schedule( &mut self, jobs: &[DistributedJob], nodes: &HashMap<String, ClusterNode>, ) -> Result<Vec<SchedulingDecision>, DistributedError>
Schedule jobs with gang scheduling
Sourcepub fn backfill_schedule(
&mut self,
waiting_jobs: &[DistributedJob],
nodes: &HashMap<String, ClusterNode>,
) -> Result<Vec<SchedulingDecision>, DistributedError>
pub fn backfill_schedule( &mut self, waiting_jobs: &[DistributedJob], nodes: &HashMap<String, ClusterNode>, ) -> Result<Vec<SchedulingDecision>, DistributedError>
Implement backfill scheduling
Sourcepub fn reserve_resources(
&mut self,
reservation: ResourceReservation,
) -> Result<(), DistributedError>
pub fn reserve_resources( &mut self, reservation: ResourceReservation, ) -> Result<(), DistributedError>
Reserve resources for future jobs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedJobScheduler
impl RefUnwindSafe for AdvancedJobScheduler
impl Send for AdvancedJobScheduler
impl Sync for AdvancedJobScheduler
impl Unpin for AdvancedJobScheduler
impl UnwindSafe for AdvancedJobScheduler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more