Retries
Storage Map v151 → currentRetry configurations for items, indexed by task address (block , index).
Explore chainQueried by: developersanalytics
The Big Picture
Maps tasks to their retry configurations (period between retries, remaining attempts).
Use Cases
- Check if a task has retry configured
- Monitor retry settings
From Chain Metadata
Retry configurations for items to be executed, indexed by task address.
Purpose & Usage
Purpose
Store retry settings for tasks that should reschedule on failure.
Common Query Patterns
- Query by (block, index) tuple to check retry config
Query Keys
Stored Value
value (RetryConfig)
Relationships
Related Events
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 Retries storage
const key1 = 0;
const key2 = 0;
const result = await api.query
[stringCamelCase("Scheduler")]
[stringCamelCase("Retries")](
key1,
key2
);
console.log("Retries:", result.toHuman());Runtime Info
- Pallet
- Scheduler
- Storage Kind
- Map
- First Version
- v151
- Current Version
- v393