GenQueue Oban v0.1.0 GenQueue.Adapters.Oban View Source

An adapter for GenQueue to enable functionality with Oban.

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 Oban 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