arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Job.Types.Internal

Synopsis

Documentation

Source #data JobRecord payload key q insertedAt adm

Internal representation shared by writable and stored jobs.

Instances

Instances details
FromJSON payload => FromJSON (JobRead payload) Source #

Decode the complete persisted representation of a job.

Instance details

Defined in Arbiter.Core.Job.Types

Methods

#parseJSON :: Value -> Parser (JobRead payload)

#parseJSONList :: Value -> Parser [JobRead payload]

#omittedField :: Maybe (JobRead payload)

(Eq key, Eq payload, Eq q, Eq insertedAt, Eq adm) => Eq (JobRecord payload key q insertedAt adm) Source # 
Instance details

Defined in Arbiter.Core.Job.Types.Internal

Methods

#(==) :: JobRecord payload key q insertedAt adm -> JobRecord payload key q insertedAt adm -> Bool

#(/=) :: JobRecord payload key q insertedAt adm -> JobRecord payload key q insertedAt adm -> Bool

(Show key, Show payload, Show q, Show insertedAt, Show adm) => Show (JobRecord payload key q insertedAt adm) Source # 
Instance details

Defined in Arbiter.Core.Job.Types.Internal

Methods

#showsPrec :: Int -> JobRecord payload key q insertedAt adm -> ShowS

#show :: JobRecord payload key q insertedAt adm -> String

#showList :: [JobRecord payload key q insertedAt adm] -> ShowS

Source #primaryKey :: JobRecord payload key q insertedAt adm -> key

Database-assigned identifier for a stored job.

Source #payload :: JobRecord payload key q insertedAt adm -> payload

User-defined payload stored as JSONB.

Source #queueName :: JobRecord payload key q insertedAt adm -> q

Queue containing a stored job.

Source #groupKey :: JobRecord payload key q insertedAt adm -> Maybe Text

Serial-processing group, or Nothing for an ungrouped job.

Source #insertedAt :: JobRecord payload key q insertedAt adm -> insertedAt

Time at which the job was inserted.

Source #updatedAt :: JobRecord payload Int64 q insertedAt adm -> Maybe UTCTime

Time at which the job was last updated.

Source #attempts :: JobRecord payload Int64 q insertedAt adm -> Int32

Number of attempts made so far.

Source #lastError :: JobRecord payload Int64 q insertedAt adm -> Maybe Text

Error message from the last failed attempt.

Source #priority :: JobRecord payload key q insertedAt adm -> Int32

Claim priority. Lower numbers have higher priority.

Source #lastAttemptedAt :: JobRecord payload Int64 q insertedAt adm -> Maybe UTCTime

Time at which a worker last claimed the job.

Source #notVisibleUntil :: JobRecord payload key q insertedAt adm -> Maybe UTCTime

Earliest time at which the job can be claimed.

Source #dedupKey :: JobRecord payload key q insertedAt adm -> Maybe DedupKey

Deduplication strategy and key.

Source #maxAttempts :: JobRecord payload key q insertedAt adm -> Maybe Int32

Attempt limit before the job moves to the DLQ.

Source #parentId :: JobRecord payload Int64 q insertedAt adm -> Maybe Int64

Identifier of this job's parent in a job tree.

Source #parentState :: JobRecord payload Int64 q insertedAt adm -> Maybe Value

Snapshot of accumulated child results for a rollup finalizer.

Source #traceContext :: JobRecord payload key q insertedAt adm -> Maybe TraceContext

W3C trace context captured at enqueue.

Source #suspended :: JobRecord payload Int64 q insertedAt adm -> Bool

Whether the job is currently ineligible for claiming.

Source #claimedBy :: JobRecord payload Int64 q insertedAt adm -> Maybe UUID

Worker pool that most recently claimed the job.

Source #claimSeq :: JobRecord payload Int64 q insertedAt adm -> Int64

Monotonically increasing claim identifier.

Source #archiveFor :: JobRecord payload key q insertedAt adm -> Maybe Int32

Completed-job archive retention in seconds.

Source #payloadKeys :: JobRecord payload key q insertedAt adm -> adm

The labels and keys stamped from the payload at enqueue.