I have a process definition with time to live set to 0 however after process completion the historic instance and associated data isn’t being removed. I can see property removalTime being the same as endTime.
Is there any additional configuration I need to ensure that the historic data (instance and variables) are removed?
Hi @Yana,
Turns out I had a configuration issue which wasn’t triggering the cleanup, updated to use the following:
public class HistoricCleanUpConfiguration extends AbstractCamundaConfiguration {
public void preInit(SpringProcessEngineConfiguration processEngineConfiguration) {
log.info("Initialising batch window time for history cleanup");
processEngineConfiguration.setHistoryCleanupBatchWindowStartTime("03:00");
processEngineConfiguration.setHistoryCleanupBatchWindowEndTime("05:00");
log.info("Initialised batch window time for history cleanup");
}
}