RetryFailed

Event v151 → current #7

Emitted when a task retry fails to reschedule due to agenda capacity or weight.

View events on chain
Useful 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

#NameTypeDescription
0
task
(u32, u32) Task address of the failed retry attempt
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 RetryFailed events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("Scheduler") &&
      event.method === "RetryFailed"
    )
    .forEach(({ event }) => {
      console.log("RetryFailed:", event.data.toHuman());
    });
});

Runtime Info

Pallet Index
15
Event Index
7
First Version
v151
Current Version
v393