referrerpolicy=no-referrer-when-downgrade

Function pallet_broker::pallet::dispatchables::force_reserve

source ·
pub fn force_reserve<T: Config>(workload: Schedule, core: CoreIndex)
Expand description

Reserve a core for a workload immediately.

  • origin: Must be Root or pass AdminOrigin.
  • workload: The workload which should be permanently placed on a core starting immediately.
  • core: The core to which the assignment should be made until the reservation takes effect. It is left to the caller to either add this new core or reassign any other tasks to this existing core.

This reserves the workload and then injects the workload into the Workplan for the next two sale periods. This overwrites any existing assignments for this core at the start of the next sale period.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::force_reserve.