Introduction

This enhancement enables Cloudstack users to establish how long an asynchronous job took to complete. By recording the start time and end time of an asynchronous job, users will able to extract statistical data regarding the performance of various types of asynchronous jobs. This data can then be used for reporting.

Feature Specification

CloudStack has the concept of executing certain API calls asynchronously when they take a long period of time to complete. They will immediately return a job id of the job that will be responsible for executing the command. This job id can be used to query the status of the job by using the queryAsyncJobResult application programming interface (API) call.
Among other fields, the result of this API query returns the 'created' field, which is the timestamp of when an asynchronous job started. Before this feature, there was no functional mechanism that captured and persisted the end time of when an asynchronous job has finished. As a result, the "queryAsyncJobResult" API did not return a 'completed' field.

API

Management Server Process

Garbage Collection

Screenshots

A call to queryAsyncJobResult API returns both the created and the endtime field values.