📋nexus task
Audience: Nexus CLI users and integrators.
Command: nexus task.
Generated from: Nexus CLI v2.1.1 release executable (nexus task --help and each subcommand's --help; source-checked command inventory).
Before acting on rejection or timeout: Verify matching bindings, package IDs, and transaction effects on the selected network. A hosted projection that omits
Rejected { reason },TaskRejectedEvent, or exact Invocation timeout identity does not justify inferring rejection from a failed submission.
This page is the complete help tree for nexus task. Global output flags can appear after the family or nested subcommand.
Invocation timeout boundary
Without --invocation-id, nexus task occurrence abort-expired discovers eligible Invocations from the occurrence's Execution, settles available committed results, refunds expired payment locks by exact identity, and settles the occurrence if execution finishes. It does not require one unique candidate. Supplying --invocation-id <OBJECT_ID> selects the existing single-Invocation path instead. The effective timeout includes the five-second leader-evaluation buffer; permissionless recovery begins at twice that effective value.
Read the final occurrence state and each confirmed resolution in the result. Work still awaiting eligibility remains pending. Repeating automatic recovery for an already settled occurrence performs no mutation. An explicit single-Invocation abort/refund is not an occurrence-settlement guarantee: if the occurrence is finished but unsettled, use nexus task occurrence settle, then verify settled and zero in-flight work before closing the Task. nexus task occurrence cost includes outstanding_invocation_ids in human and JSON output.
Permanent-rejection boundary
Inspect the Task’s Rejected { reason } value, TaskRejectedEvent, and OccurrenceWithdrawalReason::TaskRejected before claiming permanent rejection; the rejected proposal has no Execution ID, and its rejection-maintenance gas is deducted from the Task reserve up to the remaining balance. Wait until the schedule and in-flight obligations drain, then use the controller-authorized task close path to return the remaining reserve. If a hosted view omits the rejection decoder, use CLI/SDK object and effect reads; do not invent a flag or infer rejection from a failed submission or unavailable leader.
Input JSON encoding
--input-json accepts the existing shorthand JSON: an ordinary value becomes one inline value and an array becomes inline many. To pass a typed NexusData value directly, use an exact one-key object with one or many whose inner value(s) include kind (object, data, or walrus). A lookalike ordinary single-key object without that inner kind remains inline shorthand; arrays also remain inline many.
Input files and reusable references
Both task create and task schedule accept these input options:
--input-file PATH
Read the same vertex/port JSON object as --input-json; the two options conflict.
--input-ref VERTEX.PORT=FILE
Reuse a saved Walrus reference; repeat for different ports without buying storage again.
--remote VERTEX.PORT
Upload the selected local input through the shared wallet.
--remote-receipts DIR
Save per-port references and recovery records; reuse the directory to resume matching uploads.
--epochs N
Select retention of 1–53 epochs for new uploads.
--max-storage-cost-frost N
Reject a storage estimate above this ceiling per blob.
--storage-gas-budget N
Limit SUI gas per storage transaction; default 100,000,000 MIST.
Duplicate or conflicting input sources are rejected. Local validation and preflight against the published DAG finish before new storage payments. Uploaded references survive a failed Task submission and appear in Task JSON output under walrus_references. Keep recovery records until completion. Storage payment does not prove Task creation, and scheduled Tasks do not automatically renew blobs. Large resolved inputs support HTTP Tools; Sui Tool transaction bounds remain unchanged. See Walrus commands for funding, estimates, recovery, and expiry.
nexus task
Inline timing sources are additive: the mixed example below creates one standalone occurrence at the current Sui Clock, a second standalone occurrence at 2000000000000, and one recurrence whose first start defaults to the current Clock with a 60,000 ms interval. --schedule-file is the mutually exclusive replacement for inline timing sources.
nexus task create
nexus task schedule
nexus task list
nexus task inspect
nexus task pause
nexus task resume
nexus task cancel
nexus task refill
nexus task close
nexus task occurrence
nexus task occurrence list
nexus task occurrence add
nexus task occurrence inspect
nexus task occurrence settle
nexus task occurrence expire
nexus task occurrence cost
nexus task occurrence abort-expired
nexus task recurrence
nexus task recurrence set
nexus task recurrence clear
Last updated

