mirror of https://github.com/apache/cloudstack.git
Merge pull request #1272 from koushik-das/CLOUDSTACK-9195
CLOUDSTACK-9195: Cancelled/failed async jobs not getting cleaned up from DB Setting 'job_complete_msid' field in async_job table when marking job as cancelled during MS restart. This will ensure that the job is cleaned up as part of GC thread. * pr/1272: CLOUDSTACK-9195: Cancelled/failed async jobs not getting cleaned up from DB Setting 'job_complete_msid' field in async_job table when marking job as cancelled during MS restart. This will ensure that the job is cleaned up as part of GC thread. Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
commit
1bfba70b62
|
|
@ -1006,6 +1006,7 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
|
|||
job.setStatus(JobInfo.Status.FAILED);
|
||||
job.setResultCode(ApiErrorCode.INTERNAL_ERROR.getHttpCode());
|
||||
job.setResult("job cancelled because of management server restart or shutdown");
|
||||
job.setCompleteMsid(msid);
|
||||
_jobDao.update(job.getId(), job);
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Purge queue item for cancelled job-" + job.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue