我在我的工作人员文件中包含一个文件时遇到问题......我需要做什么才能在排队工作时找到所需的文件?
这是错误:
/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- my_worker_helper (LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /task/realtime_worker.rb:2:in `<top (required)>'
from /task/runner.rb:343:in `require_relative'
from /task/runner.rb:343:in `<main>'
这是代码:
require 'iron_worker'
require 'my_worker_helper'
require 'real_time_helper'
class RealtimeWorker < IronWorker::Base
attr_accessor :team_list
def run