arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Queues

Description

Internal to the arbiter packages. Not covered by the PVP.

Types and DDL for the arbiter_queues table. One row per queue, scoped to the schema. Holds operator-facing per-queue state (pause flag, DLQ retention, metadata). Migrations add a row for every queue they create. Maintenance reads the table to find the schema's queues.

Synopsis

Documentation

data QueueRowSource #

A row of the arbiter_queues table.

Constructors

QueueRow 

Fields

Instances

Instances details
FromJSON QueueRow Source # 
Instance details

Defined in Arbiter.Core.Queues

ToJSON QueueRow Source # 
Instance details

Defined in Arbiter.Core.Queues

Eq QueueRow Source # 
Instance details

Defined in Arbiter.Core.Queues

Generic QueueRow Source # 
Instance details

Defined in Arbiter.Core.Queues

Show QueueRow Source # 
Instance details

Defined in Arbiter.Core.Queues

type Rep QueueRow Source # 
Instance details

Defined in Arbiter.Core.Queues

arbiterQueuesTable :: SchemaName -> TextSource #

Qualified table name for the arbiter_queues table.

arbiterQueuesTableName :: TextSource #

Bare name of the queues table, for catalog lookups by relname.

createQueuesTableSQL :: SchemaName -> TextSource #

DDL for the arbiter_queues table.

addDLQRetentionColumnSQL :: SchemaName -> TextSource #

Idempotent migration adding the dlq_retention_secs column. A retention must be positive.

registerQueuesSQL :: SchemaName -> TextSource #

Add a row with defaults for each queue in the one text[] parameter. Rows that exist are left alone.