View Source OddJob.Pool.Worker (OddJob v0.5.1)
The OddJob.Pool.Worker
is a GenServer
that performs concurrent work as one of many
members of an OddJob.Pool
.
The OddJob.Pool.Worker
checks in with the pool and asks to be monitored upon startup. Once the worker is monitored
it can start receiving jobs. In the unlikely event that the pool crashes, the worker will be notified
and request to be monitored again when the pool restarts.
Link to this section Summary
Link to this section Types
Specs
job() :: OddJob.Job.t()
Specs
t() :: %OddJob.Pool.Worker{ id: non_neg_integer(), pool: atom(), queue_name: OddJob.Queue.queue(), queue_pid: pid() }