开发者

lost resque jobs

While I restart resque workers during deploy if new job comes in, then these jobs are set as queued in resque-status but it's not actually queued in resque. So my jobs are lost.

lost resque jobs

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"}

As you can see there are 12 jobs with queued status but they're not showing up in Queues tab as the开发者_开发知识库re is no job pending in resque.

How can I fix this issue?

Is there any method to requeue these workers??


This is fixed in 0.3.3 https://github.com/quirkey/resque-status/commit/dde6dcadcc248561aa223b6085b40d1c6e6a621b

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜