Delayed_job锁定但未处理 [英] Delayed_job locking but not processing

查看:60
本文介绍了Delayed_job锁定但未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解决delay_job的问题。由于某种原因,我看到很多作业locked_by和locked_at,但是队列中没有任何处理。为什么会发生这种情况或如何使其继续前进的任何提示?

I'm trying to troubleshoot an issue with delayed_job. For some reason I see lots of jobs locked_by and locked_at but nothing being processed out of the queue. Any tips to why this could be happening or how to get it to move on?

我正在使用Rails 2.3.11和Ruby 1.9.2p0

I'm using Rails 2.3.11 and Ruby 1.9.2p0

谢谢!

推荐答案

延迟作业被强制终止时(部署部署新版本使用Capistrano投入生产),当前已锁定的处理作业将保持锁定状态。您可以通过将 locked_at locked_by 设置为null来手动清除锁定。

When delayed job is forcefully terminated (which happens when you deploy a new version to production using capistrano), the currently processing jobs which are locked will stay locked. You can manually clear the lock by setting locked_at and locked_by to null.

这篇关于Delayed_job锁定但未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆