Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🗓️nexus_scheduler::schedule

Struct Occurrence

One bounded unit of scheduled work.

Fields

id: u64start_time_ms: u64deadline_ms: std::option::Option<u64>priority_fee_percentage: u64source: nexus_scheduler::schedule::OccurrenceSource

Struct Recurrence

One lazily materialized recurring candidate.

Fields

next: nexus_scheduler::schedule::Occurrenceinterval_ms: u64remaining: std::option::Option<u64>iteration: u64

Struct Schedule

Bounded ordering state for a [Task].

Fields

pending: vector<nexus_scheduler::schedule::Occurrence>recurrence: std::option::Option<nexus_scheduler::schedule::Recurrence>advertised_occurrence_id: std::option::Option<u64>next_occurrence_id: u64dispatched_count: u64last_dispatch_ms: std::option::Option<u64>

Struct WithdrawnOccurrence

One occurrence removed from a [Schedule] without dispatch.

Fields

Struct ScheduleDelta

Complete identity changes produced by one schedule mutation.

Fields

Enum OccurrenceSource

Origin of one scheduled [Occurrence].

Variants

Variant StandaloneAn occurrence scheduled directly, independent of any recurrence.Variant RecurringAn occurrence generated by a recurrence with its iteration index.iteration: u64

Enum OccurrenceWithdrawalReason

Reason an [Occurrence] left its [Schedule] without dispatch.

Variants

Variant RecurrenceReplacedA new recurrence replaced the recurrence candidate.Variant RecurrenceClearedThe controller cleared the recurrence.Variant TaskCanceledThe controller canceled the [Task].Variant TaskRejectedCurrent runtime rejected the immutable proposal contract.

Constants

Function advertised_occurrence

Returns the currently advertised occurrence.

Function is_idle

Returns whether no future occurrence exists.

Function is_exhausted

Returns whether the skill dispatch quota is exhausted.

Function pending_count

Returns the number of pending standalone occurrences.

Function dispatched_count

Returns the number of dispatched occurrences.

Function next_occurrence_id

Returns the next occurrence identity that will be allocated.

Function occurrence_id

Returns the occurrence identity.

Function occurrence_start_time_ms

Returns the requested start timestamp.

Function occurrence_deadline_ms

Returns the optional absolute deadline.

Function occurrence_priority_fee_percentage

Returns the priority fee percentage.

Function occurrence_source

Returns the occurrence source.

Function occurrence_source_is_standalone

Returns whether an occurrence is independent of a recurrence.

Last updated