Add time cost when start servers (#12552)

### What problem does this PR solve?

- API server
- Ingestion server
- Data sync server
- Admin server

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-01-12 12:48:23 +08:00
committed by GitHub
parent 638c510468
commit a7dd3b7e9e
4 changed files with 19 additions and 7 deletions

View File

@ -19,6 +19,9 @@
# beartype_all(conf=BeartypeConf(violation_type=UserWarning)) # <-- emit warnings from all code
import time
start_ts = time.time()
import asyncio
import copy
import faulthandler
@ -27,7 +30,6 @@ import os
import signal
import sys
import threading
import time
import traceback
from datetime import datetime, timezone
from typing import Any
@ -1266,6 +1268,7 @@ async def main():
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
logging.info(f"RAGFlow data sync is ready after {time.time() - start_ts}s initialization.")
while not stop_event.is_set():
await dispatch_tasks()
logging.error("BUG!!! You should not reach here!!!")