GutoVeronezi commented on code in PR #8605:
URL: https://github.com/apache/cloudstack/pull/8605#discussion_r1480795725
##########
engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java:
##########
@@ -439,7 +445,18 @@ public Answer[] send(final Long hostId, final Commands
commands, int timeout) th
}
if (timeout <= 0) {
- timeout = Wait.value();
+
+ for (Command command : commands) {
+ CommandTimeoutVO commandTimeoutVo =
commandTimeoutDao.findByCommandClasspath(command.getClass().getName());
+
+ if (commandTimeoutVo != null && commandTimeoutVo.getTimeout()
> timeout) {
+ timeout = commandTimeoutVo.getTimeout();
+ }
+ }
+
+ if (timeout <= 0) {
+ timeout = Wait.value();
+ }
Review Comment:
Sure thing :+1:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]