Re: [delayed_job] Jobs getting processed by multiple workers

97 views
Skip to first unread message

David Genord II

unread,
Apr 24, 2013, 8:58:23 AM4/24/13
to delay...@googlegroups.com
What version of delayed_job_active_record?


On Tue, Apr 23, 2013 at 10:56 PM, Ibrahim Awwal <ibrahi...@gmail.com> wrote:
Hi,

I've been using Delayed Job for a while on a project, and recently I've been having issues where the same task gets done multiple times, I am assuming by multiple workers. This seems quite wrong, but I'm not sure how to go about debugging this issue. I haven't changed how I'm using DJ, basically every place I use it I just have an Object.delay.do_something_later call. Most of the time I see one new model as expected as the result of my task, but sometimes I see 2, 3, or even 4 copies of the same thing and I am sure I only called delayed job once.

I am running delayed_job 3.0.5 with Rails 3.2.13, Postgresql 9.1 on Ubuntu 12.04 (on EC2). I have also installed posgtresql-contrib for hstore. Packages are fully up to date. My workers are on the same machine as the database/application server. I have 8 of them running. My server is an EC2 m1.xlarge instance. How can I figure out what is actually happening here? It seems that the locking mechanism is somehow getting bypassed which really doesn't make any sense to me. Any help is appreciated. Thanks!

-Ibrahim

--
 
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ibrahim Awwal

unread,
Apr 24, 2013, 8:03:43 PM4/24/13
to delay...@googlegroups.com
I was on 0.4.3, upgraded to 0.4.4 yesterday after I noticed the issues. It's been happening for a few weeks. It hasn't happened since the upgrade for what it's worth, but I don't know if that's really related.
Reply all
Reply to author
Forward
0 new messages