Zizq.Retention (Zizq v0.6.0)

Copy Markdown View Source

How long a job stays on the server after reaching a terminal state.

Both values are milliseconds, and both are optional. The server's default applies for omitted fields.

Zizq.Retention.new!(completed: :timer.hours(24), dead: :timer.hours(24 * 7))

Summary

Functions

Build a retention policy from a keyword list or map.

Types

t()

@type t() :: %Zizq.Retention{
  completed: non_neg_integer() | nil,
  dead: non_neg_integer() | nil
}

Functions

new!(retention)

@spec new!(t() | keyword() | map()) :: t()

Build a retention policy from a keyword list or map.