PeriodicFailed

Event v133 → v148, v149 → v150, v151 → current #6

Emitted when a periodic task fails to reschedule because the agenda is full.

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

#NameTypeDescription
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 PeriodicFailed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Scheduler.PeriodicFailed.get(block.hash);
  for (const evt of events) {
    console.log("PeriodicFailed:", 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
6
First Version
v133
Current Version
v411