celerb
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Celery Ruby client
= celery for ruby

https://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 (c) 2010 Dusan Maliarik

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


本源码包内暂不包含可直接显示的源代码文件,请下载源码包。