Absurd.QueuePolicy (absurd v0.2.0)

Copy Markdown View Source

Maintenance policy returned for an Absurd queue.

Interval fields remain PostgreSQL interval strings, matching the official TypeScript and Go SDK surface without exposing driver-specific interval structs.

Summary

Types

The maintenance detach behavior of a queue.

The table-storage mode of a queue.

t()

A queue's persisted maintenance policy.

Types

detach_mode()

@type detach_mode() :: :none | :empty

The maintenance detach behavior of a queue.

storage_mode()

@type storage_mode() :: :unpartitioned | :partitioned

The table-storage mode of a queue.

t()

@type t() :: %Absurd.QueuePolicy{
  cleanup_limit: pos_integer(),
  cleanup_ttl: String.t(),
  detach_min_age: String.t(),
  detach_mode: detach_mode(),
  partition_lookahead: String.t(),
  partition_lookback: String.t(),
  queue_name: String.t(),
  storage_mode: storage_mode()
}

A queue's persisted maintenance policy.