Guest User

Untitled

a guest
Oct 6th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.28 KB | None | 0 0
  1. require 'resque_enqueuer'
  2.  
  3. namespace :lysbon do
  4.   namespace :bouncing_emails do
  5.     desc "Fetch all emails that bounced from SendGrid"
  6.     task :fetch do
  7.       ResqueEnqueuer.enqueue 'Tasks::BouncingEmails'
  8.     end
  9.   end
  10. end
  11.  
  12.     def do_work
  13.       self.class.fetch
  14.     end
Add Comment
Please, Sign In to add comment