mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Call removeRawUsageRecords with interval (> 0) and it will clean up cloud_usage table by removing records older than interval no. of days from today (current date) and in case it runs when the job exec time is near, it will fail alerting user to try again after a 15 min window. There is an issue with async job scheduler, if this API were async it tries to search and remove job from cloud_usage.async_job table and fails which is why this API is sync and extends BaseCmd. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>