IncompleteSince

Storage Plain v133 → current

Block number from which the agenda became incomplete.

Explore chain
Queried by: developersanalytics

The Big Picture

When set, indicates the scheduler has accumulated a backlog of tasks. Tasks scheduled for earlier blocks may still be pending execution.

Use Cases

  • Monitor scheduler health
  • Detect agenda congestion
  • Track processing delays

Purpose & Usage

Purpose

Track when scheduler fell behind and couldn't process all tasks.

Common Query Patterns

  • Query as optional value - None means agenda is complete

Stored Value

value (u32)

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 });

// Query IncompleteSince storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("Scheduler")]
  [stringCamelCase("IncompleteSince")]();
console.log("IncompleteSince:", result.toHuman());

Runtime Info

Pallet
Scheduler
Storage Kind
Plain
First Version
v133
Current Version
v393