View Source OddJob.Pool (OddJob v0.3.3)
The job pool that manages the assignments given to the pool workers.
Link to this section Summary
Link to this section Types
Specs
job() :: OddJob.Job.t()
Specs
The OddJob.Pool struct holds the state of the job pool.
:idis an atom representing the registered name of the pool process:poolis an atom representing the name of the job pool:workersis a list of the active workerpids, whether they are busy working or not:assignedis a list of the workerpids that are currently assigned to a job:jobsis a list ofOddJob.Jobstructs representing the jobs that are queued to be performed when workers are available