Expired message cleanup
You can configure a cron task to remove messages that have expired in the Kafka topic from Maximo® Manage. Kafka does not provide a way to delete messages from the server.
KafkaErrorsCleanup cron task
When a message is older than the retention time that you configure on the server, Kafka expires the message. Maximo Manage cron tasks cannot process expired message from the queue, and if any of the expired messages didn't process because of errors, they remain in the Message Reprocessing application.
The KafkaErrorsCleanup cron task can be configured to clean up the Kafka expired messages that meet
the following conditions:
- The message must be older than the retention time in hours that is specified when you add a message queue for a publish channel, enterprise service, or notification channel. The integration administrator should set this time to match the retention time that is specified when the topic is registered in Kafka.
- The message must be marked for deletion in the product or already processed. Topics that are already processed are no longer visible in the Message Reprocessing application, but they are deleted by the cleanup cron task.
Messages that have a status of Hold or Retry are not deleted by the cron task. The integration administrator can try to reprocess those messages manually from the Message Reprocessing application or mark the message for deletion and run the cron task.