| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Job.Status
Description
Status values derived from a job row by the queue status SQL.
Documentation
Effective job status. Arbiter derives status from the stored fields. The status SQL in Arbiter.Core.Sql.Jobs is its source of truth.
Constructors
| Ready | Visible, with attempts left. It can still wait behind its group head or a full concurrency or rate-limit key. |
| InFlight | Claimed by a worker, with the lease still running. |
| Backoff | Unclaimed with an attempt used, waiting out a delay. A nacked retry is here. |
| Scheduled | No attempt used, delayed to a future time. A nacked first attempt is here. |
| Suspended | Not claimable until resumed, such as a rollup finalizer with children. |
| Throttled | Held by a rate limit until tokens refill. |
| Cancelled | Force-cancel-flagged, waiting for teardown. |
| Exhausted | Visible but out of attempts, waiting for the reaper's DLQ sweep. |
Instances
jobStatusToText :: JobStatus -> TextSource #
The wire name for a status.
jobStatusFromText :: Text -> Either Text JobStatusSource #
Strict inverse of jobStatusToText. Unknown values are rejected.