Is readyForShutdown predicated on existence of pendings jobs? #10682
-
When initiating a Is the Here is the flow of operations for reference:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It seems like readyForShutdown is dependent on the value of pendingJobsCount : https://github.com/apache/cloudstack/blob/4.20/plugins/shutdown/src/main/java/org/apache/cloudstack/shutdown/ShutdownManagerImpl.java#L153 |
Beta Was this translation helpful? Give feedback.
It seems like readyForShutdown is dependent on the value of pendingJobsCount : https://github.com/apache/cloudstack/blob/4.20/plugins/shutdown/src/main/java/org/apache/cloudstack/shutdown/ShutdownManagerImpl.java#L153
i.e., if pendingJobsCount is 0, readyForShutdown is true. But it will proceed to shutdown only if prepareForShutdown is initiated and shutdown is triggered
https://github.com/apache/cloudstack/blob/4.20/plugins/shutdown/src/main/java/org/apache/cloudstack/shutdown/ShutdownManagerImpl.java#L246-L256