Skip to content

Scheduler pallet

Derived from live runtime metadata on TRN root (pallet index 3, captured 2026-05-02). For prose-style documentation see Scheduler on the curated reference side.

Pallet index
3
Calls
6
Events
6
Errors
5
Storage items
3
Constants
2

Calls (extrinsics)

Scheduler.schedule

See [Pallet::schedule].

ts
api.tx.scheduler.schedule(when: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)
ArgumentTypeDoc
whenu32BlockNumberFor<T>
maybe_periodicOption&lt;(u32,u32)&gt;Option<schedule::Period<BlockNumberFor<T>>>
priorityu8schedule::Priority
callCallBox<<T as Config>::RuntimeCall>

Call index: 0

Scheduler.cancel

See [Pallet::cancel].

ts
api.tx.scheduler.cancel(when: u32, index: u32)
ArgumentTypeDoc
whenu32BlockNumberFor<T>
indexu32u32

Call index: 1

Scheduler.schedule_named

See [Pallet::schedule_named].

ts
api.tx.scheduler.schedule_named(id: [u8;32], when: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)
ArgumentTypeDoc
id[u8;32]TaskName
whenu32BlockNumberFor<T>
maybe_periodicOption&lt;(u32,u32)&gt;Option<schedule::Period<BlockNumberFor<T>>>
priorityu8schedule::Priority
callCallBox<<T as Config>::RuntimeCall>

Call index: 2

Scheduler.cancel_named

See [Pallet::cancel_named].

ts
api.tx.scheduler.cancel_named(id: [u8;32])
ArgumentTypeDoc
id[u8;32]TaskName

Call index: 3

Scheduler.schedule_after

See [Pallet::schedule_after].

ts
api.tx.scheduler.schedule_after(after: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)
ArgumentTypeDoc
afteru32BlockNumberFor<T>
maybe_periodicOption&lt;(u32,u32)&gt;Option<schedule::Period<BlockNumberFor<T>>>
priorityu8schedule::Priority
callCallBox<<T as Config>::RuntimeCall>

Call index: 4

Scheduler.schedule_named_after

See [Pallet::schedule_named_after].

ts
api.tx.scheduler.schedule_named_after(id: [u8;32], after: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)
ArgumentTypeDoc
id[u8;32]TaskName
afteru32BlockNumberFor<T>
maybe_periodicOption&lt;(u32,u32)&gt;Option<schedule::Period<BlockNumberFor<T>>>
priorityu8schedule::Priority
callCallBox<<T as Config>::RuntimeCall>

Call index: 5

Events

Scheduler.Scheduled

Scheduled some task.

FieldTypeDoc
whenu32
indexu32

Scheduler.Canceled

Canceled some task.

FieldTypeDoc
whenu32
indexu32

Scheduler.Dispatched

Dispatched some task.

FieldTypeDoc
task(u32,u32)
idOption&lt;[u8;32]&gt;
resultResult&lt;Null, SpRuntimeDispatchError&gt;

Scheduler.CallUnavailable

The call for the provided hash was not found so the task has been aborted.

FieldTypeDoc
task(u32,u32)
idOption&lt;[u8;32]&gt;

Scheduler.PeriodicFailed

The given task was unable to be renewed since the agenda is full at that block.

FieldTypeDoc
task(u32,u32)
idOption&lt;[u8;32]&gt;

Scheduler.PermanentlyOverweight

The given task can never be executed since it is overweight.

FieldTypeDoc
task(u32,u32)
idOption&lt;[u8;32]&gt;

Errors

Scheduler.FailedToSchedule

Failed to schedule a call

Scheduler.NotFound

Cannot find the scheduled call.

Scheduler.TargetBlockNumberInPast

Given target block number is in the past.

Scheduler.RescheduleNoChange

Reschedule failed because it does not change scheduled time.

Scheduler.Named

Attempt to use a non-named function on a named task.

Storage

Scheduler.IncompleteSince

ts
await api.query.scheduler.incompleteSince()

Returns: u32

Modifier: Optional

Scheduler.Agenda

Items to be executed, indexed by the block number that they should be executed on.

ts
await api.query.scheduler.agenda(key1)
  • Key: u32 (hasher: Twox64Concat)
  • Returns: Vec<Option<PalletSchedulerScheduled>>

Modifier: Default

Scheduler.Lookup

Lookup from a name to the block number and index of the task. For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4 identities.

ts
await api.query.scheduler.lookup(key1)
  • Key: [u8;32] (hasher: Twox64Concat)
  • Returns: (u32,u32)

Modifier: Optional

Constants

Scheduler.MaximumWeight

The maximum weight that may be scheduled per block for any dispatchables.

Type: {"refTime":"Compact<u64>","proofSize":"Compact<u64>"}
SCALE-encoded value: 0x070040b743ba13cccccccccccccccc

Scheduler.MaxScheduledPerBlock

The maximum number of scheduled calls in the queue for a single block. NOTE: + Dependent pallets' benchmarks might require a higher limit for the setting. Set a higher limit under runtime-benchmarks feature.

Type: u32
SCALE-encoded value: 0x32000000

Source: live chain metadata from wss://root.rootnet.live/archive/ws · captured 2026-05-02

Curated independently by Codeology. Source-attributed reference for The Root Network. Not affiliated with Futureverse / TRN Labs.