PermanentlyOverweight
Event v133 → v148, v149 → v150, v151 → current #8Emitted when a task is permanently abandoned because it always exceeds weight limits.
View events on chainUseful for: developersanalytics
The Big Picture
Error condition - the scheduled call requires more weight than can ever be available.
Use Cases
- Debug overweight tasks
- Identify calls that need optimization
From Chain Metadata
The given task can never be executed since it is overweight.
Triggers
Preconditions
- Task execution exceeded available weight
- No possibility of success
Effects
Postconditions
- Task abandoned permanently
Side Effects
- Task will never execute
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | task | (u32, u32) TaskAddress<BlockNumberFor<T>> | Task address as (block_number, index) tuple |
| 1 | id | Option Option<TaskName> | Optional 32-byte task name (None for anonymous tasks) |
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Subscribe to PermanentlyOverweight events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Scheduler.PermanentlyOverweight.get(block.hash);
for (const evt of events) {
console.log("PermanentlyOverweight:", evt.payload);
}
});Version History
v133 block 1,404,224 2 args
v149 block 3,014,339 2 args
v151 block 3,157,274 2 args Current
Runtime Info
- Pallet Index
- 15
- Event Index
- 8
- First Version
- v133
- Current Version
- v411