Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package jpl.cws.console;

import org.camunda.bpm.engine.HistoryService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -13,7 +14,7 @@ public class HistoryCleanupDaemon extends Thread {
private static final int THIS_THREAD_REPEAT_DELAY = 8 * 60 * 60000; // 8 hours

@Autowired private CwsConsoleService cwsConsoleService;

@Autowired private HistoryService historyService;
@Autowired private CwsEmailerService cwsEmailerService;

public void run() {
Expand All @@ -28,7 +29,10 @@ public void run() {
sleep(THIS_THREAD_REPEAT_DELAY);

log.debug("Performing History Cleanup...");


// Database history cleanup
historyService.cleanUpHistoryAsync(true);

cwsConsoleService.cleanupElasticsearch();
cwsConsoleService.sendWorkerLogCleanupTopicMessage();

Expand Down