Forum: Ruby on Rails Need help for Resque job.

589525f133e603e1f17af9b03176c000?d=identicon&s=25 betterabhi . (Guest)
on 2014-08-14 12:11
(Received via mailing list)
Hi Friends,

I have a scenario where I am calling a resque jobs within the resque job
which is already initiated.

The below mentioned infinite code is just a example: The code will
till all the jobs are not completed. BUT the issue is that when I write
below code the jobs never completed. It get stucked somewhere.

1. If I am not writing the below code then it work well.
2. I am using below code to let the system know that the job is
3. I have used the resque-status but my required is different so
resque-status won't help much.
4. Just wanted to know if there is any way I can let the system auto
that the job is done.

        count   = 0
        loop do
            break if job_ids.blank?

            job_id  = job_ids[count]
            job     = Resque::Plugins::Status::Hash.get(job_id)

            if job["status"].eql?('completed')
            elsif job_id["status"].eql?('failed')
                return false
            count = count.eql?(1) ? 0 : 1

Thank you, for all your help
8a17df3426daca6df1afc91e102974a0?d=identicon&s=25 javinto (Guest)
on 2014-08-15 10:28
(Received via mailing list)

Resque works with Redis. Why not use Redis to keep track of executed


Op donderdag 14 augustus 2014 12:11:02 UTC+2 schreef
24f49d448968ea24c8630c31fae12758?d=identicon&s=25 Bala Paranj (Guest)
on 2014-08-18 00:33
(Received via mailing list)
Have you looked at the resque-web interface? What do you see in the
'Statuses' tab? This article on 'How to Install and Configure Resque to
Handle Background Jobs in Rails 4.1'
might help.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.