| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
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
- data QueueRow = QueueRow {}
- arbiterQueuesTable :: SchemaName -> Text
- arbiterQueuesTableName :: Text
- createQueuesTableSQL :: SchemaName -> Text
- addDLQRetentionColumnSQL :: SchemaName -> Text
- registerQueuesSQL :: SchemaName -> Text
Documentation
A row of the arbiter_queues table.
Constructors
| QueueRow | |
Fields
| |
Instances
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.