2013-05-28 18 views
-2

我有類編譯/ lib中,其方法我在resque類應用程序/工人運行rails應用程序使用resque。我總是得到SystemExit錯誤退出錯誤作爲錯誤的作業,當在resque web界面查看如何解決?

的resque類是這個

  $:.unshift(Rails.root.join("lib")) 
     require "Compile.rb" 
     class CC 
       @queue= :results_queue 
       def self.perform(pid,x,fn,lang) 
         Dir.chdir(Rails.root.join("lib")); 
         tcid=fn[2..3]; 
         fe=(Rails.root.join('sub',x)).to_s; 
         ipf=(Rails.root.join('io',pid,fn)); 
         utf=(Rails.root.join('io',pid,"ans"+tcid.to_s)); 
         ***res=Compile::Compile.runcode(fe.to_s,lang,1,ipf.to_s,utf.to_s);*** 
       end 
    end 

Compile.rb有類此

模塊編譯 類編譯 DEF self.runco​​de(文件,郎,TL,INPF,OUTF) ........

我總是失敗的作業異常SystemExit 錯誤退出 但是當我刪除RES = ..線是之間*上面有沒有失敗的作業。 有人可以幫我嗎?

+0

我們確實需要更多地瞭解什麼'Compile.rb'樣子,那是什麼可能被執行的代碼('fe')也以提供多幫幫我。 – ches

回答

0

得到它debugged.understood問題

相關問題