sadiq

Version, currently master branch1 version
  • master branchlatestFeb 6, 2016

github.com/mathieulaporte/sadiq

Async job processing for crystal lang

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  sadiq:
    github: mathieulaporte/sadiq
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Mathieu Laporte

Dependencies

Runtime Dependencies

  • redis~> 1.2.1github: stefanwille/crystal-redis

README

Sadiq

Async job processing for crystal lang

Installation

Add this to your application's shard.yml:

dependencies:
  sadiq:
    github: mathieulaporte/sadiq

Usage

require "sadiq"
class Archive < Sadiq::AsyncWorker
  register
  def perform(args)
    # your code...
  end
end

Sadiq is resque "compatible", so you can use ruby resque to enqueu jobs, or monitor with resque web.

###Example : In your ruby code :

require 'resque'
class Archive
  @queue = 'crystal'
end

You can enqueu jobs like In your crystal code :

require "sadiq"
class Archive < Sadiq::AsyncWorker
  register
  def perform(args)
    # your code...
  end
end

After compilation

./your-project-name -c [concurrency] -n [namespace] -q [queue]

Contributing

  1. Fork it ( https://github.com/[your-github-name]/sadiq/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors