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

It outputs the current stats about each queue and total and search for a prefix if provided

Link to this function

init()
init() :: :ok

Initializes the ets tables for the queue stats.

Link to this function

persist()
persist() :: :ok | {:error, term()}

Saves processed and failed total counts to Redis.

Link to this function

register(atom, queue)
register(:started | :finished | :failed, binary()) :: integer()

Updates the counters according to the event that happened.

Link to this function

reset_started(queue)
reset_started(binary()) :: :ok

It Resets the started counter of a queue