55 releases (major breaking)

new 40.1.0 Mar 27, 2025
39.0.0 Sep 26, 2024
38.0.0 Jul 18, 2024
37.0.0 Jul 12, 2024
2.0.0-rc5 Jul 24, 2020

#10 in #pallet

Download history 27590/week @ 2024-12-04 24468/week @ 2024-12-11 19433/week @ 2024-12-18 7124/week @ 2024-12-25 19308/week @ 2025-01-01 24379/week @ 2025-01-08 34865/week @ 2025-01-15 30461/week @ 2025-01-22 27599/week @ 2025-01-29 29274/week @ 2025-02-05 40379/week @ 2025-02-12 26249/week @ 2025-02-19 6057/week @ 2025-02-26 5132/week @ 2025-03-05 5816/week @ 2025-03-12 4325/week @ 2025-03-19

23,118 downloads per month
Used in 36 crates (9 directly)

Apache-2.0

3MB
46K SLoC

Scheduler

A module for scheduling dispatches.

Overview

This module exposes capabilities for scheduling dispatches to occur at a specified block number or at a specified period. These scheduled dispatches may be named or anonymous and may be canceled.

NOTE: The scheduled calls will be dispatched with the default filter for the origin: namely frame_system::Config::BaseCallFilter for all origin except root which will get no filter. And not the filter contained in origin use to call fn schedule.

If a call is scheduled using proxy or whatever mechanism which adds filter, then those filter will not be used when dispatching the schedule call.

Interface

Dispatchable Functions

  • schedule - schedule a dispatch, which may be periodic, to occur at a specified block and with a specified priority.
  • cancel - cancel a scheduled dispatch, specified by block number and index.
  • schedule_named - augments the schedule interface with an additional Vec<u8> parameter that can be used for identification.
  • cancel_named - the named complement to the cancel function.

License: Apache 2.0

Release

Polkadot SDK Stable 2412

Dependencies

~20–35MB
~586K SLoC