gen_queue_exq v0.1.1 GenQueue.Adapters.Exq View Source

An adapter for GenQueue to enable functionaility with Exq.

Link to this section Summary

Link to this section Types

Link to this type pushed_job() View Source
pushed_job() :: {module(), list(), map()}

Link to this section Functions

Link to this function handle_push(gen_queue, job, opts) View Source
handle_push(GenQueue.t(), GenQueue.Adapters.Exq.job(), list()) ::
  {:ok, GenQueue.Adapters.Exq.pushed_job()} | {:error, any()}

Push a job for Exq to consume.

Parameters:

  • gen_queue - Any GenQueue module
  • job - Any valid job format
  • opts - A keyword list of job options

Options

  • :queue - The queue to push the job to. Defaults to “default”.
  • :delay - Either a DateTime or millseconds-based integer.

Returns:

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

Callback implementation for GenQueue.Adapter.start_link/2.