removed filter to get all tenders - bug fix

This commit is contained in:
Mazyar
2026-05-04 05:28:56 +03:30
parent 446c11dfbf
commit 086fe0ffd5
7 changed files with 31 additions and 20 deletions
+6 -1
View File
@@ -55,7 +55,7 @@ func main() {
}
// Initialize Worker
bootstrap.InitWorker(*config, mongoManager, appLogger, notificationService, glmService, minioService)
scheduler := bootstrap.InitWorker(*config, mongoManager, appLogger, notificationService, glmService, minioService)
// Set up signal handling for graceful shutdown
signalChan := make(chan os.Signal, 1)
@@ -65,5 +65,10 @@ func main() {
<-signalChan
appLogger.Info("Received shutdown signal, stopping scheduler...", map[string]interface{}{})
// Stop scheduler gracefully
if scheduler != nil {
scheduler.Stop()
}
appLogger.Info("Worker application stopped", map[string]interface{}{})
}