Skip to content

Commit

Permalink
change the time to update
Browse files Browse the repository at this point in the history
  • Loading branch information
Henar Munoz committed Jul 29, 2014
1 parent 7c3aa34 commit a07791e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class BaseInstallableInstanceManagerChef {
protected ChefNodeDao chefNodeDao;
protected SDCClientUtils sdcClientUtils;

protected int MAX_TIME = 90000;
protected int MAX_TIME = 4000000;

protected static Logger log = LoggerFactory.getLogger(BaseInstallableInstanceManagerChef.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ public void isRecipeExecuted(VM vm, String process, String recipe, String token)
int time = 5000;
Date fechaAhora = new Date();
while (!isExecuted) {
System.out.println("MAX_TIME: " + MAX_TIME + " and time: " + time);
log.info("MAX_TIME: " + MAX_TIME + " and time: " + time);
try {
if (time > MAX_TIME) {
String errorMesg = "Recipe " + process + " coub not be executed in " + vm.getChefClientName();
log.info(errorMesg);
unassignRecipes(vm, recipe, token);
// unassignRecipes(vm, recipe, token);
throw new NodeExecutionException(errorMesg);
}

Expand All @@ -197,9 +197,9 @@ public void isRecipeExecuted(VM vm, String process, String recipe, String token)
throw new NodeExecutionException(e);
} catch (InterruptedException ie) {
throw new NodeExecutionException(ie);
} catch (InstallatorException ie2){
} /*catch (InstallatorException ie2){
throw new NodeExecutionException(ie2);
}
}*/
}
}

Expand Down

0 comments on commit a07791e

Please sign in to comment.