Table of Contents

Enum JobState

Namespace
Millrace.Storage
Assembly
Millrace.dll

Lifecycle states of a job (ARCHITECTURE.md §5.1).

public enum JobState
Extension Methods

Fields

Scheduled = 0

Waiting for DueAt; activated by ActivateDueJobsAsync.

Enqueued = 1

Claimable by workers.

Processing = 2

Claimed under a lease (WorkerId / LeaseUntil).

Succeeded = 3

Completed successfully. Terminal.

Failed = 4

A failed attempt awaiting its retry delay; DueAt is the activation time.

Dead = 5

Retries exhausted (or poison-pilled). Terminal.

Cancelled = 6

Cancelled before or during execution. Terminal.

Awaiting = 7

A continuation parked until its ParentId reaches a terminal state.