lib/lifeboat.rb in lifeboat-0.6.2 vs lib/lifeboat.rb in lifeboat-0.6.3
- old
+ new
@@ -69,18 +69,28 @@
def destroy_resque_lifeboat
if RAILS_ENV == "testing"
self.destroy_lifeboat
else
- Resque.enqueue(RescateLifeBoat, :destroy_lifeboat, self.class.name, self.id)
+ begin
+ Resque.enqueue(RescateLifeBoat, :destroy_lifeboat, self.class.name, self.id)
+ rescue => e
+ puts "Captain! There was a problem sending the Lifeboats"
+ puts e
+ end
end
end
def update_resque_lifeboat
if RAILS_ENV == "testing"
self.update_lifeboat
else
- Resque.enqueue(RescateLifeBoat, :update_lifeboat ,self.class.name, self.id)
+ begin
+ Resque.enqueue(RescateLifeBoat, :update_lifeboat ,self.class.name, self.id)
+ rescue => e
+ puts "Captain! There was a problem sending the Lifeboats"
+ puts e
+ end
end
end
end