Revert "CLOUDSTACK-7566:Many jobs getting stuck in pending state and cloud is unusable."

This reverts commit 6df38427cffe9cab5a2a842571941a97a3a07b52.
This commit is contained in:
Rohit Yadav 2014-12-04 02:38:47 +05:30
parent fac7bfc5d5
commit 835abe6c7c

View File

@ -255,12 +255,9 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
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);
}
List<Long> wakeupList = Transaction.execute(new TransactionCallback<List<Long>>() {
@Override
public List<Long> doInTransaction(TransactionStatus status) {