Skip to content

Is readyForShutdown predicated on existence of pendings jobs? #10682

Closed Answered by Pearl1594
adietrich-ussignal asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@adietrich-ussignal
Comment options

@sureshanaparti
Comment options

@adietrich-ussignal
Comment options

Answer selected by adietrich-ussignal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants