Nilesh Navale
2011-Apr-06 04:40 UTC
Problem in resque: job not getting removed from queue when finished processing
Hi, I am using resque, and resque-scheduler in my rails application. I am facing strange problem in using resque-scheduler. One of my job is not getting removed from queue, once it finishes with the ''perform'' method. I need to kill it explicitly to get out of the queue, then other jobs in the queue starts executing. Job class is simple, like: class FooJob @queue = :high_volume def self.perform puts "FooJob#perform:" # some method call end end And resque_schedule.yml contains: add_jobs_from_foo: cron: "15 * * * *" class: FooJob description: "enqueue jobs from Foo" Can it be problem with gem versions or memory issue? or any other? Thanks in advance for any pointers -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Ryan Bigg
2011-Apr-06 04:42 UTC
Re: Problem in resque: job not getting removed from queue when finished processing
This is not an issue for the Rails-core mailing list. This list is only for issues about core components of Rails, such as code patches or bugfixes. For normal questions about Rails, please ask them on rubyonrails-talk. -- Ryan Bigg On Wednesday, 6 April 2011 at 2:40 PM, Nilesh Navale wrote:> Hi, > I am using resque, and resque-scheduler in my rails application. I am facing strange problem in using resque-scheduler. One of my job is not getting removed from queue, once it finishes with the ''perform'' method. I need to kill it explicitly to get out of the queue, then other jobs in the queue starts executing. > Job class is simple, like: > class FooJob > @queue = :high_volume > > def self.perform > puts "FooJob#perform:" > # some method call > end > end > And resque_schedule.yml contains: > add_jobs_from_foo: > cron: "15 * * * *" > class: FooJob > description: "enqueue jobs from Foo" > Can it be problem with gem versions or memory issue? or any other? > > Thanks in advance for any pointers > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.