CallUnavailable
Event Re-added v133 → v150, v151 → current #5Emitted when a scheduled call could not be found and the task is aborted.
View events on chainUseful for: developersanalytics
The Big Picture
Error condition - the scheduled call data was missing.
Use Cases
- Debug failed scheduled tasks
- Monitor scheduling errors
From Chain Metadata
The call for the provided hash was not found so the task has been aborted.
Triggers
Preconditions
- Execution attempted
- Call data unavailable
Effects
Postconditions
- Task aborted
- Will not execute
Side Effects
- Task removed from agenda
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 CallUnavailable events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("Scheduler") &&
event.method === "CallUnavailable"
)
.forEach(({ event }) => {
console.log("CallUnavailable:", 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
- 5
- First Version
- v133
- Current Version
- v393