Camunda 7 - How to configure more than one history clean up batch window start and end time per day in application.yaml file?

Is it possible to configure more than one history clean up batch window start and end time per day in application.yaml file?
I did for once per day as follows.
generic-properties:
properties:
historyCleanupEnabled: true
historyCleanupBatchWindowStartTime: 02:00
historyCleanupBatchWindowEndTime: 06:00
historyCleanupStrategy: removalTimeBased
historyRemovalTimeStrategy: start

Hi @Pandian_Raman
Unfortunatelly I think it is not possible to configure multiple history cleanup batch windows in the application.yaml file.

As one of the possible workarounds you can define a cron job or other scheduled task and use the Camunda REST API to trigger history cleanup

Regards,
Alex

What happens if you install two applications (embedded engine) with different cleanup time definitions? Don’t they get executed independently of each other?

Hi @Alex_Voloshyn ,

Thank you for the update, I understand in out of the box way not possible to configure multiple history cleanup batch window, let me try with custom approach.

Regards,

Pandian

Hi @fml2 ,

Thank you for the input, I will try this approach share the results.

Regards,
Pandian

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.