Verk.QueueStatsCounters (Verk v1.7.2) View Source
This module is responsible for abstracting the logic of keeping counters for each queue.
Link to this section Summary
Functions
It outputs the current stats about each queue and total
and search for a prefix
if provided.
Initializes the ets tables for the queue stats.
Saves processed and failed total counts to Redis.
Updates the counters according to the event that happened.
It resets the started counter of a queue
.
Link to this section Functions
It outputs the current stats about each queue and total
and search for a prefix
if provided.
Specs
init() :: :ok
Initializes the ets tables for the queue stats.
Specs
persist() :: :ok | {:error, term()}
Saves processed and failed total counts to Redis.
Specs
Updates the counters according to the event that happened.
Specs
reset_started(binary()) :: :ok
It resets the started counter of a queue
.