RetryCancelled

Event v151 → current #4

Emitted when retry configuration is removed from a scheduled task.

View events on chain
Useful for: developersanalytics

The Big Picture

Confirmation that a task will no longer retry on failure.

Use Cases

  • Confirm retry removal
  • Track task configuration changes

From Chain Metadata

Cancel a retry configuration for some task.

Triggers

Preconditions

  • Task had retry config
  • cancel_retry call succeeded

Effects

Storage Modified

Postconditions

  • RetryConfig removed

Side Effects

  • Failures will no longer trigger retries

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 RetryCancelled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Scheduler.RetryCancelled.get(block.hash);
  for (const evt of events) {
    console.log("RetryCancelled:", evt.payload);
  }
});

Runtime Info

Pallet Index
15
Event Index
4
First Version
v151
Current Version
v411