TaskBunny v0.1.0-rc.1 TaskBunny.Publisher

Conviniences for publishing messages to a queue.

It’s a semi private module and provides lower level functions. You should use Job.enqueue to enqueue a job from your application.

Summary

Functions

Publish a message to the queue

Similar to publish/4 but raises exception on error

Functions

publish(host, queue, message, options \\ [])
publish(atom, String.t, String.t, keyword) ::
  :ok |
  {:error, any}

Publish a message to the queue.

Returns :ok when the message has been successfully sent to the server. Otherwise returns {:error, detail}

publish!(host, queue, message, options \\ [])
publish!(atom, String.t, String.t, keyword) :: :ok

Similar to publish/4 but raises exception on error.