Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Prototype
- class Worker
- @queue = :prototype
- def self.perform
- puts 'Background job started'
- time = sleep(10 + rand(10))
- puts "Background job stopped. Took #{time} seconds."
- end
- end
- end
Add Comment
Please, Sign In to add comment