Crynux Network
HomeBlogGitHubTwitterDiscordNetstats
  • Crynux Network
  • Releases
    • Helium Network
    • Hydrogen Network
  • System Design
    • Network Architecture
    • Consensus Protocol
      • Inference Task Validation
      • Training/FT Task Validation
    • Verifiable Secret Sampling
    • Task Lifecycle
      • Task State Transitions
    • Task Dispatching
    • Task Pricing
    • Quality of Service (QoS)
    • Model Distribution
  • Node Hosting
    • Start a Node
      • Start a Node - Windows
      • Start a Node - Mac
      • Start a Node - Linux
      • Start a Node - Docker
      • Start a Node - Vast
    • Get the Test CNX Tokens
    • Private Key Security
    • Assign GPU to the Node
    • Proxy Settings
    • Docker Compose Options
    • Advanced Configuration
  • Application Development
    • How to Run LLM using Crynux Network
    • Application Workflow
    • Execute Tasks
      • Text-to-Image Task
      • Text-to-Text Task
      • Text-to-Music Task
      • Text-to-Video Task
      • Fine-Tuning Task
    • Crynux Bridge
    • API Specification of the Relay
    • Crynux SDK
  • Crynux Token
    • Wallet Configuration
      • Metamask
  • Troubleshooting
    • FAQ
    • Locate the Error Message
    • Exceptions in WebUI
  • Misc
    • Privacy Policy
Powered by GitBook
On this page
  • State Transition Graph
  • Group Validation Results
  • Actions for Each State
Edit on GitHub
  1. System Design
  2. Task Lifecycle

Task State Transitions

Task as Finite State Machine (FSM)

PreviousTask LifecycleNextTask Dispatching

Last updated 6 months ago

State Transition Graph

The task could be aborted at any state, as long as the timeout period has reached. The abort action could be issued from both the application and the selected node.

The task state transition graph is given below. To simplify the graph, all the abort transition is omitted:

Group Validation Results

When a task is validated in a validation group, its result state is determined according to the table below:

Task 1 Before
Task 2 Before
Task 3 Before
Task 1 After
Task 2 After
Task 3 After

ScoreReady (A)

ScoreReady (A)

ScoreReady (A)

GroupValidated

EndGroupRefund

EndGroupRefund

ScoreReady (A)

ScoreReady (A)

ScoreReady (B)

GroupValidated

EndGroupRefund

EndInvalidated

ScoreReady (A)

ScoreReady (B)

ScoreReady (C)

EndAborted

EndAborted

EndAborted

ScoreReady (A)

ScoreReady (A)

ErrorReported

GroupValidated

EndGroupRefund

EndInvalidated

ScoreReady (A)

ScoreReady (B)

ErrorReported

EndAborted

EndAborted

EndAborted

ScoreReady (A)

ScoreReady (A)

EndAborted

GroupValidated

EndGroupRefund

EndAborted

ScoreReady (A)

ScoreReady (B)

EndAborted

EndAborted

EndAborted

EndAborted

ScoreReady

ErrorReported

ErrorReported

EndInvalidated

EndAborted

EndAborted

ScoreReady

ErrorReported

EndAborted

EndAborted

EndAborted

EndAborted

ScoreReady

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

ErrorReported

ErrorReported

ErrorReported

EndAborted

EndAborted

EndAborted

ErrorReported

ErrorReported

EndAborted

EndAborted

EndAborted

EndAborted

ErrorReported

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

EndAborted

Actions for Each State

State
Action

Group Validated

Record the address of all the 3 nodes in the validation group.

End Success

Settle the payment. Release the node.

End Group Refund

Refund the payment. Release the node.

End Group Success

Distribute payment to 3 nodes. Release the node.

End Invalidated

Refund the payment. Slash the node.

End Aborted

Refund the payment. Release the node.