Trip
Trip

Reputation: 27114

Delayed::Jobs keeps sending emails if it fails

I used Delayed_Jobs to send emails. Except I think that if it fails to send to 'every single email' then it tries and reruns the entire batch again.

How do I make it skip an email address if its not correct?

Upvotes: 0

Views: 300

Answers (1)

nathanvda
nathanvda

Reputation: 50057

if an exception occurs delayed_job will treat the job as failed and keep rerunning it. You should capture exceptions to make sure that at the end a job will always be considered as succesful.

Upvotes: 1

Related Questions