cancel_retry_named

Call v151 → current #9

Remove the retry configuration from a named scheduled task.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developersanalytics

The Big Picture

Ergonomic retry cancellation for named tasks using the task name.

Use Cases

  • Disable retries for named tasks
  • Clean up retry configurations

From Chain Metadata

Cancel the retry configuration of a named task.

Input Parameters

#NameTypeDescription
0
id
[u8; 32] [32] TaskNameid ([u8; 32])

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Named task exists in Lookup
  • Task has retry configuration

Effects

Events Emitted

Storage Modified

Postconditions

  • RetryConfig removed
  • Task will not retry on failure

Side Effects

  • Emits RetryCancelled event

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

// Build cancel_retry_named call (typed, named args)
const id = "0x0000000000000000000000000000000000000000000000000000000000000000";

const tx = api.tx.Scheduler.cancel_retry_named({
  id,
});

Runtime Info

Pallet Index
15
Call Index
9
First Version
v151
Current Version
v411