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

📋nexus_scheduler::task

Struct InFlightOccurrence

Correlation between one occurrence and one [DAGExecution].

Fields

execution_id: sui::object::ID

Struct OccurrenceRecordKey

Dynamic field key for one occurrence allocated by a [Task].

Fields

0: u64

Struct OccurrenceRecord

Durable state for one occurrence allocated by a [Task].

Fields

Struct Task

Durable scheduling authority and occurrence state.

Fields

id: sui::object::UID

Struct TaskInnerV1

Version one stored layout for [Task].

Fields

Struct TaskPointer

Owned pointer to a [Task] for discovery.

Fields

id: sui::object::UIDtask_id: sui::object::ID

Struct AuthorizationFieldKey

Dynamic child key for the Task authorization.

Fields

Struct PaymentReserveFieldKey

Dynamic child key for the Task payment reserve.

Fields

Enum TaskController

Immutable authority for a [Task].

Variants

Variant Address0: addressVariant Agent0: sui::object::ID

Enum TaskStatus

Explicit lifecycle state for a [Task].

Variants

Variant ActiveVariant PausedVariant CanceledVariant Rejectedreason: nexus_scheduler::task::TaskRejectionReasonVariant Finalized

Enum TaskRejectionReason

Permanent reason current runtime refused a proposal contract.

Variants

Variant UnsupportedWorkAdmissionVariant StaleSkillContractVariant MutableDAG

Enum FailureMode

Behavior after a failed occurrence.

Variants

Variant ContinueVariant Pause

Enum OccurrenceState

Monotonic lifecycle state for an allocated occurrence.

Variants

Variant ScheduledThe occurrence is waiting in its [Task]'s schedule.Variant DispatchedA leader dispatched the occurrence into a [DAGExecution].execution_id: sui::object::IDdispatched_at_ms: u64Variant MissedThe occurrence reached its deadline before dispatch.missed_at_ms: u64Variant WithdrawnThe occurrence left its schedule without dispatch.reason: nexus_scheduler::schedule::OccurrenceWithdrawalReasonVariant SettledThe dispatched execution reached a terminal outcome.execution_id: sui::object::IDdispatched_at_ms: u64settled_at_ms: u64succeeded: bool

Constants

Function task_id

Returns the referenced [Task] ID.

Function authorization

Returns the Task authorization.

Function payment_reserve

Returns the Task payment reserve.

Function admission_contract

Returns the validation contract selected by this proposal.

The selector is caller supplied metadata. Current admission must validate every safety relevant field and must never treat this value as provenance.

Function schedule_policy

Returns the skill scheduling limits.

Function occurrence_schedule

Returns the occurrence schedule.

Function controller

Returns the immutable Task controller.

Function status

Returns the explicit Task status.

Function failure_mode

Returns the configured failure behavior.

Function derive_execution_id

Derives the [DAGExecution] ID assigned to one [Task] occurrence.

Function is_active

Returns whether the Task is active.

Function is_paused

Returns whether the Task is paused.

Function is_canceled

Returns whether the Task is canceled.

Function is_rejected

Returns whether current runtime permanently rejected the proposal.

Function rejection_reason

Returns the permanent rejection reason, when present.

Function is_finalized

Returns whether the Task has released its live resources.

Function occurrence_record

Returns the durable record for one allocated occurrence.

Function occurrence

Returns the occurrence preserved by a record.

Function last_effective_start_time_ms

Returns the latest effective start advertised for an occurrence.

Function state

Returns the monotonic lifecycle state preserved by a record.

Function is_scheduled

Returns whether an occurrence has not left its schedule.

Function is_dispatched

Returns whether an occurrence has been dispatched but not settled.

Function is_missed

Returns whether an occurrence expired before dispatch.

Function is_withdrawn

Returns whether an occurrence was withdrawn before dispatch.

Function is_settled

Returns whether a dispatched occurrence reached a terminal outcome.

Function execution_id

Returns the related [DAGExecution] ID after dispatch.

Function dispatched_at_ms

Returns the dispatch timestamp after dispatch.

Function missed_at_ms

Returns the expiration timestamp for a missed occurrence.

Function withdrawal_reason

Returns why an occurrence was withdrawn.

Function settled_at_ms

Returns the settlement timestamp for a settled occurrence.

Function succeeded

Returns the terminal outcome for a settled occurrence.

Function is_in_flight

Returns whether an occurrence remains in flight.

Function in_flight_count

Returns the number of in flight occurrences.

Function in_flight_execution_id

Returns the execution correlated with an occurrence.

Function is_awaiting_funds

Returns whether reserve funds cover one occurrence.

Function can_close

Returns whether the Task can release its live resources.

Function address_controller

Returns an address controller.

Function agent_controller

Returns an Agent controller.

Function continue_on_failure

Returns the default continue behavior.

Function pause_on_failure

Returns explicit pause behavior.

Function is_continue

Returns whether a failure mode continues.

Function status_is_paused

Returns whether a [TaskStatus] is paused.

Last updated