davidjumani commented on code in PR #6755:
URL: https://github.com/apache/cloudstack/pull/6755#discussion_r1118304578
##########
server/src/main/java/com/cloud/api/ApiDispatcher.java:
##########
@@ -85,7 +90,11 @@ public void setMigrateQueueSizeLimit(final Long
migrateLimit) {
}
public void dispatchCreateCmd(final BaseAsyncCreateCmd cmd, final
Map<String, String> params) throws Exception {
- asyncCreationDispatchChain.dispatch(new DispatchTask(cmd, params));
+ if (asyncJobManager.isAsyncJobsEnabled()) {
+ asyncCreationDispatchChain.dispatch(new DispatchTask(cmd, params));
+ } else {
+ throw new CloudRuntimeException("A shutdown has been triggered.
Can not accept new jobs");
+ }
Review Comment:
No, in the docs, it is required that the user remove the MS from the LB
prior to any shutdown actions
--
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]