GenQueue.Adapters.TaskBunny (Carguero GenQueue TaskBunny v0.0.1) View Source

An adapter for GenQueue to enable functionaility with TaskBunny.

Link to this section Summary

Functions

Push a GenQueue.Job for TaskBunny to consume.

Callback implementation for GenQueue.Adapter.push/2

Link to this section Functions

Link to this function

handle_job(gen_queue, job)

View Source

Specs

handle_job(gen_queue :: GenQueue.t(), job :: GenQueue.Job.t()) ::
  {:ok, GenQueue.Job.t()} | {:error, any()}

Push a GenQueue.Job for TaskBunny 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