Function pallet_scheduler::pallet::dispatchables::set_retry
source · pub fn set_retry<T: Config>(
task: TaskAddress<BlockNumberFor<T>>,
retries: u8,
period: BlockNumberFor<T>,
)
Expand description
Set a retry configuration for a task so that, in case its scheduled run fails, it will
be retried after period
blocks, for a total amount of retries
retries or until it
succeeds.
Tasks which need to be scheduled for a retry are still subject to weight metering and agenda space, same as a regular task. If a periodic task fails, it will be scheduled normally while the task is retrying.
Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
clones of the original task. Their retry configuration will be derived from the
original task’s configuration, but will have a lower value for remaining
than the
original total_retries
.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_retry
.