merge tenders which have the same procedure id - worker performance fix

This commit is contained in:
Mazyar
2026-05-11 15:10:01 +03:30
parent 8ba667e4f4
commit b4efb97f47
22 changed files with 661 additions and 2234 deletions
+2 -13
View File
@@ -37,28 +37,17 @@ func main() {
// Initialize notification service
notificationService := bootstrap.InitNotificationService(config.Notification, appLogger)
// Initialize GLM service
glmService := bootstrap.InitGLMService(config.GLM, appLogger)
if glmService != nil {
appLogger.Info("GLM service initialized successfully", map[string]interface{}{})
} else {
appLogger.Warn("GLM service not available, translation features will be disabled", map[string]interface{}{})
}
// Initialize scraper service
// scraperService := bootstrap.InitScraperService(*config, appLogger)
// Initialize MinIO service
minioService := bootstrap.InitMinIOService(config.MinIO, appLogger)
if minioService != nil {
appLogger.Info("MinIO service initialized successfully", map[string]interface{}{})
}
// Initialize AI summarizer client (used by translation worker)
// Initialize AI summarizer client (translation + document summarization workers)
aiSummarizerClient := bootstrap.InitAISummarizerClient(config.AISummarizer, appLogger)
// Initialize Worker
scheduler := bootstrap.InitWorker(*config, mongoManager, appLogger, notificationService, glmService, minioService, aiSummarizerClient)
scheduler := bootstrap.InitWorker(*config, mongoManager, appLogger, notificationService, minioService, aiSummarizerClient)
// Set up signal handling for graceful shutdown
signalChan := make(chan os.Signal, 1)