From 732847436b84cd37205404fd090b01dfc6d59264 Mon Sep 17 00:00:00 2001 From: Naomi Seyfer Date: Mon, 22 Jul 2013 15:31:49 -0700 Subject: [PATCH] Time out if we dont connect to galaxy in 10s --- tools/deploy-galaxy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/deploy-galaxy.js b/tools/deploy-galaxy.js index c51269ee42..05fd2f5f45 100644 --- a/tools/deploy-galaxy.js +++ b/tools/deploy-galaxy.js @@ -35,6 +35,11 @@ var getGalaxy = function (context) { } _galaxy = Meteor.connect(context.galaxy.url); + Meteor.setTimeout(function () { + if (_galaxy.status().status !== "connected") { + exitWithError("Could not connect to galaxy " + context.galaxy + ": " + _galaxy.status().status); + } + }, 10*1000); } return _galaxy;