skrat/celerb


Celery Ruby client

Language: Ruby


celery for ruby

github.com/skrat/celerb

Ruby client library for submitting task to celery queue.

SYNOPSIS

class Add
  include Celerb::Task
  task_name 'tasks.conquer'

  def initialize(a,b)
    @a = a
    @b = b
  end

  def to_celery
    [@a,@b]
  end
end

Add.new(7,6).delay.wait do |result|
  puts "%s - 7 + 6 = %s" % [Time.now, result.body]
end

puts "%s - Not blocking..." % Time.now

LICENSE:

(The GPL License)

Copyright © 2010 Dusan Maliarik

See www.gnu.org/licenses/gpl.html

Project Statistics

Sourcerank 3
Repository Size 147 KB
Stars 8
Forks 1
Watchers 3
Open issues 0
Dependencies 0
Contributors 2
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Dušan Maliarik Valentine Bichkovsky

Packages Referencing this Repo

celerb
This rubygem does not have a description or summary.
Latest release 0.3.19 - Updated - 8 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-04-17 11:16:23 UTC

Login to resync this repository