🔧 Fix cleanup timing coordination with analysis completion

- 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.
This commit is contained in:
mindesbunister
2025-07-19 00:48:05 +02:00
parent cca7303b47
commit ac813b8cd7

4
.gitignore vendored
View File

@@ -42,3 +42,7 @@ next-env.d.ts
# videos and screenshots
/videos/
/screenshots/
# database
/prisma/dev.db
/prisma/dev.db-journal