Guest User

Untitled

a guest
Jul 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. module PdvMigration
  2. module Import
  3. class ExecuteItemsPdvJob
  4.  
  5. @queue = :import_pdv
  6.  
  7. def self.perform(import_pdv_id)
  8.  
  9. import_pdv = ImportPdv.find(import_pdv_id)
  10. import_pdv.execute_items_actions
  11.  
  12. ImportPdvNotification.deliver_notify(import_pdv)
  13.  
  14. Resque.enqueue(PdvMigration::Import::CheckFinishedImportJob, import_pdv.id)
  15.  
  16. end
  17. end
  18. end
  19. end
Add Comment
Please, Sign In to add comment