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

@ -12,6 +12,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import time
start_ts = time.time()
import asyncio
import socket
import concurrent
@ -21,7 +25,6 @@ import concurrent
import random
import sys
import threading
import time
from api.db import PIPELINE_SPECIAL_PROGRESS_FREEZE_TASK_TYPES
from api.db.services.knowledgebase_service import KnowledgebaseService
@ -1322,6 +1325,8 @@ async def main():
report_task = asyncio.create_task(report_status())
tasks = []
logging.info(f"RAGFlow ingestion is ready after {time.time() - start_ts}s initialization.")
try:
while not stop_event.is_set():
await task_limiter.acquire()