Weitere ähnliche Inhalte
Ähnlich wie Introduction To Delayed Job (20)
Kürzlich hochgeladen (20)
Introduction To Delayed Job
- 24. class Notifier
def deliver_activation_instructions(user)
# ...
end
handle_asynchronously :deliver_activation_instructions
end
- 26. class LongRunningJob < Struct.new(:id)
def perform
# do some crazy long calculations
end
end
Delayed::Job.enqueue LongRunningJob.new(42)
- 33. # play nice with Passenger
require 'delayed/recipes'
after "deploy:update_code", "delayed_job:stop"
after "deploy:restart", "delayed_job:start"
- 37. Photo Attributions
• http://www.flickr.com/photos/aloshbennett/540105576/
• http://www.flickr.com/photos/gyrus/132436475/
• http://www.flickr.com/photos/gavatron/866650954/