Skip to content
/ exq Public
forked from akira/exq

Job processing library for Elixir - compatible with Resque / Sidekiq

Notifications You must be signed in to change notification settings

structtv/exq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exq

Build Status

Exq is a job processing library compatible with Resque / Sidekiq for the Elixir language.

Example Usage:

Start process with:

{:ok, pid} = Exq.start

# Or with config (see source for all options)
{:ok, pid} = Exq.start([host: '127.0.0.1', port: 6379, namespace: 'x'])

To enqueue jobs:

{:ok, ack} = Exq.enqueue(pid, "default", "MyWorker", ["arg1", "arg2"])

{:ok, ack} = Exq.enqueue(pid, "default", "MyWorker/custom_method", [])

By default, the perform method will be called. However, you can pass a method such as MyWorker/custom_method

Example Worker:

defmodule MyWorker do
  def perform do
    # will get called if no custom method passed in
  end
end

Contributors:

Benjamin Tan Wei Hao (benjamintanweihao)

Justin McNally (j-mcnally) (structtv)

About

Job processing library for Elixir - compatible with Resque / Sidekiq

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%