Skip to content
forked from akira/exq

Job processing library for Elixir - compatible with Resque / Sidekiq

Notifications You must be signed in to change notification settings

stephen-woo/exq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exq

Build Status

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

Example Usage:

Start process with 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

About

Job processing library for Elixir - compatible with Resque / Sidekiq

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published