Skip to content

Commit

Permalink
Expose Verk.pause_queue & Verk.resume_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Gurgel authored and edgurgel committed Sep 6, 2017
1 parent b1b97cf commit 7d082a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/verk.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ defmodule Verk do
Manager.remove(queue)
end

defdelegate pause_queue(queue), to: Verk.Manager, as: :pause
defdelegate resume_queue(queue), to: Verk.Manager, as: :resume

@doc """
Enqueues a Job to the specified queue returning the respective job id
Expand Down

0 comments on commit 7d082a1

Please sign in to comment.