TaskBunny v0.0.1-dev.6 TaskBunny.Status.Worker
Modules that handles the Worker status.
Summary
Types
The Worker status contains the follow fields:
job
, theJob
for theWorker
.runners
, the amount of runners currently running theJob
.channel
, the connected channel with consumer tag or false if not connected.stats
, the amount of failed and succeeded jobs
Types
t()
t() :: %TaskBunny.Status.Worker{channel: false | String.t, consuming: boolean, job: atom, runners: integer, stats: %{failed: integer, succeeded: integer, rejected: integer}}
The Worker status contains the follow fields:
job
, theJob
for theWorker
.runners
, the amount of runners currently running theJob
.channel
, the connected channel with consumer tag or false if not connected.stats
, the amount of failed and succeeded jobs.
Functions
get(pid)
get({any, pid, atom, list}) :: TaskBunny.Status.Worker.t
get(pid) :: TaskBunny.Status.Worker.t
Returns the Worker status.