TaskBunny v0.3.4 TaskBunny.Publisher View Source
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.
Link to this section Summary
Functions
Similar to publish/4 but raises exception on error. It calls the publisher worker to publish the message on the queue
Publish a message to the queue
Link to this section Functions
Similar to publish/4 but raises exception on error. It calls the publisher worker to publish the message on the queue
Publish a message to the queue.
Returns :ok
when the message has been successfully sent to the server.
Otherwise returns {:error, detail}