GitHub user karuturi opened a pull request: https://github.com/apache/cloudstack/pull/1832
cloudstack-9652 Job framework - Cancelling async jobs enabled cancellation of long running or subsequent queued up async jobs You can merge this pull request into a Git repository by running: $ git pull https://github.com/Accelerite/cloudstack CLOUDSTACK-9652 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/1832.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1832 ---- commit 1099b3eb1adbb4dd028a86877986e3ac77eeee71 Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-12-13T11:55:44Z CLOUDSTACK-9652: added new cancel async job api commit d9f4f6e898f063096d4bace46753b179c0bb68dc Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-07-12T05:45:32Z CLOUDSTACK-9652 unittests for cancelAsyncJob cmd commit 5093e592b7e71978f50ae8007c1da985758d6efd Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-12-14T09:35:37Z CLOUDSTACK-9652 API to find long running jobs added listlongrunnningjobs api added listqueuedupasyncjobs api commit 649f5b9237b85c1c2aba67065b13261ec4930487 Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-12-14T10:14:24Z CLOUDSTACK-9652 Cleanup at Agent Layer Throwing an exception in agentattache incase the job is cancelled. The top layers should handle the exception and take necessary action for cleaning of resources. commit cebbd36f94914f144f5cd9b016467d18f02c222c Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-12-14T10:34:12Z CLOUDSTACK-9652 Annotating async APIs as cancellable or not commit e2df57ca6ba642cf120295cf805d04881e7c14cf Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-12-14T11:43:53Z CLOUDSTACK-9652: added OperationCancelledException for a cancelled job Added exception handling at various agent commands for this new checked exception. commit ebfc75879deb9b7de775fe9d92f361d432852b91 Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-07-22T09:38:11Z CLOUDSTACK-9652 cancelling a job in queue should not throw exception check the state of the parent job before submitting the worker thread. starting work thread only if parent job is not done. commit adb19cb2788706b66e7a1454327d541b2ba0eeae Author: Rajani Karuturi <rajani.karut...@accelerite.com> Date: 2016-12-15T09:53:43Z CLOUDSTACK-9652 cleaning up async jobs on graceful MS shutdown ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---