我在制作delayed_jobs
时遇到了麻烦。我收到了undefined method SOMEMETHOD for #
错误,我想要了解的是for #
的含义是什么。它不是Fixnum
,也不是Class
。我不知道它是什么。
我的追踪:
undefined method `build_integration_profiles_second_part_without_delay' for #
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/activemodel-4.1.1/lib/active_model/attribute_methods.rb:435:in `method_missing'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/attribute_methods.rb:206:in `method_missing'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/performable_method.rb:26:in `perform'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/backend/base.rb:105:in `block in invoke_job'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/rollbar-0.12.20/lib/rollbar/delayed_job.rb:9:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/rollbar-0.12.20/lib/rollbar/delayed_job.rb:9:in `block (2 levels) in '
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `block (2 levels) in add'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `block in initialize'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `block in add'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `execute'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:38:in `run_callbacks'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/backend/base.rb:102:in `invoke_job'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:207:in `block (2 levels) in run'
/home/tristan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/timeout.rb:91:in `block in timeout'
/home/tristan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/timeout.rb:101:in `call'
/home/tristan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/timeout.rb:101:in `timeout'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:207:in `block in run'
/home/tristan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:206:in `run'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:274:in `block in reserve_and_run_one_job'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `block in initialize'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `execute'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:38:in `run_callbacks'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:274:in `reserve_and_run_one_job'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:190:in `block in work_off'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:189:in `times'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:189:in `work_off'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:154:in `block (4 levels) in start'
/home/tristan/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:153:in `block (3 levels) in start'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `block in initialize'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `execute'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:38:in `run_callbacks'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:152:in `block (2 levels) in start'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:151:in `loop'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:151:in `block in start'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/plugins/clear_locks.rb:7:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/plugins/clear_locks.rb:7:in `block (2 levels) in '
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `block (2 levels) in add'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60:in `block in initialize'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:78:in `block in add'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65:in `execute'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:38:in `run_callbacks'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:150:in `start'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/command.rb:104:in `run'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/command.rb:92:in `block in run_process'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application.rb:255:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application.rb:255:in `block in start_proc'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/daemonize.rb:82:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/daemonize.rb:82:in `call_as_daemon'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application.rb:259:in `start_proc'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application.rb:296:in `start'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application_group.rb:159:in `block (2 levels) in start_all'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application_group.rb:158:in `fork'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application_group.rb:158:in `block in start_all'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application_group.rb:157:in `each'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/application_group.rb:157:in `start_all'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/controller.rb:80:in `run'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons.rb:197:in `block in run_proc'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `call'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `catch_exceptions'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/daemons-1.1.9/lib/daemons.rb:196:in `run_proc'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/command.rb:90:in `run_process'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/command.rb:83:in `block in daemonize'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/command.rb:81:in `times'
/home/tristan/joggle/shared/bundle/ruby/2.1.0/gems/delayed_job-4.0.1/lib/delayed/command.rb:81:in `daemonize'
bin/delayed_job:5:in `
更新:
我添加了我的踪迹,因为它又发生了。上次,我弄清楚问题是什么。 Delayed_job
没有显示整个内容,事实证明,它是一个Shopify ActiveResource
实例。这一次,这是一种不同的方法,我真的不知道#
是什么。不确定这是哪一堂课。