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
正しく機能することに気付きました。どこかで初期化が欠落していますか?