Ask A Question

Notifications

You’re not receiving notifications from this thread.

Sending Emails For Successful Web Scraper Results Discussion

It took me some time to understand why my ActionMailer::MailDeliveryJob were getting enqueued but not performed when running the rake task. Reading this article https://stevechanin.blogspot.com/2017/05/deliverlater-not-working-in-rake-tasks.html it seems that using UserMailer#deliver_later puts the job in a memory queue that dies when the rake task ends.
Using UserMailer#deliver_now or putting the rake task to sleep with a sleep(5) at the end of it does help for now.

Reply

Restart the terminal, and then execute the rbenv command. The list of commands ought to be included.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.