Time to live set to 0 historic instances not being deleted

Hello,

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?

Thanks

Hi,

Could you please share your history cleanup configuration.
Do you trigger the history cleanup manually or it is scheduled?

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");

    }
}

Thanks