karuturi commented on a change in pull request #1832: CLOUDSTACK-9652 Job
framework - Cancelling async jobs
URL: https://github.com/apache/cloudstack/pull/1832#discussion_r116164729
##########
File path:
framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
##########
@@ -1047,9 +1091,25 @@ public boolean start() {
@Override
public boolean stop() {
+ List<SyncQueueItemVO> jobs =
_syncQueueItemDao.getActiveQueueItems(getMsid(), false);
+ for (SyncQueueItemVO job : jobs) {
+ AsyncJobVO childjob = _jobDao.findById(job.getContentId());
+ if (childjob != null) {
+ Long parentjobid = Long.parseLong(childjob.getRelated());
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services