我正在Windows XP 上试用Huginn,并且我已经安装了所有必需的组件,但是这段代码agent.rb
不起作用:
# The call that doesn't work
Agent.async_receive(agent.id, agents_to_events[agent.id].uniq)
# ...
def async_receive(agent_id, event_ids)
# See github...
end
handle_asynchronously :async_receive
如果我内联async_receive
代码它工作正常,但如果我查看/delayed_job
我看到:
ID: 26
Priority: 10
Attempts: 0
Handler: --- !ruby/object:Delayed::PerformableMethod
object: !ruby/class 'Agent'
method_name: :async_receive_without_delay
args: [...]
我注意到方法名称变成了:async_receive_without_delay
,但我不知道它的意义。
更新:我进一步注意到上述运行rake jobs:work
结果async_receive
正常。我在某处错过了初始化吗?