We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca909c commit 676bacdCopy full SHA for 676bacd
polkadot/runtime/parachains/src/scheduler.rs
@@ -627,8 +627,8 @@ impl<T: Config> Pallet<T> {
627
if ValidatorGroups::<T>::decode_len().map_or(true, |l| l == 0) {
628
return
629
}
630
-
631
- let n_lookahead = Self::claimqueue_lookahead();
+ // If there exists a core, ensure we schedule at least one job onto it.
+ let n_lookahead = Self::claimqueue_lookahead().max(1);
632
let n_session_cores = T::AssignmentProvider::session_core_count();
633
let cq = ClaimQueue::<T>::get();
634
let ttl = <configuration::Pallet<T>>::config().on_demand_ttl;
0 commit comments