History Cleanup Job Ran but History Not Cleaned

Per Camunda documentation, we have configured for History data cleanup as following (yes, we are using Spring Boot):

history: full
historyCleanupBatchWindowStartTime: “00:00”
historyCleanupBatchWindowEndTime: “06:00”
historyCleanupStrategy: endTimeBased
historyCleanupMetricsEnabled: false
batchOperationHistoryTimeToLive: P7D

We can tell that the job faithfully runs daily at 00:00, but after 7 days, no records in act_hi_* tables got cleaned up.

What did we do wrong? Is there any way that we get to see the error log for what may have happened that prevented history from being cleaned up? We’d really appreciate if we can get some help here.

Thank you so much in advance.


Hi - it looks like you may be missing the historyTimeToLive configuration. Currently you only have batchOperationHistoryTimeToLive configured which is only specific to batch operations and does not include process, case, or decision data.

@jwarren, Thank you so much for your kind reply. Obviously, historyTimeToLive is exactly something we have missed.