Revert "[Feature] Setting number of apiserver workers automatically (#3794)" (#3918)

This reverts commit d1d063e4af.
This commit is contained in:
chenjian
2025-09-05 21:06:50 +08:00
committed by GitHub
parent 77c1bd0813
commit 8915c8411d
3 changed files with 2 additions and 22 deletions

View File

@@ -27,7 +27,6 @@ import sys
import tarfile
import time
from datetime import datetime
from importlib.metadata import PackageNotFoundError, distribution
from logging.handlers import BaseRotatingHandler
from pathlib import Path
from typing import Literal, TypeVar, Union
@@ -669,14 +668,6 @@ def import_from_path(module_name: str, file_path: Union[str, os.PathLike]):
return module
def is_package_installed(package_name):
try:
distribution(package_name)
return True
except PackageNotFoundError:
return False
def version():
"""
Prints the contents of the version.txt file located in the parent directory of this script.