arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Job.Status

Description

Status values derived from a job row by the queue status SQL.

Synopsis

Documentation

Source #data JobStatus

Effective job status. Arbiter derives status from the stored fields. The status SQL in Arbiter.Core.Sql.Jobs is its source of truth.

Instances

Instances details
FromJSON JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

ToJSON JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

Eq JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

Bounded JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

Enum JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

Generic JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

Associated Types

type Rep JobStatus 
Instance details

Defined in Arbiter.Core.Job.Status

type Rep JobStatus = D1 ('MetaData "JobStatus" "Arbiter.Core.Job.Status" "arbiter-core-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "Ready" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "InFlight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Backoff" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Scheduled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Suspended" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Throttled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cancelled" 'PrefixI 'False) (U1 :: Type -> Type))))
Show JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

type Rep JobStatus Source # 
Instance details

Defined in Arbiter.Core.Job.Status

type Rep JobStatus = D1 ('MetaData "JobStatus" "Arbiter.Core.Job.Status" "arbiter-core-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "Ready" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "InFlight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Backoff" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Scheduled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Suspended" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Throttled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cancelled" 'PrefixI 'False) (U1 :: Type -> Type))))

Source #jobStatusToText :: JobStatus -> Text

The wire name for a status.

Source #jobStatusFromText :: Text -> Either Text JobStatus

Strict inverse of jobStatusToText. Unknown values are rejected.