Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.14 KB

Cleaning.adoc

File metadata and controls

15 lines (10 loc) · 1.14 KB

Cleaning Grabbit Job Repository

Over time, the Grabbit Job Repository which is stored under /var/grabbit grows and without pruning the data that it is storing, the performance of the Grabbit Status API degrades slowly. In order to manage that, there is a Clean Repository API available that allows you to delete any Grabbit job history that is older than X hours from the time the API was hit.

The usage is :

POST /grabbit/jobrepository/clean
Parameter: hours=X

where X is the number of hours.

This API will delete all the JobInstances, JobExecutions, StepExecutions and ExecutionContexts that were either COMPLETED or FAILED X hours ago from now.