Skip to content

Commit

Permalink
Add missing docs to WorkersManager.inspect_worker/2
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Eduardo Gurgel committed Apr 1, 2016
1 parent c066dde commit 65813d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/verk/workers_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ defmodule Verk.WorkersManager do
end

@process_info [:current_stacktrace, :initial_call, :reductions, :status]
@doc """
List information about the process that is currently running a `job_id`
"""
@spec inspect_worker(binary | atom, binary) :: { :ok, Map.t } | { :error, :not_found }
def inspect_worker(queue, job_id) do
case :ets.match(name(queue), { :'$1', job_id, :'$2', :_, :'$3' }) do
Expand Down

0 comments on commit 65813d6

Please sign in to comment.