Verk v1.7.0 Verk.QueueStatsCounters
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
Link to this function
all(prefix)
It outputs the current stats about each queue and total
and search for a prefix
if provided
Link to this function
init()
init()
init() :: :ok
init() :: :ok
Initializes the ets tables for the queue stats.
Link to this function
persist()
persist()
persist() :: :ok | {:error, term()}
persist() :: :ok | {:error, term()}
Saves processed and failed total counts to Redis.
Link to this function
register(atom, queue)
Updates the counters according to the event that happened.
Link to this function
reset_started(queue)
reset_started(queue)
reset_started(binary()) :: :ok
reset_started(binary()) :: :ok
It Resets the started counter of a queue