Commit 84af585f authored by danielgrippi's avatar danielgrippi

rescue SocketError on UpdateServiceUser job when dev box is in single process...

rescue SocketError on UpdateServiceUser job when dev box is in single process mode and not connected to the internet
parent a07b742c
......@@ -4,11 +4,15 @@
module Jobs
class UpdateServiceUsers < Base
class UpdateServiceUsers < Base
@queue = :http_service
def self.perform(service_id)
service = Service.find(service_id)
service.save_friends
begin
service.save_friends
rescue SocketError
nil
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment