gen_queue_exq v0.1.3 GenQueue.Adapters.Exq View Source

An adapter for GenQueue to enable functionaility with Exq.

Link to this section Summary

Link to this section Functions

Link to this function handle_job(gen_queue, job) View Source
handle_job(gen_queue :: GenQueue.t(), job :: GenQueue.Job.t()) ::
  {:ok, GenQueue.Job.t()} | {:error, any()}

Push a GenQueue.Job for Exq to consume.

Parameters:

Returns:

  • {:ok, job} if the operation was successful
  • {:error, reason} if there was an error
Link to this function handle_push(gen_queue, item, opts) View Source

Callback implementation for GenQueue.Adapter.push/2