CLOUDSTACK-7843: sync Job Failures always reported as success on Event Bus

This commit is contained in:
Damodar 2014-11-05 17:19:46 +05:30 committed by Kishan Kavala
parent 131c2f2014
commit ca66062cd5

View File

@ -253,7 +253,6 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
if (s_logger.isDebugEnabled()) {
s_logger.debug("Publish async job-" + jobId + " complete on message bus");
}
publishOnEventBus(job, "complete"); // publish before the instance type and ID are wiped out
if (s_logger.isDebugEnabled()) {
s_logger.debug("Wake up jobs related to job-" + jobId);
@ -291,6 +290,8 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
}
});
publishOnEventBus(job, "complete"); // publish before the instance type and ID are wiped out
//
// disable wakeup scheduling now, since all API jobs are currently using block-waiting for sub-jobs
//