mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-27 02:42:00 +08:00
Refactor: message processing (#16852)
### Summary 1. refactor message processing 2. delete un-used componentIndexMap 3. unfold (delete) internal/ingestion/task/task_handler.go
This commit is contained in:
@@ -551,10 +551,10 @@ func runIngestor(args *serverArgs) error {
|
||||
}
|
||||
|
||||
// Create context with timeout for graceful shutdown
|
||||
_, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
shutdownCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
|
||||
ingestor.Stop()
|
||||
ingestor.Stop(shutdownCtx)
|
||||
|
||||
common.Info(fmt.Sprintf("Ingestor %s shutdown complete", *args.name))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user