public TaskRunHistory getTaskRunHistory() {
        return taskRunManager.getTaskRunHistory();
    }
@Test
    public void testForceGC() {
        Config.enable_task_history_archive = false;
        TaskRunManager taskRunManager = new TaskRunManager();
        for (int i = 0; i < 100; i++) {
            TaskRunStatus taskRunStatus = new TaskRunStatus();
            taskRunStatus.setQueryId("test" + i);
            taskRunStatus.setTaskName("test" + i);
            taskRunManager.getTaskRunHistory().addHistory(taskRunStatus);
        }
        Config.task_runs_max_history_number = 20;
        taskRunManager.getTaskRunHistory().forceGC();
        Assert.assertEquals(20, taskRunManager.getTaskRunHistory().getInMemoryHistory().size());
        Config.task_runs_max_history_number = 10000;
        Config.enable_task_history_archive = true;
    }