mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7566:Many jobs getting stuck in pending state and cloud is unusable.
(cherry picked from commit a2d85c8cae5f603bbcfcd3659c1207f0bfe461a7) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> Conflicts: framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
This commit is contained in:
parent
95daa14e2a
commit
6df38427cf
@ -255,9 +255,12 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
|
|||||||
s_logger.debug("Publish async job-" + jobId + " complete on message bus");
|
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()) {
|
if (s_logger.isDebugEnabled()) {
|
||||||
s_logger.debug("Wake up jobs related to job- " + jobId);
|
s_logger.debug("Wake up jobs related to job- " + jobId);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Long> wakeupList = Transaction.execute(new TransactionCallback<List<Long>>() {
|
List<Long> wakeupList = Transaction.execute(new TransactionCallback<List<Long>>() {
|
||||||
@Override
|
@Override
|
||||||
public List<Long> doInTransaction(TransactionStatus status) {
|
public List<Long> doInTransaction(TransactionStatus status) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user