Problem in resque: job not getting removed from queue when finished processing

10 views
Skip to first unread message

Nilesh

unread,
Apr 6, 2011, 12:41:09 AM4/6/11
to rubyonra...@googlegroups.com

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
Reply all
Reply to author
Forward
0 new messages