perf: try to reduce memory usage by decreasing default core workers to 2.

This commit is contained in:
liqiang-fit2cloud 2025-10-23 10:20:05 +08:00
parent 978579af10
commit c5aa570482

View File

@ -102,7 +102,7 @@ class BaseActionCommand(BaseCommand):
)
parser.add_argument('-d', '--daemon', nargs="?", const=True)
parser.add_argument('-w', '--worker', type=int, nargs="?",
default=3 if os.cpu_count() > 6 else math.floor(os.cpu_count() / 2))
default=2 if os.cpu_count() > 6 else math.floor(os.cpu_count() / 2))
parser.add_argument('-f', '--force', nargs="?", const=True)
def initial_util(self, *args, **options):