History Cleanup


#1

We have the following in our bpm-platform.xml:

<properties>
  <property name="history">full</property>
  <property name="databaseSchemaUpdate">true</property>
  <property name="authorizationEnabled">true</property>
  <property name="jobExecutorDeploymentAware">true</property>
  <property name="jobExecutorActivate">true</property>
  <property name="defaultNumberOfRetries">1</property>
  <property name="defaultSerializationFormat">application/json</property>
  <property name="defaultUserPermissionNameForTask">TASK_WORK</property>
  <property name="historyCleanupBatchWindowStartTime">00:01</property>
  <property name="historyCleanupBatchWindowEndTime">23:59</property>
  <property name="historyCleanupBatchSize">1</property>
  <property name="historyCleanupBatchThreshold">0</property>
</properties>

But unfortunately we don’t see any process instances being cleaned up. historyTimeToLive is set to 1 day. We’re using version 7.7.3.


#2

Hi @c.biever,

Could you please check the job log table in the database and attach it here. If something went wrong with the history cleanup there should be indicators for it.

I am curious about your decision to configure historyCleanupBatchSize to 1, any reasoning behind this or you are just testing?

Best regards,
Yana


#3

Hallo Yana,

Sorry for the late reply. The chosen numbers are just for testing. In the meantime we have opened an issue (SUPPORT-3695) which contains a small test project.

Regards,
Casper


#4

Hallo Yana,

By observing over a longer time period and the help of Camunda Support we are confident that the issue is resolved.

Best Regards,
Casper