RetryFailed
Event v151 → current #7Emitted when a task retry fails to reschedule due to agenda capacity or weight.
View events on chainUseful for: developersanalytics
The Big Picture
Error condition - a retry attempt could not be scheduled due to resource constraints.
Use Cases
- Debug retry failures
- Monitor scheduling capacity
From Chain Metadata
The given task was unable to be retried since the agenda is full at that block or there was not enough weight to reschedule it.
Triggers
Preconditions
- Task failed and retry attempted
- Retry could not be scheduled
Effects
Postconditions
- Retry abandoned
Side Effects
- Remaining retries lost
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | task | (u32, u32) TaskAddress<BlockNumberFor<T>> | Task address of the failed retry attempt |
| 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 RetryFailed events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Scheduler.RetryFailed.get(block.hash);
for (const evt of events) {
console.log("RetryFailed:", evt.payload);
}
});Runtime Info
- Pallet Index
- 15
- Event Index
- 7
- First Version
- v151
- Current Version
- v411