当我在部署期间重新启动resque工作进程时,如果有新的作业进入,那么这些作业在resque-status中被设置为已排队,但它实际上并没有在resque中排队。所以我的工作就没了。

ruby-1.9.2-p180 :027 > status=Resque::Status.get("f050dd20bc45012e1e77723c9193eb99")
=> #<Resque::Status {"time"=>1315485749, "status"=>"queued", "uuid"=>"f050dd20bc45012e1e77723c9193eb99"}>
ruby-1.9.2-p180 :022 > status.status
=> "queued"
ruby-1.9.2-p180 :033 > Resque.info
=> {:pending=>0, :processed=>12943, :queues=>9, :workers=>10, :working=>0, :failed=>8911, :servers=>["redis://192.168.###.###:6379/0"], :environment=>"production"}正如您所看到的,有12个作业处于排队状态,但它们没有显示在队列选项卡中,因为在resque中没有作业挂起。
如何修复此issue
有没有办法让这些工人重新排队??
发布于 2012-04-15 07:00:50
https://stackoverflow.com/questions/7357776
复制相似问题