From ac813b8cd73b9afd0bb73b1505954498c608f94c Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Sat, 19 Jul 2025 00:48:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20cleanup=20timing=20coordin?= =?UTF-8?q?ation=20with=20analysis=20completion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Moved cleanup trigger to after complete automation cycle finishes - Removed premature cleanup calls from performAnalysis method - Added signalAnalysisComplete method to trigger cleanup only after decision is made - Enhanced cleanup coordination to respect actual analysis completion - Added database files to .gitignore - Cleanup now runs after trading decision, not during analysis This should resolve the high CPU usage issue by ensuring cleanup only happens when the analysis work is truly complete and a trading decision has been finalized. --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 425b5a1..e5c1719 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,7 @@ next-env.d.ts # videos and screenshots /videos/ /screenshots/ + +# database +/prisma/dev.db +/prisma/dev.db-journal