Skip to content

api: align TaskState with Substrate ActorState and avoid unnecessary extra states #708

Done

Description

@rakyll

TaskState (pkg/apis/v1alpha1/task.proto) currently defines its own set of states and remaps Substrate's ActorState on read (internal/server/server.go, actorTaskState):

Substrate ActorState Current TaskState
RUNNING WORKING
RESUMING, REVERTING QUEUED
SUSPENDING SUSPENDING
SUSPENDED SUSPENDED
CRASHED FAILED
DELETING UNSPECIFIED (with Ready=False/Terminating)

TaskState also defines extra states that don't exist in Substrate (IDLE, REQUIRES_ACTION, COMPLETED, CANCELLED, and QUEUED for in-flight/transient-error provisioning):

Proposal

Related: #687, #690, #695, #698

Activity

  1. added this to the v0.5.0 milestone on Nov 23, 2026
  2. added 2 commits that reference this issue on Nov 23, 2026
    b15978d
    5d185e2
  3. added a commit that references this issue on Nov 24, 2026
    33b93cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions