Skip to content

Commit ca66062

Browse files
Damodarkishankavala
authored andcommitted
CLOUDSTACK-7843: sync Job Failures always reported as success on Event Bus
1 parent 131c2f2 commit ca66062

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ public void completeAsyncJob(final long jobId, final Status jobStatus, final int
253253
if (s_logger.isDebugEnabled()) {
254254
s_logger.debug("Publish async job-" + jobId + " complete on message bus");
255255
}
256-
publishOnEventBus(job, "complete"); // publish before the instance type and ID are wiped out
257256

258257
if (s_logger.isDebugEnabled()) {
259258
s_logger.debug("Wake up jobs related to job-" + jobId);
@@ -291,6 +290,8 @@ public List<Long> doInTransaction(TransactionStatus status) {
291290
}
292291
});
293292

293+
publishOnEventBus(job, "complete"); // publish before the instance type and ID are wiped out
294+
294295
//
295296
// disable wakeup scheduling now, since all API jobs are currently using block-waiting for sub-jobs
296297
//

0 commit comments

Comments
 (0)