File tree Expand file tree Collapse file tree
TaskDaemon.Core/src/me/aa07/paradise/taskdaemon/core/modules/profilercleanup Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ public void execute(JobExecutionContext event) throws JobExecutionException {
4848
4949 DbCore dbcore = dbcore_holder .get ();
5050
51- logger .info ("Cleaning out profiler DB" );
52- dbcore .jooq (DatabaseType .ProfilerDb ).delete (Tables .SAMPLES ).where (Tables .SAMPLES .SAMPLETIME .lt (dbcore .now ().minusDays (7 ))).execute ();
51+ logger .info ("Cleaning out profiler DB - proc samples" );
52+ dbcore .jooq (DatabaseType .ProfilerDb ).delete (Tables .SAMPLES )
53+ .where (Tables .SAMPLES .SAMPLETIME .lt (dbcore .now ().minusDays (7 ))).execute ();
54+ logger .info ("Cleaning out profiler DB - sendmaps samples" );
55+ dbcore .jooq (DatabaseType .ProfilerDb ).delete (Tables .SENDMAPS_SAMPLES )
56+ .where (Tables .SENDMAPS_SAMPLES .SAMPLETIME .lt (dbcore .now ().minusDays (7 ))).execute ();
5357 logger .info ("Cleaned" );
5458 }
5559
You can’t perform that action at this time.
0 commit comments