Verk.QueueStatsCounters
This module is responsible for abstracting the logic of keeping counters for each queue.
Summary
all() | It outputs the current stats about each queue and |
init() | Initializes the ets tables for the queue stats |
persist() | Saves processed and failed total counts to Redis |
register(atom, queue) | Updates the counters according to the event that happened |
reset_started(queue) | It Resets the started counter of a |
Functions
It outputs the current stats about each queue and total
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:
- register(:started | :finished | :failed, binary) :: integer
Updates the counters according to the event that happened.
Specs:
- reset_started(binary) :: :ok
It Resets the started counter of a queue