我正在使用resque并且我有一个工作人员处理我想要停止的长期工作,但方法new_kill_child返回nil并且作业不会停止。
2.0.0p247 :019 > worker1 = Resque::Worker.all.first
=> #<Worker Portable-Bureau:18811:high_priority,low_priority>
2.0.0p247 :020 > worker1.job
=> {"queue"=>"high_priority", "run_at"=>"2013-10-15T15:20:33Z", "payload"=>{"class"=>"HighPriority", "args"=>[85]}}
2.0.0p247 :021 > worker1.new_kill_child
=> nil
如果不杀死工人,我该怎样做才能终止工作?