I’m using delayed_job for a priority queue. I was wondering how do i define what a failed job is?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A failed job is a job that raises an error. If you want the job to fail you can simply raise an error. Sometimes, if I am waiting on something else to finish, instead of failing the job I will put another job in the queue with a
run_atfor x time in the future.