Project

celerb

0.01
No commit activity in last 3 years
No release in over 3 years
This rubygem does not have a description or summary.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.12
~> 4.0

Runtime

= 1.3.0
= 0.4.3
 Project Readme

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