Verk.WorkersManager
A WorkersManager assign jobs to workers from a pool (handled by poolboy) monitoring the job.
It interacts with the related QueueManager to request jobs and to schedule jobs to be retried
Summary
init(args) | Create a table to monitor workers saving data about the assigned queue/pool |
name(queue) | Returns the atom that represents the WorkersManager of the |
running_jobs(queue, limit \\ 100) | List running jobs |
Functions
Create a table to monitor workers saving data about the assigned queue/pool
Specs:
- name(binary | atom) :: atom
Returns the atom that represents the WorkersManager of the queue
List running jobs
Example:
[%{ process: #PID<0.186.0>, job: %Verk.Job{...}, started_at: %Timex.DateTime{...}} ]