PeriodicFailed
Event Re-added v133 → v150, v151 → current #6Emitted when a periodic task fails to reschedule because the agenda is full.
View events on chainUseful for: developersanalytics
The Big Picture
Error condition - a recurring task cannot continue because the target block is too full.
Use Cases
- Debug recurring task failures
- Monitor agenda capacity issues
From Chain Metadata
The given task was unable to be renewed since the agenda is full at that block.
Triggers
Preconditions
- Periodic task completed
- Next occurrence block agenda at capacity
Effects
Postconditions
- Periodic task series terminated
Side Effects
- Future occurrences will not happen
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | task | (u32, u32) | Task address as (block_number, index) tuple |
| 1 | id | Option | Optional 32-byte task name (None for anonymous tasks) |
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Subscribe to PeriodicFailed events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("Scheduler") &&
event.method === "PeriodicFailed"
)
.forEach(({ event }) => {
console.log("PeriodicFailed:", event.data.toHuman());
});
});Version History
v133 block 1,404,224 2 args
v151 block 3,157,274 2 args Current
Runtime Info
- Pallet Index
- 15
- Event Index
- 6
- First Version
- v133
- Current Version
- v393