如题,在调用
Resque.enqueue(PushMessageWorker, self.id, "activity", 'C')
总是提示
The error occurred while evaluating nil.[]
... ...
plugins/resque/lib/resque.rb:210:in `queue'
resque 的源码是
def queue(name)
@queues[name.to_s]
end
有朋友知道问题出在哪么?
补充 PushMessageWorker 的代码
class PushMessageWorker
@queue = :push_message_que
#活动的id号
def self.perform(obj_id,type,action)
#... ...
end
end
由两个问题引起: